summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/matterbridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2020-03-08 17:08:18 +0100
committerGitHub <noreply@github.com>2020-03-08 17:08:18 +0100
commit9785edd26366be8eb11c2435f50f90a5c8eea7fc (patch)
treee8e236b5b273e7535c607507cc059f3b957068a1 /vendor/github.com/matterbridge
parent2a0bc11b684f63305258e338c5f1d0e91eb24414 (diff)
downloadmatterbridge-msglm-9785edd26366be8eb11c2435f50f90a5c8eea7fc.tar.gz
matterbridge-msglm-9785edd26366be8eb11c2435f50f90a5c8eea7fc.tar.bz2
matterbridge-msglm-9785edd26366be8eb11c2435f50f90a5c8eea7fc.zip
Remove replace directives and use own fork to make go get work again (#1028)
See https://github.com/golang/go/issues/30354 go get doesn't honor the go.mod replace options.
Diffstat (limited to 'vendor/github.com/matterbridge')
-rw-r--r--vendor/github.com/matterbridge/discordgo/.travis.yml14
-rw-r--r--vendor/github.com/matterbridge/discordgo/LICENSE28
-rw-r--r--vendor/github.com/matterbridge/discordgo/README.md130
-rw-r--r--vendor/github.com/matterbridge/discordgo/discord.go147
-rw-r--r--vendor/github.com/matterbridge/discordgo/endpoints.go150
-rw-r--r--vendor/github.com/matterbridge/discordgo/event.go247
-rw-r--r--vendor/github.com/matterbridge/discordgo/eventhandlers.go1054
-rw-r--r--vendor/github.com/matterbridge/discordgo/events.go264
-rw-r--r--vendor/github.com/matterbridge/discordgo/go.mod6
-rw-r--r--vendor/github.com/matterbridge/discordgo/go.sum4
-rw-r--r--vendor/github.com/matterbridge/discordgo/logging.go103
-rw-r--r--vendor/github.com/matterbridge/discordgo/message.go370
-rw-r--r--vendor/github.com/matterbridge/discordgo/mkdocs.yml17
-rw-r--r--vendor/github.com/matterbridge/discordgo/oauth2.go145
-rw-r--r--vendor/github.com/matterbridge/discordgo/ratelimit.go194
-rw-r--r--vendor/github.com/matterbridge/discordgo/restapi.go2296
-rw-r--r--vendor/github.com/matterbridge/discordgo/state.go1022
-rw-r--r--vendor/github.com/matterbridge/discordgo/structs.go1039
-rw-r--r--vendor/github.com/matterbridge/discordgo/types.go57
-rw-r--r--vendor/github.com/matterbridge/discordgo/user.go69
-rw-r--r--vendor/github.com/matterbridge/discordgo/util.go17
-rw-r--r--vendor/github.com/matterbridge/discordgo/voice.go887
-rw-r--r--vendor/github.com/matterbridge/discordgo/wsapi.go884
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/LICENSE201
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ACLModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ACLTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/APIApplicationModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/APIServicePrincipalModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AadUserConversationMemberModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AadUserConversationMemberRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessActionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessLevelEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequest.go254
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectAction.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectRequest.go59
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentResourceRoleModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentResourceRoleRequest.go160
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogRequest.go421
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageRequest.go240
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequestObjectModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequestObjectRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewAction.go125
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewDecisionModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewDecisionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRecurrenceSettingsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRequest.go421
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewReviewerModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewReviewerRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewSettingsModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessScopeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccessTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccountAliasModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccountModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccountRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AccountStatusEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ActionSourceEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ActionStateEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ActivityDomainEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ActivityStatisticsModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ActivityStatisticsRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ActivityTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AddContentFooterActionModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AddContentHeaderActionModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AddFooterModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AddHeaderModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AddInModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AddWatermarkActionModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AddWatermarkModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AdminConsentModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AdminConsentStateEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AdministrativeUnitModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AdministrativeUnitRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AdministratorConfiguredDeviceComplianceStateEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AdvancedBitLockerStateEnum.go145
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsPayableModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsPayableRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AgentStatusEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceStateEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileDataModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AgreementModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AgreementRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AirPrintDestinationModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AlbumModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AlertAction.go100
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AlertFeedbackEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AlertHistoryStateModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AlertModel.go75
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AlertRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AlertSeverityEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AlertStatusEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AlertTriggerModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AlignmentEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AllDevicesAssignmentTargetModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AllLicensedUsersAssignmentTargetModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AllowedAudiencesEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationInfoModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AlternativeSecurityIDModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AnalyticsActivityTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidCompliancePolicyModel.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidCustomConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionBaseModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceWithPasscodeModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerAppAutoUpdatePolicyTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerBatteryPluggedModeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCompliancePolicyModel.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerDefaultAppPermissionPolicyTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileAction.go67
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGeneralDeviceConfigurationModel.go143
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyAutoConfigModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyDirectModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerPlayStoreModeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerRequiredPasswordTypeEnum.go81
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerSystemUpdateInstallTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVirtualHomeButtonTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerWiFiConfigurationModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerWiFiSecurityTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidEapTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidEasEmailProfileConfigurationModel.go43
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidEasEmailProfileConfigurationRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnrollmentCompanyCodeModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemDataTypeEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkBindStatusEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCertificateProfileBaseModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCertificateProfileBaseRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCompliancePolicyModel.go53
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCrossProfileDataSharingTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCustomConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkDefaultAppPermissionPolicyTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileAction.go67
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentTargetEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkGeneralDeviceConfigurationModel.go85
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkGmailEasConfigurationModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkMobileAppConfigurationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkNineWorkEasConfigurationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkRequiredPasswordTypeEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkScepCertificateProfileModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkScepCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsAction.go130
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSyncStatusEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkTrustedRootCertificateModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkTrustedRootCertificateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConfigurationModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConfigurationRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConnectionTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkWiFiConfigurationModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidGeneralDeviceConfigurationModel.go107
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidImportedPFXCertificateProfileModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidImportedPFXCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidKeyguardFeatureEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidLobAppModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionAction.go100
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionModel.go55
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppRegistrationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppSafetyNetAppsVerificationTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppSafetyNetDeviceAttestationTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountAppSyncStatusEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountBindStatusEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnrollmentTargetEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsAction.go229
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemDataTypeEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreWebAppModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidMinimumOperatingSystemModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidMobileAppIdentifierModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidOMACpConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidPermissionActionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidPermissionActionTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidPkcsCertificateProfileModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidPkcsCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidRequiredPasswordTypeEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidScepCertificateProfileModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidScepCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidStoreAppModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidTrustedRootCertificateModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidTrustedRootCertificateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidUsernameSourceEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConfigurationModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConfigurationRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConnectionTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWiFiConfigurationModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWiFiSecurityTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCompliancePolicyModel.go53
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCrossProfileDataSharingTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCustomConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileDefaultAppPermissionPolicyTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileGeneralDeviceConfigurationModel.go85
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileGmailEasConfigurationModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileNineWorkEasConfigurationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileRequiredPasswordTypeEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConfigurationModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConfigurationRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConnectionTypeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileWiFiConfigurationModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AnniversaryTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AnonymousIPRiskEventModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AnonymousIPRiskEventRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppCatalogsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppCatalogsRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppConfigurationSettingItemModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppHostedMediaConfigModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppIdentityModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppInstallControlTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppListItemModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppListTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppLockerApplicationControlTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionDownloadDetailsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectAction.go36
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppLogDecryptionAlgorithmEnum.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppLogUploadStateEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppManagementLevelEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppRoleAssignmentModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppRoleAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppRoleModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityManagedDeviceModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityManagedDeviceRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityMobileAppModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityMobileAppRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskMitigationTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppleDeviceFeaturesConfigurationBaseModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppleEnrollmentProfileAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppleEnrollmentProfileAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppleOwnerTypeEnrollmentTypeModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplePushNotificationCertificateModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplePushNotificationCertificateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppleSubjectNameFormatEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppleVpnConfigurationModel.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppleVpnConnectionTypeEnum.go129
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppleVppTokenTroubleshootingEventModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationAction.go141
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationEnforcedRestrictionsSessionControlModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardBlockClipboardSharingTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardBlockFileTransferTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardEnabledOptionsEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationIdentityTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationModeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationModel.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationPermissionsRequiredEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationRequest.go341
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationServicePrincipalModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInDetailedSummaryModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInDetailedSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInSummaryModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateAction.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppliedConditionalAccessPolicyModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AppliedConditionalAccessPolicyResultEnum.go89
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApplyLabelActionModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApprovalStateEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApprovalWorkflowProviderModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ApprovalWorkflowProviderRequest.go515
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AssignedLabelModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AssignedLicenseModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AssignedPlanModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AssignmentMethodEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttachmentAction.go62
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttachmentItemModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttachmentModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttachmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttachmentTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttendeeAvailabilityModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttendeeBaseModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttendeeModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttendeeTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttributeDefinitionModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttributeFlowBehaviorEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttributeFlowTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingFunctionSchemaModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingFunctionSchemaRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingParameterSchemaModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingSourceModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingSourceTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AttributeTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AudioConferencingModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AudioModel.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AudioRoutingGroupModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AudioRoutingGroupRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AuditActivityInitiatorModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AuditActorModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AuditEventModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AuditEventRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AuditLogRootModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AuditLogRootRequest.go515
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AuditPropertyModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AuditResourceModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AuthMethodsTypeEnum.go113
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AuthenticationDetailModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AuthenticationRequirementPolicyModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AutoAdmittedUsersTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AutoLabelingModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AutoRestartNotificationDismissalMethodEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AutoReviewSettingsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesMailTipsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesSettingModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesStatusEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AutomaticUpdateModeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AverageComparativeScoreModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AzureADFeatureUsageModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AzureADLicenseTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AzureADLicenseUsageModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AzureADUserFeatureUsageModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/AzureADWindowsAutopilotDeploymentProfileModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BaseItemModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BaseItemRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BaseItemVersionModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BinaryManagementConditionExpressionModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BinaryManagementConditionExpressionOperatorTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BitLockerEncryptionMethodEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BitLockerFixedDrivePolicyModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryInformationTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryOptionsModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryPasswordRotationTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRemovableDrivePolicyModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BitLockerSystemDrivePolicyModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BlockAccessActionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BodyTypeEnum.go28
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentModel.go63
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessAction.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessRequest.go515
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingCurrencyModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingCurrencyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingCustomerModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingCustomerRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingInvoiceStatusEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingNamedEntityModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingPersonModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingPriceTypeEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingReminderModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingReminderRecipientsEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingSchedulingPolicyModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingServiceModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingServiceRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffMemberModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffMemberRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffRoleEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingWorkHoursModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BookingWorkTimeSlotModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BooleanColumnModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BrowserSyncSettingEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BulkManagedDeviceActionResultModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BundleModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowAction.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowSettingsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowTemplateModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowTemplateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalculatedColumnModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarAction.go106
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarColorEnum.go97
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarGroupModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarGroupRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarModel.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarPermissionModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarPermissionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarRequest.go515
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarRoleTypeEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionImportanceEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionTypeEnum.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageAction.go36
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageActionModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CallAction.go513
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CallActivityStatisticsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CallDirectionEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CallDispositionEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CallMediaStateModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CallModel.go63
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CallOptionsModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CallRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CallRouteModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CallStateEnum.go97
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CancelMediaProcessingOperationModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CartToClassAssociationModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CartToClassAssociationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CategoryColorEnum.go217
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CertificateAuthorityModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CertificateBasedAuthConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CertificateBasedAuthConfigurationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CertificateConnectorSettingModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CertificateDestinationStoreEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CertificateIssuanceStatesEnum.go193
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CertificateRevocationStatusEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CertificateStatusEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CertificateStoreEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CertificateValidityPeriodScaleEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CertificationControlModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChangeTrackedEntityModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChangeTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChangeUefiSettingsPermissionEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChannelMembershipTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChannelModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChannelRequest.go334
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChassisTypeEnum.go81
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatActivityStatisticsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatInfoModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatMembersNotificationAudienceModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageAttachmentModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageHostedContentModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageHostedContentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageImportanceEnum.go36
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageMentionModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageModel.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationDlpActionTypesEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationPolicyTipModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationUserActionTypesEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationVerdictDetailsTypesEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageReactionModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageTypeEnum.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChatRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ChoiceColumnModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CircularGeofenceManagementConditionModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ClassifcationErrorBaseModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ClassificationErrorModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ClassificationInnerErrorModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ClassificationJobResponseModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ClassificationResultModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ClonableTeamPartsEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityProfileModel.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityProfileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecuritySessionControlModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecuritySessionControlTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityStateModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsAction.go100
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ColumnDefinitionModel.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ColumnDefinitionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ColumnLinkModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ColumnLinkRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CommandModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CommandRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CommentActionModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CommsApplicationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CommsApplicationRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CommsNotificationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CommsNotificationsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CommsOperationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CommsOperationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CompanyDetailModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CompanyInformationModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CompanyInformationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CompanyModel.go87
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CompanyPortalActionEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CompanyPortalBlockedActionModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CompanyRequest.go3335
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ComplexExtensionValueModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ComplianceInformationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ComplianceStateEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ComplianceStatusEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ComponentEnum.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessApplicationsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessClientAppEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessConditionSetModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessConditionsEnum.go97
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessDevicePlatformEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessDeviceStatesModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessGrantControlEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessGrantControlsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessLocationsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPlatformsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyStateEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessRootModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessRootRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessSessionControlModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessSessionControlsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessStatusEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessUsersModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerActionModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerActionTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientEnabledFeaturesModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientHealthStateModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientInformationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientStateEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationUsageEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConnectionDirectionEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationStatusEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConnectionStatusEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContactFolderModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContactFolderRequest.go421
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContactModel.go85
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContactRelationshipEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContactRequest.go334
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContentAlignmentEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContentClassificationModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContentFormatEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContentInfoModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContentMetadataModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContentPropertiesModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContentStateEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeInfoModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeOrderModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContractModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ContractRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ControlScoreModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConversationIdentityTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberRolesModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConversationModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConversationRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ConvertIDResultModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CopyNotebookModelModel.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CountryNamedLocationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CountryRegionModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CountryRegionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CreateActionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CredentialModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CredentialSingleSignOnExtensionModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CredentialUsageSummaryModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationCountModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationDetailsModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationDetailsRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CurrencyColumnModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CurrencyModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CurrencyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CurrentLabelModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CustomActionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CustomSubjectAlternativeNameModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CustomTimeZoneModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CustomerModel.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentJournalModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentJournalRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentModel.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/CustomerRequest.go167
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DailyScheduleModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DataClassificationServiceModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DataClassificationServiceRequest.go1173
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyAction.go42
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationStatusEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentAction.go36
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DataStoreFieldModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DateTimeColumnModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DateTimeTimeZoneModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DateTimeTimeZoneTypeModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DayOfWeekEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DaylightTimeZoneOffsetModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefaultColumnValueModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefaultDeviceCompliancePolicyModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefaultManagedAppProtectionModel.go77
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefaultManagedAppProtectionRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefenderAttackSurfaceTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefenderCloudBlockLevelTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefenderDetectedMalwareActionsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefenderMonitorFileActivityEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefenderPotentiallyUnwantedAppActionEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefenderPromptForSampleSubmissionEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefenderProtectionTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefenderScanTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefenderSecurityCenterITContactDisplayTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefenderSecurityCenterNotificationsFromAppTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefenderSubmitSamplesConsentTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DefenderThreatActionEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DelegateMeetingMessageDeliveryOptionsEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DelegatedPermissionClassificationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeleteActionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeleteUserFromSharedAppleDeviceActionResultModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeletedModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthAbsoluteModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthBusinessHoursLimitModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthHoursWithPercentageModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthPercentageModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDCustomModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDOptionsTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDSourceModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDSourceOptionsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeAbsoluteModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizePercentageModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationRestrictPeerSelectionByOptionsEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DepEnrollmentBaseProfileModel.go51
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DepEnrollmentProfileModel.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DepIOSEnrollmentProfileModel.go47
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DepIOSEnrollmentProfileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DepMacOSEnrollmentProfileModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DepMacOSEnrollmentProfileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingAction.go129
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingModel.go43
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingRequest.go247
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DepTokenTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DerivedCredentialProviderTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DetailsInfoModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DetectedAppModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DetectedAppRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DetectedSensitiveContentModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DetectedSensitiveContentWrapperModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceActionResultModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignedRoleDetailsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignmentSourceEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignmentTargetModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementDataModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleDefinitionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementAction.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementModel.go71
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementRequest.go2221
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskAction.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskCategoryEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskPriorityEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskStatusEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCategoryModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCategoryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionItemModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionItemRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionTypeEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceOverviewModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceOverviewRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceStatusModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceStatusRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAction.go250
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAssignmentModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyPolicySetItemModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyRequest.go529
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyStateModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceScheduledActionForRuleModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceScheduledActionForRuleRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceSettingStateModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceSettingStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserOverviewModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserOverviewRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserStatusModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserStatusRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAction.go358
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAssignmentModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationConflictSummaryModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationConflictSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceOverviewModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceOverviewRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStatusModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStatusRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationGroupAssignmentModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationGroupAssignmentRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationModel.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationPolicySetItemModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationRequest.go529
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationSettingStateModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationStateModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationTargetedUserAndDeviceModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserOverviewModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserOverviewRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStateSummaryModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStateSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStatusModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStatusRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceDetailModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationAction.go172
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentFailureReasonEnum.go105
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentLimitConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionsConfigurationModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentTypeEnum.go105
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentWindowsHelloForBusinessConfigurationModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceExchangeAccessStateSummaryModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceGeoLocationModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardStateEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityStateEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthAttestationStateModel.go75
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAssignmentModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptDeviceStateModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptDeviceStateRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptModel.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRequest.go240
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRunSummaryModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRunSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceInstallStateModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceInstallStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceKeyModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingDefinitionModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAction.go101
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleDeviceModeModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleOsEditionModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleOsVersionModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAutopilotEventModel.go55
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAutopilotEventRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementBooleanSettingInstanceModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCachedReportConfigurationModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCachedReportConfigurationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingDefinitionModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingInstanceModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingInstanceRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComparisonResultEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingDefinitionModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingInstanceModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingInstanceRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementConstraintModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialIssuerEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialNotificationTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorStateEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementEnumConstraintModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementEnumValueModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessLevelEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessRuleModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessRuleTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessStateEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessStateReasonEnum.go137
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorStatusEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorSyncTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeDeviceClassModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExportJobModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExportJobRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntegerSettingInstanceModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAction.go103
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentRequest.go623
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentSettingCategoryModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentSettingCategoryRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateSummaryModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementModel.go207
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerAppTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerTenantStateEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportFileFormatEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportScheduleModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportScheduleRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportStatusEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsAction.go244
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementRequest.go6542
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScheduledReportRecurrenceEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAction.go134
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptDeviceStateModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptDeviceStateRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptGroupAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptGroupAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptModel.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptPolicySetItemModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRequest.go428
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRunSummaryModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRunSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptUserStateModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptUserStateRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingBooleanConstraintModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingCategoryModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingCategoryRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingComparisonModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDefinitionModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDefinitionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDependencyModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingInstanceModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingInstanceRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingIntegerConstraintModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingRegexConstraintModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingStringLengthConstraintModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingXMLConstraintModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingsModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementStringSettingInstanceModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSubscriptionStateEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSubscriptionsEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateAction.go44
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateSettingCategoryModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateSettingCategoryRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateTypeEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingErrorDetailsModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingErrorResourceModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingEventModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingEventRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementUserRightsLocalUserOrGroupModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementUserRightsSettingModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceManangementIntentValueTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceModel.go71
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceOperatingSystemSummaryModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DevicePlatformTypeEnum.go81
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceProtectionOverviewModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceRegistrationStateEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceRequest.go609
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceRestrictionActionModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceSetupConfigurationModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceThreatProtectionLevelEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceTypeEnum.go185
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DeviceTypesEnum.go185
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DiagnosticDataSubmissionModeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DiagnosticModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DiamondModelEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DimensionModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DimensionRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DimensionValueModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DimensionValueRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryAuditModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryAuditRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionAction.go36
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionDiscoverabilitiesEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectAction.go1398
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectPartnerReferenceModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleTemplateModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleTemplateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingTemplateModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingTemplateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DiscoveredSensitiveTypeModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DiscoverySourceEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DiskTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DlpActionEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DlpActionInfoModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluatePoliciesJobResponseModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluatePoliciesRequestObjectModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluationInputModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluationWindowsDevicesInputModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DlpNotificationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DlpPoliciesJobResultModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DlpWindowsDevicesNotificationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DmaGuardDeviceEnumerationPolicyTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentReplyModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentReplyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DocumentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DocumentRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DomainAction.go68
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSCnameRecordModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSMxRecordModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSRecordModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSRecordRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSSrvRecordModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSTxtRecordModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSUnavailableRecordModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DomainModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DomainNameSourceEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DomainRegistrantModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DomainRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DomainSecurityProfileModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DomainSecurityProfileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DomainStateModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DowngradeJustificationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DriveItemAction.go461
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DriveItemModel.go75
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DriveItemRequest.go637
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DriveItemUploadablePropertiesModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionAction.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DriveModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DriveRecipientModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/DriveRequest.go529
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EBookInstallSummaryModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EBookInstallSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EapFastConfigurationEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EapTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EasAuthenticationMethodEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EasEmailProfileConfigurationBaseModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EasServicesEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EdgeCookiePolicyEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonConfigurationModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonHiddenModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonLoadsStartPageModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonOpensCustomURLModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonOpensNewTabModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EdgeKioskModeRestrictionTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EdgeOpenOptionsEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineBaseModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineCustomModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EdgeTelemetryModeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EditActionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EditionUpgradeConfigurationModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EditionUpgradeLicenseTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentAction.go36
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentClassRecipientModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGradeModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGradeTypeModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGroupRecipientModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentIndividualRecipientModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentModel.go51
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentPointsGradeModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentPointsGradeTypeModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentRecipientModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentRequest.go334
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentResourceModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentResourceRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentStatusEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationCategoryModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationCategoryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationClassModel.go43
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationClassRequest.go522
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationCourseModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationCsvDataProviderModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationExcelResourceModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationExternalSourceEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationFeedbackModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationFeedbackOutcomeModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationFileResourceModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationFileSynchronizationVerificationMessageModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationFormResourceModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationGenderEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityCreationConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityDomainModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityMatchingConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityMatchingOptionsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentitySynchronizationConfigurationModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationItemBodyModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationLinkResourceModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationMakeCodeResourceModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationOnPremisesInfoModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationOneNoteResourceModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationOneRosterAPIDataProviderModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationOrganizationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationOutcomeModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationOutcomeRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationPointsOutcomeModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationPowerPointResourceModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationPowerSchoolDataProviderModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationResourceModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationRootModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationRootRequest.go428
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricOutcomeModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSchoolModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSchoolRequest.go240
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationStudentModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionAction.go98
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionIndividualRecipientModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionRecipientModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionResourceModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionResourceRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionStatusEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationConnectionSettingsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationsBaseModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationsModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationDataProviderModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationErrorModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationErrorRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationLicenseAssignmentModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationOAuth1ConnectionSettingsModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationOAuth2ClientCredentialsConnectionSettingsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileAction.go188
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStateEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStatusModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStatusRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationStatusEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationTeacherModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationTermModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationUserModel.go85
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationUserRequest.go522
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationUserRoleEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationWordResourceModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityDetailModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmailActivityStatisticsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmailActivitySummaryModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmailActivityUserDetailModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmailAddressModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageAppsUserCountsModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageUserCountsModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageUserDetailModel.go43
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageVersionsUserCountsModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmailCertificateTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmailFileAssessmentRequestObjectModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmailRoleEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmailSyncDurationEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmailSyncScheduleEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmailTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodeModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAction.go100
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateValueEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmployeeModel.go47
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EmployeeRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EnablementEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EncryptContentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithTemplateModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithUserDefinedRightsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EncryptionReadinessStateEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EncryptionReportPolicyDetailsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EncryptionStateEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EndpointModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EndpointRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EndpointTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentConfigurationAssignmentModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentConfigurationAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileAction.go67
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentRestrictionsConfigurationPolicySetItemModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentStateEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentTroubleshootingEventModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EnterpriseCodeSigningCertificateModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EnterpriseCodeSigningCertificateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EntitlementManagementModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EntitlementManagementRequest.go891
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EntityModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EntityRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EntitySetNamesModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EntityTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EntryExportStatusEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EntrySyncOperationEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ErrorCodeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ErrorDetailModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EvaluateDynamicMembershipResultModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResponseModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResultGroupModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResultModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelsAndPoliciesJobResponseModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelsAndPoliciesResultModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EvaluateSensitivityLabelsRequestObjectModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EventAction.go239
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EventMessageModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectAction.go111
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EventMessageResponseModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EventModel.go89
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EventRequest.go522
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/EventTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchClassificationRequestObjectModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchClassificationResultModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreAction.go104
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchJobBaseModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchLookupJobModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchLookupJobRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionAction.go96
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionModel.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchUploadAgentModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchUploadAgentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExchangeIDFormatEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExcludedAppsModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExclusionGroupAssignmentTargetModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExpressionEvaluationDetailsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExpressionInputObjectModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExtendedKeyUsageModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExtendedPlacePropertiesModelModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExtensionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExtensionPropertyModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExtensionPropertyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExtensionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExtensionSchemaPropertyModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExternalAudienceScopeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExternalConnectionModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExternalConnectionRequest.go240
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExternalFileModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExternalItemModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExternalItemRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExternalLinkModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExternalModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ExternalRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FeatureRolloutPolicyModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FeatureRolloutPolicyRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FeatureTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FeatureUsageDetailModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FieldValueSetModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FieldValueSetRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FileAssessmentRequestObjectModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FileAttachmentModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FileClassificationRequestObjectModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FileClassificationRequestObjectRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FileEncryptionInfoModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FileHashModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FileHashTypeEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FileModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityProfileModel.go43
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityProfileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityStateModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FileSystemInfoModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FileVaultStateEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FilterClauseModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FilterGroupModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FilterModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FilterOperandModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FilterOperatorSchemaModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FilterOperatorSchemaRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FinancialsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FinancialsRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FirewallCertificateRevocationListCheckMethodTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FirewallPacketQueueingMethodTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FirewallPreSharedKeyEncodingMethodTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FlexSchemaContainerModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FocusActivityStatisticsModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FolderModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FolderProtectionTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FolderViewModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FollowupFlagModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FollowupFlagStatusEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FreeBusyErrorModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/FreeBusyStatusEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GeneralLedgerEntryModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GeneralLedgerEntryRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GenericErrorModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GeoCoordinatesModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GeolocationColumnModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GiphyRatingTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceCriteriaModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceNotificationPolicyModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceNotificationTemplateModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernancePermissionModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyTemplateModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyTemplateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceRequest.go428
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequest.go66
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectAction.go74
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectRequest.go59
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestStatusModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleDefinitionModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleDefinitionRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleSettingModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleSettingRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRuleSettingModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceScheduleModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceSubjectModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GovernanceSubjectRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GraphServiceRequest.go8560
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupAccessTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupAction.go417
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupAssignmentTargetModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyAction.go104
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupMembershipGovernanceCriteriaModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupModel.go155
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAction.go136
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAssignmentModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionClassTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionFileModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionFileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionValueModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionValueRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReadinessEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportAction.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyObjectFileModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationCheckBoxModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationComboBoxModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDecimalTextBoxModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDropdownListItemModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDropdownListModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationListBoxModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationLongDecimalTextBoxModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationMultiTextBoxModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationTextBoxModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationTextModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueBooleanModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueDecimalModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueListModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueLongDecimalModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueMultiTextModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueTextModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingMappingModel.go43
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingMappingRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingScopeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupPrivacyEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupRequest.go2068
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/GroupTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/HardwareInformationModel.go55
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/HasPayloadLinkResultItemModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/HashAlgorithmsEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/HashesModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/HealthStateEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityProfileModel.go47
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityProfileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityStateModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/HourlyScheduleModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/HybridAgentUpdaterConfigurationModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSBookmarkModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileBaseModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileBaseRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSCompliancePolicyModel.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSCustomConfigurationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceFeaturesConfigurationModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceFeaturesConfigurationRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceTypeModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSEasEmailProfileConfigurationModel.go61
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSEasEmailProfileConfigurationRequest.go66
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSEduCertificateSettingsModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSEduDeviceConfigurationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSEducationDeviceConfigurationModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSEnterpriseWiFiConfigurationModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSEnterpriseWiFiConfigurationRequest.go153
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSGeneralDeviceConfigurationModel.go359
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenAppModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenFolderModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenFolderPageModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenItemModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenPageModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSImportedPFXCertificateProfileModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSImportedPFXCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSKerberosSingleSignOnExtensionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppAssignmentSettingsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAction.go134
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationPolicySetItemModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationRequest.go421
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionAction.go100
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppRegistrationModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSMinimumOperatingSystemModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSMobileAppConfigurationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSMobileAppIdentifierModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSNetworkUsageRuleModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSNotificationAlertTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSNotificationSettingsModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSPkcsCertificateProfileModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSPkcsCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSScepCertificateProfileModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSScepCertificateProfileRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSSingleSignOnSettingsModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSStoreAppAssignmentSettingsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSStoreAppModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSTrustedRootCertificateModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSTrustedRootCertificateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateConfigurationModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateDeviceStatusModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateDeviceStatusRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdatesInstallStatusEnum.go145
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnConfigurationModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnConfigurationRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnSecurityAssociationParametersModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAction.go105
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedDeviceLicenseModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedLicenseModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedLicenseRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedUserLicenseModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignmentSettingsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppRevokeLicensesActionResultModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSVppEBookAssignmentModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSVppEBookModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSWallpaperDisplayLocationEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterAutoFilterModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterBaseModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterSpecificWebsitesAccessModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IOSWiFiConfigurationModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IPCategoryModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IPNamedLocationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IPRangeModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IPReferenceDataModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IPSecurityProfileModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IPSecurityProfileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IPv4CidrRangeModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IPv4RangeModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IPv6CidrRangeModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IPv6RangeModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ITunesPairingModeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IdentityContainerModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IdentityContainerRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IdentityGovernanceModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IdentityGovernanceRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IdentityModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IdentityProviderModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IdentityProviderRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IdentityRiskEventModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IdentityRiskEventRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IdentitySetModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserFlowModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserFlowRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserRiskModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImageInfoModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImageModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImplicitGrantSettingsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportanceEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityAction.go102
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityResultModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityAction.go190
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityResultModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityAction.go108
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityImportStatusEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityStateModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadStatusEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImpossibleTravelRiskEventModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ImpossibleTravelRiskEventRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IncomingContextModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IncompleteDataModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationOverrideModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationOverrideRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InferenceDataModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionAction.go42
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionActionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionContentLabelModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelAction.go315
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionPolicyModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionPolicyRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionRequest.go341
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InformationalURLModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InitiatorModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InitiatorTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InkAccessSettingEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InnerErrorDetailModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InsightIdentityModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InsightValueDoubleModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InsightValueIntModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InstallIntentEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InstallStateEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InstanceResourceAccessModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InstitutionDataModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IntendedPurposeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InternetExplorerMessageSettingEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InternetMessageHeaderModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InternetSiteSecurityLevelEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandModel.go51
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileModel.go63
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InvitationModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InvitationParticipantInfoModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InvitationRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InviteParticipantsOperationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/InvitedUserMessageInfoModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/IosikEv2VpnConfigurationModel.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemActionSetModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemActionStatModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityOLDModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityOLDRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityStatModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityStatRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityTimeSetModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemAnalyticsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemAnalyticsRequest.go153
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemAttachmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemAttachmentRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemBodyModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemCategoryModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemCategoryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemEmailModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemEmailRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemFacetModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemModel.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemPhoneModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemPhoneRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemPreviewInfoModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemReferenceModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ItemRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/JSONModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/JobResponseBaseModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/JobResponseBaseRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/JournalAction.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/JournalLineModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/JournalLineRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/JournalModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/JournalRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/JustifyActionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/KerberosSingleSignOnExtensionModel.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/KeyBooleanValuePairModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/KeyCredentialModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/KeyIntegerValuePairModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/KeyRealValuePairModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/KeySizeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/KeyStorageProviderOptionEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/KeyStringValuePairModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/KeyTypedValuePairModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/KeyUsagesEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/KeyValueModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/KeyValuePairModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LabelActionBaseModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LabelDetailsModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LabelPolicyModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LabelingOptionsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LanManagerAuthenticationLevelEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyLevelEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LeakedCredentialsRiskEventModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LeakedCredentialsRiskEventRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LearnedLocationModelModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LicenseAssignmentStateModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LicenseDetailsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LicenseDetailsRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LicenseInfoDetailModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LicenseProcessingStateModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LicenseUnitsDetailModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ListInfoModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ListItemModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ListItemRequest.go254
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionAction.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ListModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ListRequest.go522
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsInformationDisplayedOnLockScreenTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsInformationShownOnLockScreenTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsMinimumSessionSecurityEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsSmartCardRemovalBehaviorTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocaleInfoModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocalizedNotificationMessageModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocalizedNotificationMessageRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocateDeviceActionResultModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocatedRiskEventModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocationConstraintItemModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocationConstraintModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocationManagementConditionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocationModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocationTypeEnum.go89
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LocationUniqueIDTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LogLevelEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LoggedOnUserModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LogonTypeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LogonUserModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LookupColumnModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LookupResultRowModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LookupResultRowRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/LostModeStateEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionAction.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSCertificateProfileBaseModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSCertificateProfileBaseRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSCompliancePolicyModel.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSCustomAppConfigurationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSCustomConfigurationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSDeviceFeaturesConfigurationModel.go51
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSDeviceFeaturesConfigurationRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSEndpointProtectionConfigurationModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSExtensionsConfigurationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSFileVaultRecoveryKeyTypesEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSFirewallApplicationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSGatekeeperAppSourcesEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSGeneralDeviceConfigurationModel.go105
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSImportedPFXCertificateProfileModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSImportedPFXCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSKerberosSingleSignOnExtensionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSKernelExtensionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSLaunchItemModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSLobAppModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSLobChildAppModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSMicrosoftEdgeAppModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSMinimumOperatingSystemModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSOfficeSuiteAppModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSPkcsCertificateProfileModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSPkcsCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSScepCertificateProfileModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSScepCertificateProfileRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSTrustedRootCertificateModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSTrustedRootCertificateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSVpnConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSVpnConfigurationRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiFiConfigurationModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiredNetworkConfigurationModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiredNetworkConfigurationRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignedLicenseModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignedLicenseRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignmentSettingsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppRevokeLicensesActionResultModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MailAssessmentRequestObjectModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MailDestinationRoutingReasonEnum.go137
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MailFolderAction.go71
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MailFolderModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MailFolderRequest.go609
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MailSearchFolderModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MailTipsErrorModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MailTipsModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MailTipsTypeEnum.go89
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MailboxSettingsModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageDetailModel.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageMailboxCountsModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageQuotaStatusMailboxCountsModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageStorageModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MalwareRiskEventModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MalwareRiskEventRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MalwareStateModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAllDeviceCertificateStateModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAllDeviceCertificateStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAndroidLobAppModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAndroidStoreAppModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppAvailabilityEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppClipboardSharingLevelEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataEncryptionTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataStorageLocationEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataTransferLevelEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDeviceThreatLevelEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDiagnosticStatusModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppFlaggedReasonEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppNotificationRestrictionEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppOperationModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppOperationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPinCharacterSetEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryPerAppModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionModel.go85
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionPolicySetItemModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRegistrationModel.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRegistrationRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRemediationActionEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusRawModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedBrowserTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceAction.go908
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCertificateStateModel.go59
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCertificateStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCleanupSettingsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceEncryptionStateModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceEncryptionStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationPolicySetItemModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationRequest.go341
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceModel.go165
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceModelsAndManufacturersModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOverviewModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOverviewRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOwnerTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDevicePartnerReportedHealthStateEnum.go89
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceRemoteActionEnum.go81
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceReportedAppModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceRequest.go623
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAssignmentModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookCategoryModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookCategoryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookRequest.go428
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedIOSLobAppModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedIOSStoreAppModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileAppModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileAppRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileLobAppModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileLobAppRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagementAgentTypeEnum.go105
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagementCertificateWithThumbprintModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionModelModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionStringModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionStatementModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionStatementRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ManagementStateEnum.go105
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MarkContentModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MatchLocationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MatchingDlpRuleModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MatchingLabelModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MdmAppConfigKeyTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MdmAuthorityEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyAction.go100
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyPolicySetItemModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MediaConfigModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingAustraliaModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingCanadaModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingFranceModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingGermanyModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingIrelandModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingJapanModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingNewZealandModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingUnitedKingdomModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingUnitedStatesModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MediaDirectionEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MediaInfoModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MediaPromptModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MediaStateEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MediaStreamModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MeetingActivityStatisticsModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MeetingCapabilitiesEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MeetingCapabilityModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MeetingInfoModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MeetingMessageTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MeetingParticipantInfoModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MeetingParticipantsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MeetingTimeSuggestionModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MeetingTimeSuggestionsResultModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MembershipRuleEvaluationDetailsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MentionActionModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MentionModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MentionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MentionsPreviewModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MessageAction.go342
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MessageActionFlagEnum.go97
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MessageModel.go79
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MessageRequest.go515
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleActionsModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MessageRulePredicatesModel.go69
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MetadataActionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MetadataEntryModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MeteredConnectionLimitTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MfaDetailModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftEdgeChannelEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppAssignmentSettingsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessContainedAppModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessLicenseTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessPortalSelectionOptionsEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MigrationStatusEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MimeContentModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MiracastChannelEnum.go177
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAction.go164
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppActionTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentSettingsModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppCategoryModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppCategoryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileAction.go67
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileUploadStateEnum.go137
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppDependencyModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppDependencyTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIdentifierModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallStatusModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallStatusRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallSummaryModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallTimeSettingsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateDetailModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppModel.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppPolicySetItemModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppPublishingStateEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipStateModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRequest.go522
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppSupportedDeviceTypeModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppPolicyCreationHistoryModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppStateHistoryModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppTargetHistoryModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppUpdateHistoryModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingDeviceCheckinHistoryModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingEventModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingEventRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingHistoryItemModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileContainedAppModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileContainedAppRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileLobAppModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileLobAppRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatDefenseConnectorModel.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatDefenseConnectorRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatPartnerTenantStateEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ModalityEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ModifiedPropertyModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MoveActionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MultiValueLegacyExtendedPropertyModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MultiValueLegacyExtendedPropertyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MutabilityEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MuteParticipantOperationModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/MuteParticipantsOperationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NamedLocationModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NamedLocationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorStateEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NetworkConnectionModel.go47
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NetworkIPv4ConfigurationManagementConditionModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NetworkIPv6ConfigurationManagementConditionModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NetworkInterfaceModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NetworkLocationDetailModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NetworkManagementConditionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NetworkSingleSignOnTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NetworkTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NonEapAuthenticationMethodForEapTtlsTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NonEapAuthenticationMethodForPeapEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NotebookAction.go79
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NotebookLinksModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NotebookModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NotebookRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NotificationMessageTemplateAction.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NotificationMessageTemplateModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NotificationMessageTemplateRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NotificationModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NotificationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NotificationTemplateBrandingOptionsEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NotifyUserActionModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NumberColumnModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/NumberRangeModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OAuth2PermissionGrantModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OAuth2PermissionGrantRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OMASettingBase64Model.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OMASettingBooleanModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OMASettingDateTimeModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OMASettingFloatingPointModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OMASettingIntegerModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OMASettingModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OMASettingStringModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OMASettingStringXMLModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ObjectDefinitionModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ObjectFlowTypesEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ObjectIdentityModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ObjectMappingModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationCountsModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationsUserCountsModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationsUserDetailModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Office365ActiveUserCountsModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Office365ActiveUserDetailModel.go59
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityCountsModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityDetailModel.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityFileCountsModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityGroupCountsModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityStorageModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Office365ServicesUserCountsModel.go43
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientCheckinStatusModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAction.go134
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationAssignmentTargetModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationGroupAssignmentTargetModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeGraphInsightsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeGraphInsightsRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeProductIDEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeSuiteAppModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeSuiteInstallProgressDisplayLevelEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeUpdateChannelEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OfficeUserCheckinSummaryModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentGroupModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentGroupRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesConditionalAccessSettingsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesConditionalAccessSettingsRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesExtensionAttributesModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesProvisioningErrorModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingProfileModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingProfileRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingTypeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OneDriveActivityUserDetailModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageAccountCountsModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageAccountDetailModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageFileCountsModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntityBaseModelModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntityHierarchyModelModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntitySchemaObjectModelModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenoteModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationErrorModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageAction.go76
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenotePagePreviewLinksModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenotePagePreviewModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchActionTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchContentCommandModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchInsertPositionEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenoteRequest.go609
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenoteResourceModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenoteResourceRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionAction.go87
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionRequest.go153
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSourceServiceEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnenoteUserRoleEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingInfoModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingModel.go43
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingProviderTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftChangeRequestObjectModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftChangeRequestObjectRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftItemModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OpenTypeExtensionModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OpeningHoursSpecificationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OperatingSystemVersionRangeModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OperationErrorModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OperationModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OperationResultEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OperationStatusEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OptionalClaimModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OptionalClaimsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OrgContactModel.go47
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OrgContactRequest.go334
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OrganizationAction.go36
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OrganizationModel.go63
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OrganizationRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OrganizationalBrandingModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OrganizationalBrandingRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OrganizerMeetingInfoModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OsVersionCountModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutOfBoxExperienceSettingsModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutgoingCallOptionsModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutlookCategoryModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutlookCategoryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutlookGeoCoordinatesModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutlookItemModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutlookItemRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskAction.go98
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskFolderModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskFolderRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskGroupModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskGroupRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskModel.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutlookUserModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OutlookUserRequest.go421
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OverrideOptionEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/OwnerTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PackageModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PageLinksModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PageOrientationEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ParentalControlSettingsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ParseExpressionResponseModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ParticipantAction.go108
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ParticipantInfoModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ParticipantModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ParticipantRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PasswordCredentialModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PasswordProfileModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PasswordSingleSignOnCredentialSetModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PatternedRecurrenceModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PayloadRequestObjectModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PayloadResponseModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PayloadResponseRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PayloadTypesModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PaymentMethodModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PaymentMethodRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PaymentTermModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PaymentTermRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PendingContentUpdateModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PendingOperationsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PermissionAction.go102
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PermissionClassificationTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PermissionModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PermissionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PermissionScopeModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PersistentBrowserSessionControlModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PersistentBrowserSessionModeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PersonAnniversaryModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PersonAnniversaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PersonDataSourceModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PersonInterestModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PersonInterestRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PersonModel.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PersonNameModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PersonNameRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PersonOrGroupColumnModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PersonRelationshipEnum.go137
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PersonRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PersonWebsiteModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PersonWebsiteRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PhoneModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PhoneTypeEnum.go89
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PhotoModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PhysicalAddressModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PhysicalAddressTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PhysicalOfficeAddressModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PictureModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PictureRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlaceModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlaceRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlaceTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerAppliedCategoriesModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignmentModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignmentsModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerCategoryDescriptionsModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerChecklistItemModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerChecklistItemsModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerDeltaModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerDeltaRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerExternalReferenceModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerExternalReferencesModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerFavoritePlanReferenceCollectionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerFavoritePlanReferenceModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerGroupModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerGroupRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerOrderHintsByAssigneeModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextCollectionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextDetailsCollectionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextDetailsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanDetailsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanDetailsRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanRequest.go240
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerPreviewTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerRecentPlanReferenceCollectionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerRecentPlanReferenceModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskDetailsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskDetailsRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskModel.go61
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskRequest.go66
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserIDsModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserRequest.go515
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlatformEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlayPromptCompletionReasonEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PlayPromptOperationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PolicyModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PolicyPlatformTypeEnum.go81
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PolicyRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAction.go138
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAssignmentModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PolicySetItemModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PolicySetItemRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PolicySetModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PolicySetRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PolicySetStatusEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PositionDetailModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PostAction.go71
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PostModel.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PostRequest.go522
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PostalAddressTypeModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PowerActionTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PreAuthorizedApplicationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrereleaseFeaturesEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PresenceModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PresenceRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PriorityEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivacyProfileModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedAccessModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedAccessRequest.go515
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedApprovalModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedApprovalRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedOperationEventModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedOperationEventRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAction.go75
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentAction.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectAction.go36
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleRequest.go153
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSettingsModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSettingsRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSummaryModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusAction.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProcessIntegrityLevelEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProcessModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProfileModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProfilePhotoModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProfilePhotoRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProfileRequest.go1267
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlTypeModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlTypeRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProgramModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProgramRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProgramResourceModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProjectParticipationModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProjectParticipationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PromptModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PropertiesModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PropertyModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PropertyToEvaluateModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PropertyTypeEnum.go81
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProtectAdhocActionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProtectByTemplateActionModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProtectDoNotForwardActionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProtectGroupModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProtectSiteModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProviderTenantSettingModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProviderTenantSettingRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProvisionedIdentityModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProvisionedPlanModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningObjectSummaryModel.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningObjectSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningResultEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningStepModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningStepTypeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningSystemDetailsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ProxiedDomainModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PublicClientApplicationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorDetailModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorResponseModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PublicInnerErrorModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PublicationFacetModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PublishedResourceModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PublishedResourceRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceAction.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceLineModel.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceLineRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceModel.go69
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceRequest.go153
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/QuarantineReasonEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/QuotaModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RankedEmailAddressModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingAppsTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingAustraliaMoviesTypeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingAustraliaTelevisionTypeEnum.go81
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingCanadaMoviesTypeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingCanadaTelevisionTypeEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingFranceMoviesTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingFranceTelevisionTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingGermanyMoviesTypeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingGermanyTelevisionTypeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingIrelandMoviesTypeEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingIrelandTelevisionTypeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingJapanMoviesTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingJapanTelevisionTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingNewZealandMoviesTypeEnum.go97
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingNewZealandTelevisionTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedKingdomMoviesTypeEnum.go81
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedKingdomTelevisionTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedStatesMoviesTypeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedStatesTelevisionTypeEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RbacApplicationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RbacApplicationRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RecentNotebookLinksModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RecentNotebookModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RecipientModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RecipientScopeTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RecommendLabelActionModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RecordCompletionReasonEnum.go81
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RecordOperationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RecordingInfoModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RecordingStatusEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RecurrencePatternModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RecurrencePatternTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RecurrenceRangeModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RecurrenceRangeTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentPermissionEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentProviderEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ReferencedObjectModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RegistrationAuthMethodEnum.go89
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RegistrationStatusTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RegistryHiveEnum.go81
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RegistryKeyStateModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RegistryOperationEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RegistryValueTypeEnum.go113
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RejectReasonEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RelatedContactModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RelatedPersonModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RelyingPartyDetailedSummaryModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RemediationStateEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ReminderModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionAuditModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionAuditRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionEnum.go193
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistanceOnboardingStatusEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerAction.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RemoteItemModel.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RemoteLockActionResultModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RemoveContentFooterActionModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RemoveContentHeaderActionModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RemoveProtectionActionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RemoveWatermarkActionModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RenameActionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ReportModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ReportRootModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ReportRootRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ReputationCategoryModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectAction.go69
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectModel.go43
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RequiredPasswordTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RequiredResourceAccessModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RequirementProviderEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResetPasscodeActionResultModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResourceAccessModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResourceActionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResourceOperationModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResourceOperationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResourcePermissionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResourcePropertiesModelModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResourceReferenceModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionGrantModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionGrantRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResourceVisualizationModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResponseStatusModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResponseTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResponsiblePolicyModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResponsibleSensitiveTypeModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RestoreActionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsStateEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsViolationModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsViolationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RestrictedSignInModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RestrictedSignInRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RestrictionActionEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RestrictionTriggerEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResultInfoModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResultantAppStateDetailEnum.go169
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ResultantAppStateEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RevokeAppleVppLicensesActionResultModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RgbColorModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RiskDetailEnum.go105
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionModel.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionTimingTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RiskEventStatusEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RiskEventTypeEnum.go129
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RiskLevelEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RiskStateEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RiskUserActivityModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserAction.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserHistoryItemModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserHistoryItemRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentScopeTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleDefinitionModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleDefinitionRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleManagementModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleManagementRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleMembershipGovernanceCriteriaModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RolePermissionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAction.go196
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAutoAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAutoAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagInfoModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleSuccessStatisticsModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoleSummaryStatusEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoomListModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoomListRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoomModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoomRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RootModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RotateBitLockerKeysDeviceActionResultModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoutingModeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoutingPolicyEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RoutingTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RubricCriterionModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RubricLevelModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RubricQualityFeedbackModelModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RubricQualityModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RubricQualitySelectedColumnModelModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RuleModeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RunAsAccountTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RunScheduleModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/RunStateEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SafeSearchFilterTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoLineModel.go59
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoLineRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoModel.go75
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoRequest.go160
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceAction.go155
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceLineModel.go59
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceLineRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceModel.go87
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceRequest.go167
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderLineModel.go67
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderLineRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderModel.go81
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderRequest.go160
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteAction.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteLineModel.go53
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteLineRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteModel.go83
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteRequest.go167
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScheduleAction.go44
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestActorEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectAction.go69
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeStateEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScheduleEntityModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScheduleEntityThemeEnum.go113
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScheduleInformationModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScheduleItemModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScheduleModel.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScheduleRequest.go797
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SchedulingGroupModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SchedulingGroupRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SchemaExtensionModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SchemaExtensionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SchemaModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SchemaRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScopeOperatorMultiValuedComparisonTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScopeOperatorTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScopedRoleMembershipModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScopedRoleMembershipRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ScreenSharingRoleEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SearchAction.go100
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SearchHitModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SearchHitsContainerModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SearchModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SearchQueryModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SearchQueryStringModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SearchRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SearchRequestObjectModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SearchResponseModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SearchResultModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SectionGroupModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SectionGroupRequest.go247
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SectionLinksModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecureAssessmentAccountTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecureBootWithDMATypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlProfileModel.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlProfileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlStateUpdateModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionAction.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionStateModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineCategoryStateSummaryModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineCategoryStateSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineComplianceStateEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineDeviceStateModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineDeviceStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineSettingStateModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineSettingStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateSummaryModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineTemplateModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineTemplateRequest.go240
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityNetworkProtocolEnum.go201
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityProviderStatusModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityRequest.go1173
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SecurityVendorInformationModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SensitiveContentEvidenceModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SensitiveContentLocationModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SensitiveTypeModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SensitiveTypeRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SensitivityEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelAction.go56
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SensitivityPolicySettingsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SensitivityPolicySettingsRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ServiceHostedMediaConfigModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ServiceInformationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ServicePlanInfoModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalAction.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalModel.go75
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalRequest.go992
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ServiceStartTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SettingSourceModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SettingStateDeviceSummaryModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SettingStateDeviceSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SettingTemplateValueModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SettingValueModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SettingsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SetupStatusEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ShareActionModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityPagesModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityUserCountsModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityUserDetailModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageDetailModel.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageFileCountsModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsagePagesModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageSiteCountsModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharedAppleDeviceUserModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharedDriveItemModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharedDriveItemRequest.go181
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharedInsightModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharedInsightRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharedModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAccountDeletionPolicyTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAccountManagerPolicyModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAllowedAccountTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharedPCConfigurationModel.go47
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharepointIDsModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharingDetailModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharingInvitationModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SharingLinkModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ShiftActivityModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ShiftChangeRequestObjectModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ShiftItemModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ShiftModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ShiftRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ShipmentMethodModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ShipmentMethodRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SideLoadingKeyModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SideLoadingKeyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SignInActivityModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SignInAssistantOptionsEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SignInFrequencySessionControlModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SignInLocationModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SignInModel.go83
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SignInRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SignInStatusModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SigninFrequencyTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SingleSignOnExtensionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SingleValueLegacyExtendedPropertyModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SingleValueLegacyExtendedPropertyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SiteAccessTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SiteAction.go220
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SiteActivitySummaryModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SiteCollectionModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SiteModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SitePageAction.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SitePageDataModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SitePageModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SitePageRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SiteRequest.go724
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SiteSecurityLevelEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SiteUsageStorageModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SizeRangeModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyLevelEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityCountsModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityUserCountsModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityUserDetailModel.go81
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageDistributionUserCountsModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageUserCountsModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageUserDetailModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityCountsModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityMinuteCountsModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityUserCountsModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityCountsModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityMinuteCountsModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityUserCountsModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityCountsModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityMinuteCountsModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityUserCountsModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SoftwareUpdateStatusSummaryModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SoftwareUpdateStatusSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SpecialFolderModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/StagedFeatureNameEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/StandardTimeZoneOffsetModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/StateManagementSettingEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/StatusBaseModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/StatusDetailsModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/StatusEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/StoragePlanInformationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/StringKeyAttributeMappingSourceValuePairModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/StringKeyLongValuePairModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/StringKeyObjectValuePairModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/StringKeyStringValuePairModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SubjectAlternativeNameTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SubjectNameFormatEnum.go81
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SubscribeToToneOperationModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SubscribedSKUModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SubscribedSKURequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SubscriptionModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SubscriptionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SuspiciousIPRiskEventModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SuspiciousIPRiskEventRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SwapShiftsChangeRequestObjectModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SwapShiftsChangeRequestObjectRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SymantecCodeSigningCertificateModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SymantecCodeSigningCertificateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationErrorModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobAction.go239
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRestartCriteriaModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRestartScopeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationProgressModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationQuarantineModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationRuleModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationScheduleModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationScheduleStateEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaAction.go42
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSecretEnum.go305
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSecretKeyStringValuePairModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationStatusCodeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationStatusModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTaskExecutionModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTaskExecutionResultEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTemplateModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTemplateRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SystemFacetModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TargetPolicyEndpointsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TargetResourceModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationAction.go164
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationPolicySetItemModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationRequest.go240
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppPolicyAssignmentModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppPolicyAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TaskStatusEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TaxAreaModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TaxAreaRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TaxGroupModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TaxGroupRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamAction.go109
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamClassSettingsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamDiscoverySettingsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamFunSettingsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamGuestSettingsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamMemberSettingsModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamMessagingSettingsModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamModel.go55
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamRequest.go550
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamSpecializationEnum.go73
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamVisibilityTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDefinitionModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDefinitionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDistributionMethodEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationAction.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationStatusEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsCatalogAppModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsCatalogAppRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageDistributionUserCountsModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageUserCountsModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageUserDetailModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabConfigurationModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsTemplateModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsTemplateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityCountsModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityUserCountsModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityUserDetailModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamworkModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TeamworkRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TelecomExpenseManagementPartnerModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TelecomExpenseManagementPartnerRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TenantSetupInfoModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TenantSetupInfoRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAcceptanceStatusModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAcceptanceStatusRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsGroupAssignmentModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsGroupAssignmentRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TextClassificationRequestObjectModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TextClassificationRequestObjectRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TextColumnModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentContentTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestObjectModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestObjectRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestPivotPropertyEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestSourceEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestsCountModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentStatusEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ThreatCategoryEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ThreatExpectedAssessmentEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailSetModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailSetRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TiActionEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorAction.go364
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorModel.go127
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TimeConstraintModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TimeOffItemModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TimeOffModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonIconTypeEnum.go185
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequestObjectModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequestObjectRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TimeSlotModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneBaseModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneInformationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneStandardEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TlpLevelEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TokenIssuerTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TokenMeetingInfoModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ToneEnum.go145
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/ToneInfoModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TrendingModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TrendingRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeyModel.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetAction.go151
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkPolicyModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkPolicyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/TypedEmailAddressModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/URLAssessmentRequestObjectModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UnaryManagementConditionExpressionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UnaryManagementConditionExpressionOperatorTypeEnum.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UnfamiliarLocationRiskEventModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UnfamiliarLocationRiskEventRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleAssignmentModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleAssignmentRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleDefinitionModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleDefinitionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRolePermissionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UnitOfMeasureModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UnitOfMeasureRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UnmuteParticipantOperationModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UnsupportedDeviceConfigurationDetailModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UnsupportedDeviceConfigurationModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UpdateClassificationEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UpdateRecordingStatusOperationModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UpdateWindowModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UpdateWindowsDeviceAccountActionParameterModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UploadSessionModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UsageAuthMethodEnum.go97
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UsageDetailsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UsedInsightModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UsedInsightRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserAccountInformationModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserAccountInformationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserAccountModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserAccountSecurityTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserAction.go564
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserActivationCountsModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserActivityModel.go42
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserActivityRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserAnalyticsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserAnalyticsRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserAppInstallStatusModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserAppInstallStatusRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserConfigurationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserCredentialUsageDetailsModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserCredentialUsageDetailsRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserEmailSourceEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsBaselineModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsBaselineRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsCategoryModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsCategoryRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsHealthStateEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightSeverityEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightValueModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsMetricModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsMetricRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsOverviewModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsOverviewRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsSummarizedByEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserFlowTypeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserGovernanceCriteriaModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserIdentityModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserIdentityTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserInstallStateSummaryModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserInstallStateSummaryRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserModel.go259
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserPFXCertificateModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserPFXCertificateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserPfxIntendedPurposeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserPfxPaddingSchemeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserRegistrationCountModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserRequest.go3722
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserRiskLevelEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityProfileModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityProfileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityStateModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserSettingsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserSettingsRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserTeamworkModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UserTeamworkRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/UsernameSourceEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VariableManagementConditionExpressionModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VendorModel.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VendorRequest.go160
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VerifiedDomainModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VersionActionModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VideoModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VisibilitySettingEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VisualInfoModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VisualPropertiesModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnAuthenticationMethodEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnClientAuthenticationTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnConfigurationModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnDNSRuleModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnDeadPeerDetectionRateEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnEncryptionAlgorithmTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnIntegrityAlgorithmTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnLocalIdentifierEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleConnectionActionEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleConnectionDomainActionEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnProviderTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnProxyServerModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnRouteModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnServerCertificateTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnServerModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleAppTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleRoutingPolicyTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VppLicensingTypeModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VppTokenAccountTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VppTokenAction.go68
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VppTokenActionFailureReasonEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VppTokenActionResultModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VppTokenLicenseSummaryModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VppTokenModel.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VppTokenRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VppTokenRevokeLicensesActionResultModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VppTokenStateEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VppTokenSyncStatusEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/VulnerabilityStateModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WatermarkLayoutEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WebAccountModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WebAccountRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WebAppModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WebApplicationModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WebBrowserCookieSettingsEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WebPartModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WebsiteModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WebsiteTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WeekIndexEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WeeklyScheduleEnum.go89
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WelcomeScreenMeetingInformationEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WiFiAuthenticationMethodEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WiFiProxySettingEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WiFiSecurityTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppAssignmentSettingsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppDetectionModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppDetectionOperatorEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemDetectionModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemDetectionTypeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemRequirementModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppInstallExperienceModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppMsiInformationModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppMsiPackageTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppNotificationEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionTypeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptRequirementModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppProductCodeDetectionModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryDetectionModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryDetectionTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryRequirementModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRequirementModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRestartBehaviorEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRestartSettingsModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppReturnCodeModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppReturnCodeTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppsForceUpdateScheduleModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppsUpdateRecurrenceEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10AssociatedAppsModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10CertificateProfileBaseModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10CompliancePolicyModel.go71
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10CustomConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10DeviceFirmwareConfigurationInterfaceModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10DeviceModeTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10EasEmailProfileConfigurationModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10EditionTypeEnum.go169
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10EndpointProtectionConfigurationModel.go365
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationPolicySetItemModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnterpriseModernAppManagementConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10GeneralConfigurationModel.go569
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10GeneralConfigurationRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10ImportedPFXCertificateProfileModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10ImportedPFXCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10MobileCompliancePolicyModel.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10NetworkBoundaryConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10NetworkProxyServerModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10PFXImportCertificateProfileModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10PkcsCertificateProfileModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10PkcsCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10SecureAssessmentConfigurationModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10TeamGeneralConfigurationModel.go51
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnAuthenticationMethodEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConfigurationModel.go55
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConfigurationRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConnectionTypeEnum.go89
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnProfileTargetEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnProxyServerModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows81CertificateProfileBaseModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows81CompliancePolicyModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows81GeneralConfigurationModel.go79
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows81SCEPCertificateProfileModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows81SCEPCertificateProfileRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows81TrustedRootCertificateModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows81TrustedRootCertificateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows81VpnConfigurationModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows81VpnProxyServerModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/Windows81WifiImportConfigurationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppStartLayoutTileSizeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppXAppAssignmentSettingsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppXModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsArchitectureEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAssignedAccessProfileModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAction.go132
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfilePolicySetItemModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentStateEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityAction.go173
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityModel.go55
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotEnrollmentTypeEnum.go81
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotProfileAssignmentDetailedStatusEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotProfileAssignmentStatusEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsAction.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSyncStatusEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsCertificateProfileBaseModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsCertificateProfileBaseRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderAdvancedThreatProtectionConfigurationModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyRequest.go240
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyStatusesEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderScanActionResultModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderTamperProtectionOptionsEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeliveryOptimizationConfigurationModel.go43
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeliveryOptimizationModeEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceADAccountModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceAccountModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceAzureADAccountModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceHealthStateEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceMalwareStateModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceMalwareStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceTypeEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceUsageTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDomainJoinConfigurationModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsDomainJoinConfigurationRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsEnrollmentStatusScreenSettingsModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileRequest.go233
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallNetworkProfileModel.go55
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleInterfaceTypesEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleModel.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleNetworkProfileTypesEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleTrafficDirectionTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsHealthMonitoringConfigurationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsHealthMonitoringScopeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsHelloForBusinessPinUsageEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsIdentityProtectionConfigurationModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLearningSummaryModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLearningSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLockerFileModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLockerFileRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDataRecoveryCertificateModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDesktopAppModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationAction.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionEnforcementLevelEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionIPRangeCollectionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionModel.go59
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionNetworkLearningSummaryModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionNetworkLearningSummaryRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPinCharacterRequirementsEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPolicyModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPolicyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionProxiedDomainCollectionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionRequest.go327
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionResourceCollectionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionStoreAppModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionWipeActionModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionWipeActionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskActiveDirectoryGroupModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppBaseModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppConfigurationModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAutologonModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAzureADGroupModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAzureADUserModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskConfigurationModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskDesktopAppModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskForceUpdateScheduleModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskLocalGroupModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskLocalUserModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskMultipleAppsModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskProfileModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskSingleUWPAppModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskUWPAppModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskUserModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskVisitorModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareCategoryCountModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareCategoryEnum.go409
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareExecutionStateCountModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareExecutionStateEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareInformationModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareInformationRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareNameCountModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareOverviewModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareSeverityEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareStateCountModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareStateEnum.go113
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareThreatStateEnum.go97
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagedDeviceModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthStateModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthSummaryModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsMicrosoftEdgeAppModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsMinimumOperatingSystemModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsMobileMSIModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsNetworkIsolationPolicyModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsOfficeClientConfigurationModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsOfficeClientSecurityConfigurationModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPackageInformationModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81AppXBundleModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81AppXModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CertificateProfileBaseModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CertificateProfileBaseRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CompliancePolicyModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CustomConfigurationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81GeneralConfigurationModel.go67
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81ImportedPFXCertificateProfileModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81ImportedPFXCertificateProfileRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81SCEPCertificateProfileModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81SCEPCertificateProfileRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81StoreAppModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81TrustedRootCertificateModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81TrustedRootCertificateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81VpnConfigurationModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81VpnConfigurationRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhoneEASEmailProfileConfigurationModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhoneXAPModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessControlItemModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessControlItemRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessLevelEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataCategoryEnum.go161
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsProtectionStateModel.go47
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsProtectionStateRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsSModeConfigurationEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsSpotlightEnablementSettingsEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsStartMenuAppListVisibilityTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsStartMenuModeTypeEnum.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsStoreAppModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXAppAssignmentSettingsModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXContainedAppModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateActiveHoursInstallModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationAction.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationModel.go83
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessUpdateWeeksEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateInstallScheduleTypeModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateNotificationDisplayOptionEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateScheduledInstallModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStateModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStateRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStatusEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateTypeEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUserAccountControlSettingsEnum.go49
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsUserTypeEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsVpnConfigurationModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsVpnConnectionTypeEnum.go41
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiConfigurationModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiEnterpriseEAPConfigurationModel.go39
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiEnterpriseEAPConfigurationRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WiredNetworkInterfaceEnum.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkPositionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkPositionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookAction.go98
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationAction.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAction.go113
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAreaFormatModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAreaFormatRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxesModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxesRequest.go59
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisFormatModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisFormatRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisRequest.go66
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleFormatModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleFormatRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelFormatModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelFormatRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelsModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelsRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillAction.go67
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFontModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFontRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesFormatModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesFormatRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendFormatModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendFormatRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatAction.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointFormatModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointFormatRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartRequest.go181
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesFormatModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesFormatRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesRequest.go146
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleFormatModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleFormatRequest.go52
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentReplyModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentReplyRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterAction.go394
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterCriteriaModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterDatetimeModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFormatProtectionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFormatProtectionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionResultModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsAction.go12984
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookIconModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemAction.go98
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableAction.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeAction.go164
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeBorderModel.go17
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeBorderRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillAction.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFontModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFontRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatAction.go65
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatRequest.go160
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeModel.go51
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeReferenceModel.go11
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeRequest.go59
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortAction.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortModel.go9
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeViewModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeViewRequest.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRequest.go435
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookSessionInfoModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookSortFieldModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableAction.go139
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnAction.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnRequest.go45
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRequest.go247
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowAction.go43
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortAction.go101
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortModel.go15
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetAction.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetModel.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionAction.go67
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionOptionsModel.go31
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetRequest.go428
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationEncryptionModel.go13
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationEncryptionProtocolEnum.go25
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationRequest.go38
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationSupportedEntitiesEnum.go57
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/WorkingHoursModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/YammerActivitySummaryModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/YammerActivityUserDetailModel.go33
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageDistributionUserCountsModel.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageUserCountsModel.go29
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageUserDetailModel.go37
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityCountsModel.go23
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityDetailModel.go35
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityGroupCountsModel.go21
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/YomiPersonNameModel.go19
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/extensions.go62
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/msgraph.go261
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/jsonx/README.md55
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/jsonx/decode.go1376
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/jsonx/encode.go1317
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/jsonx/fold.go143
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/jsonx/indent.go141
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/jsonx/scanner.go573
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/jsonx/stream.go507
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/jsonx/tables.go218
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/jsonx/tags.go44
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/msauth/README.md70
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/msauth/client_credentials_grant.go27
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/msauth/device_authorization_grant.go96
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/msauth/msauth.go148
3300 files changed, 217151 insertions, 0 deletions
diff --git a/vendor/github.com/matterbridge/discordgo/.travis.yml b/vendor/github.com/matterbridge/discordgo/.travis.yml
new file mode 100644
index 00000000..2656ae53
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/.travis.yml
@@ -0,0 +1,14 @@
+language: go
+go:
+ - 1.9.x
+ - 1.10.x
+ - 1.11.x
+install:
+ - go get github.com/bwmarrin/discordgo
+ - go get -v .
+ - go get -v golang.org/x/lint/golint
+script:
+ - diff <(gofmt -d .) <(echo -n)
+ - go vet -x ./...
+ - golint -set_exit_status ./...
+ - go test -v -race ./...
diff --git a/vendor/github.com/matterbridge/discordgo/LICENSE b/vendor/github.com/matterbridge/discordgo/LICENSE
new file mode 100644
index 00000000..8d062ea5
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/LICENSE
@@ -0,0 +1,28 @@
+Copyright (c) 2015, Bruce Marriner
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the name of discordgo nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/vendor/github.com/matterbridge/discordgo/README.md b/vendor/github.com/matterbridge/discordgo/README.md
new file mode 100644
index 00000000..7a83b9e2
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/README.md
@@ -0,0 +1,130 @@
+# DiscordGo
+
+[![GoDoc](https://godoc.org/github.com/bwmarrin/discordgo?status.svg)](https://godoc.org/github.com/bwmarrin/discordgo) [![Go report](http://goreportcard.com/badge/bwmarrin/discordgo)](http://goreportcard.com/report/bwmarrin/discordgo) [![Build Status](https://travis-ci.org/bwmarrin/discordgo.svg?branch=master)](https://travis-ci.org/bwmarrin/discordgo) [![Discord Gophers](https://img.shields.io/badge/Discord%20Gophers-%23discordgo-blue.svg)](https://discord.gg/0f1SbxBZjYoCtNPP) [![Discord API](https://img.shields.io/badge/Discord%20API-%23go_discordgo-blue.svg)](https://discordapp.com/invite/discord-api)
+
+<img align="right" src="http://bwmarrin.github.io/discordgo/img/discordgo.png">
+
+DiscordGo is a [Go](https://golang.org/) package that provides low level
+bindings to the [Discord](https://discordapp.com/) chat client API. DiscordGo
+has nearly complete support for all of the Discord API endpoints, websocket
+interface, and voice interface.
+
+If you would like to help the DiscordGo package please use
+[this link](https://discordapp.com/oauth2/authorize?client_id=173113690092994561&scope=bot)
+to add the official DiscordGo test bot **dgo** to your server. This provides
+indispensable help to this project.
+
+* See [dgVoice](https://github.com/bwmarrin/dgvoice) package for an example of
+additional voice helper functions and features for DiscordGo.
+
+* See [dca](https://github.com/bwmarrin/dca) for an **experimental** stand alone
+tool that wraps `ffmpeg` to create opus encoded audio appropriate for use with
+Discord (and DiscordGo).
+
+**For help with this package or general Go discussion, please join the [Discord
+Gophers](https://discord.gg/0f1SbxBZjYq9jLBk) chat server.**
+
+## Getting Started
+
+### master vs develop Branch
+* The master branch represents the latest released version of DiscordGo. This
+branch will always have a stable and tested version of the library. Each release
+is tagged and you can easily download a specific release and view release notes
+on the github [releases](https://github.com/bwmarrin/discordgo/releases) page.
+
+* The develop branch is where all development happens and almost always has
+new features over the master branch. However breaking changes are frequently
+added to develop and even sometimes bugs are introduced. Bugs get fixed and
+the breaking changes get documented before pushing to master.
+
+*So, what should you use?*
+
+If you can accept the constant changing nature of *develop*, it is the
+recommended branch to use. Otherwise, if you want to tail behind development
+slightly and have a more stable package with documented releases, use *master*.
+
+### Installing
+
+This assumes you already have a working Go environment, if not please see
+[this page](https://golang.org/doc/install) first.
+
+`go get` *will always pull the latest released version from the master branch.*
+
+```sh
+go get github.com/bwmarrin/discordgo
+```
+
+If you want to use the develop branch, follow these steps next.
+
+```sh
+cd $GOPATH/src/github.com/bwmarrin/discordgo
+git checkout develop
+```
+
+### Usage
+
+Import the package into your project.
+
+```go
+import "github.com/bwmarrin/discordgo"
+```
+
+Construct a new Discord client which can be used to access the variety of
+Discord API functions and to set callback functions for Discord events.
+
+```go
+discord, err := discordgo.New("Bot " + "authentication token")
+```
+
+See Documentation and Examples below for more detailed information.
+
+
+## Documentation
+
+**NOTICE** : This library and the Discord API are unfinished.
+Because of that there may be major changes to library in the future.
+
+The DiscordGo code is fairly well documented at this point and is currently
+the only documentation available. Both GoDoc and GoWalker (below) present
+that information in a nice format.
+
+- [![GoDoc](https://godoc.org/github.com/bwmarrin/discordgo?status.svg)](https://godoc.org/github.com/bwmarrin/discordgo)
+- [![Go Walker](http://gowalker.org/api/v1/badge)](https://gowalker.org/github.com/bwmarrin/discordgo)
+- Hand crafted documentation coming eventually.
+
+
+## Examples
+
+Below is a list of examples and other projects using DiscordGo. Please submit
+an issue if you would like your project added or removed from this list.
+
+- [DiscordGo Examples](https://github.com/bwmarrin/discordgo/tree/master/examples) - A collection of example programs written with DiscordGo
+- [Awesome DiscordGo](https://github.com/bwmarrin/discordgo/wiki/Awesome-DiscordGo) - A curated list of high quality projects using DiscordGo
+
+## Troubleshooting
+For help with common problems please reference the
+[Troubleshooting](https://github.com/bwmarrin/discordgo/wiki/Troubleshooting)
+section of the project wiki.
+
+
+## Contributing
+Contributions are very welcomed, however please follow the below guidelines.
+
+- First open an issue describing the bug or enhancement so it can be
+discussed.
+- Fork the develop branch and make your changes.
+- Try to match current naming conventions as closely as possible.
+- This package is intended to be a low level direct mapping of the Discord API,
+so please avoid adding enhancements outside of that scope without first
+discussing it.
+- Create a Pull Request with your changes against the develop branch.
+
+
+## List of Discord APIs
+
+See [this chart](https://abal.moe/Discord/Libraries.html) for a feature
+comparison and list of other Discord API libraries.
+
+## Special Thanks
+
+[Chris Rhodes](https://github.com/iopred) - For the DiscordGo logo and tons of PRs.
diff --git a/vendor/github.com/matterbridge/discordgo/discord.go b/vendor/github.com/matterbridge/discordgo/discord.go
new file mode 100644
index 00000000..3bcbe8b8
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/discord.go
@@ -0,0 +1,147 @@
+// Discordgo - Discord bindings for Go
+// Available at https://github.com/matterbridge/discordgo
+
+// Copyright 2015-2016 Bruce Marriner <bruce@sqls.net>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file contains high level helper functions and easy entry points for the
+// entire discordgo package. These functions are being developed and are very
+// experimental at this point. They will most likely change so please use the
+// low level functions if that's a problem.
+
+// Package discordgo provides Discord binding for Go
+package discordgo
+
+import (
+ "errors"
+ "fmt"
+ "net/http"
+ "time"
+)
+
+// VERSION of DiscordGo, follows Semantic Versioning. (http://semver.org/)
+const VERSION = "0.20.2"
+
+// ErrMFA will be risen by New when the user has 2FA.
+var ErrMFA = errors.New("account has 2FA enabled")
+
+// New creates a new Discord session and will automate some startup
+// tasks if given enough information to do so. Currently you can pass zero
+// arguments and it will return an empty Discord session.
+// There are 3 ways to call New:
+// With a single auth token - All requests will use the token blindly,
+// no verification of the token will be done and requests may fail.
+// IF THE TOKEN IS FOR A BOT, IT MUST BE PREFIXED WITH `BOT `
+// eg: `"Bot <token>"`
+// With an email and password - Discord will sign in with the provided
+// credentials.
+// With an email, password and auth token - Discord will verify the auth
+// token, if it is invalid it will sign in with the provided
+// credentials. This is the Discord recommended way to sign in.
+//
+// NOTE: While email/pass authentication is supported by DiscordGo it is
+// HIGHLY DISCOURAGED by Discord. Please only use email/pass to obtain a token
+// and then use that authentication token for all future connections.
+// Also, doing any form of automation with a user (non Bot) account may result
+// in that account being permanently banned from Discord.
+func New(args ...interface{}) (s *Session, err error) {
+
+ // Create an empty Session interface.
+ s = &Session{
+ State: NewState(),
+ Ratelimiter: NewRatelimiter(),
+ StateEnabled: true,
+ Compress: true,
+ ShouldReconnectOnError: true,
+ ShardID: 0,
+ ShardCount: 1,
+ MaxRestRetries: 3,
+ Client: &http.Client{Timeout: (20 * time.Second)},
+ UserAgent: "DiscordBot (https://github.com/matterbridge/discordgo, v" + VERSION + ")",
+ sequence: new(int64),
+ LastHeartbeatAck: time.Now().UTC(),
+ }
+
+ // If no arguments are passed return the empty Session interface.
+ if args == nil {
+ return
+ }
+
+ // Variables used below when parsing func arguments
+ var auth, pass string
+
+ // Parse passed arguments
+ for _, arg := range args {
+
+ switch v := arg.(type) {
+
+ case []string:
+ if len(v) > 3 {
+ err = fmt.Errorf("too many string parameters provided")
+ return
+ }
+
+ // First string is either token or username
+ if len(v) > 0 {
+ auth = v[0]
+ }
+
+ // If second string exists, it must be a password.
+ if len(v) > 1 {
+ pass = v[1]
+ }
+
+ // If third string exists, it must be an auth token.
+ if len(v) > 2 {
+ s.Token = v[2]
+ }
+
+ case string:
+ // First string must be either auth token or username.
+ // Second string must be a password.
+ // Only 2 input strings are supported.
+
+ if auth == "" {
+ auth = v
+ } else if pass == "" {
+ pass = v
+ } else if s.Token == "" {
+ s.Token = v
+ } else {
+ err = fmt.Errorf("too many string parameters provided")
+ return
+ }
+
+ // case Config:
+ // TODO: Parse configuration struct
+
+ default:
+ err = fmt.Errorf("unsupported parameter type provided")
+ return
+ }
+ }
+
+ // If only one string was provided, assume it is an auth token.
+ // Otherwise get auth token from Discord, if a token was specified
+ // Discord will verify it for free, or log the user in if it is
+ // invalid.
+ if pass == "" {
+ s.Token = auth
+ } else {
+ err = s.Login(auth, pass)
+ if err != nil || s.Token == "" {
+ if s.MFA {
+ err = ErrMFA
+ } else {
+ err = fmt.Errorf("Unable to fetch discord authentication token. %v", err)
+ }
+ return
+ }
+ }
+
+ // The Session is now able to have RestAPI methods called on it.
+ // It is recommended that you now call Open() so that events will trigger.
+
+ return
+}
diff --git a/vendor/github.com/matterbridge/discordgo/endpoints.go b/vendor/github.com/matterbridge/discordgo/endpoints.go
new file mode 100644
index 00000000..6f86b67f
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/endpoints.go
@@ -0,0 +1,150 @@
+// Discordgo - Discord bindings for Go
+// Available at https://github.com/bwmarrin/discordgo
+
+// Copyright 2015-2016 Bruce Marriner <bruce@sqls.net>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file contains variables for all known Discord end points. All functions
+// throughout the Discordgo package use these variables for all connections
+// to Discord. These are all exported and you may modify them if needed.
+
+package discordgo
+
+import "strconv"
+
+// APIVersion is the Discord API version used for the REST and Websocket API.
+var APIVersion = "6"
+
+// Known Discord API Endpoints.
+var (
+ EndpointStatus = "https://status.discordapp.com/api/v2/"
+ EndpointSm = EndpointStatus + "scheduled-maintenances/"
+ EndpointSmActive = EndpointSm + "active.json"
+ EndpointSmUpcoming = EndpointSm + "upcoming.json"
+
+ EndpointDiscord = "https://discordapp.com/"
+ EndpointAPI = EndpointDiscord + "api/v" + APIVersion + "/"
+ EndpointGuilds = EndpointAPI + "guilds/"
+ EndpointChannels = EndpointAPI + "channels/"
+ EndpointUsers = EndpointAPI + "users/"
+ EndpointGateway = EndpointAPI + "gateway"
+ EndpointGatewayBot = EndpointGateway + "/bot"
+ EndpointWebhooks = EndpointAPI + "webhooks/"
+
+ EndpointCDN = "https://cdn.discordapp.com/"
+ EndpointCDNAttachments = EndpointCDN + "attachments/"
+ EndpointCDNAvatars = EndpointCDN + "avatars/"
+ EndpointCDNIcons = EndpointCDN + "icons/"
+ EndpointCDNSplashes = EndpointCDN + "splashes/"
+ EndpointCDNChannelIcons = EndpointCDN + "channel-icons/"
+ EndpointCDNBanners = EndpointCDN + "banners/"
+
+ EndpointAuth = EndpointAPI + "auth/"
+ EndpointLogin = EndpointAuth + "login"
+ EndpointLogout = EndpointAuth + "logout"
+ EndpointVerify = EndpointAuth + "verify"
+ EndpointVerifyResend = EndpointAuth + "verify/resend"
+ EndpointForgotPassword = EndpointAuth + "forgot"
+ EndpointResetPassword = EndpointAuth + "reset"
+ EndpointRegister = EndpointAuth + "register"
+
+ EndpointVoice = EndpointAPI + "/voice/"
+ EndpointVoiceRegions = EndpointVoice + "regions"
+ EndpointVoiceIce = EndpointVoice + "ice"
+
+ EndpointTutorial = EndpointAPI + "tutorial/"
+ EndpointTutorialIndicators = EndpointTutorial + "indicators"
+
+ EndpointTrack = EndpointAPI + "track"
+ EndpointSso = EndpointAPI + "sso"
+ EndpointReport = EndpointAPI + "report"
+ EndpointIntegrations = EndpointAPI + "integrations"
+
+ EndpointUser = func(uID string) string { return EndpointUsers + uID }
+ EndpointUserAvatar = func(uID, aID string) string { return EndpointCDNAvatars + uID + "/" + aID + ".png" }
+ EndpointUserAvatarAnimated = func(uID, aID string) string { return EndpointCDNAvatars + uID + "/" + aID + ".gif" }
+ EndpointDefaultUserAvatar = func(uDiscriminator string) string {
+ uDiscriminatorInt, _ := strconv.Atoi(uDiscriminator)
+ return EndpointCDN + "embed/avatars/" + strconv.Itoa(uDiscriminatorInt%5) + ".png"
+ }
+ EndpointUserSettings = func(uID string) string { return EndpointUsers + uID + "/settings" }
+ EndpointUserGuilds = func(uID string) string { return EndpointUsers + uID + "/guilds" }
+ EndpointUserGuild = func(uID, gID string) string { return EndpointUsers + uID + "/guilds/" + gID }
+ EndpointUserGuildSettings = func(uID, gID string) string { return EndpointUsers + uID + "/guilds/" + gID + "/settings" }
+ EndpointUserChannels = func(uID string) string { return EndpointUsers + uID + "/channels" }
+ EndpointUserDevices = func(uID string) string { return EndpointUsers + uID + "/devices" }
+ EndpointUserConnections = func(uID string) string { return EndpointUsers + uID + "/connections" }
+ EndpointUserNotes = func(uID string) string { return EndpointUsers + "@me/notes/" + uID }
+
+ EndpointGuild = func(gID string) string { return EndpointGuilds + gID }
+ EndpointGuildChannels = func(gID string) string { return EndpointGuilds + gID + "/channels" }
+ EndpointGuildMembers = func(gID string) string { return EndpointGuilds + gID + "/members" }
+ EndpointGuildMember = func(gID, uID string) string { return EndpointGuilds + gID + "/members/" + uID }
+ EndpointGuildMemberRole = func(gID, uID, rID string) string { return EndpointGuilds + gID + "/members/" + uID + "/roles/" + rID }
+ EndpointGuildBans = func(gID string) string { return EndpointGuilds + gID + "/bans" }
+ EndpointGuildBan = func(gID, uID string) string { return EndpointGuilds + gID + "/bans/" + uID }
+ EndpointGuildIntegrations = func(gID string) string { return EndpointGuilds + gID + "/integrations" }
+ EndpointGuildIntegration = func(gID, iID string) string { return EndpointGuilds + gID + "/integrations/" + iID }
+ EndpointGuildIntegrationSync = func(gID, iID string) string { return EndpointGuilds + gID + "/integrations/" + iID + "/sync" }
+ EndpointGuildRoles = func(gID string) string { return EndpointGuilds + gID + "/roles" }
+ EndpointGuildRole = func(gID, rID string) string { return EndpointGuilds + gID + "/roles/" + rID }
+ EndpointGuildInvites = func(gID string) string { return EndpointGuilds + gID + "/invites" }
+ EndpointGuildEmbed = func(gID string) string { return EndpointGuilds + gID + "/embed" }
+ EndpointGuildPrune = func(gID string) string { return EndpointGuilds + gID + "/prune" }
+ EndpointGuildIcon = func(gID, hash string) string { return EndpointCDNIcons + gID + "/" + hash + ".png" }
+ EndpointGuildIconAnimated = func(gID, hash string) string { return EndpointCDNIcons + gID + "/" + hash + ".gif" }
+ EndpointGuildSplash = func(gID, hash string) string { return EndpointCDNSplashes + gID + "/" + hash + ".png" }
+ EndpointGuildWebhooks = func(gID string) string { return EndpointGuilds + gID + "/webhooks" }
+ EndpointGuildAuditLogs = func(gID string) string { return EndpointGuilds + gID + "/audit-logs" }
+ EndpointGuildEmojis = func(gID string) string { return EndpointGuilds + gID + "/emojis" }
+ EndpointGuildEmoji = func(gID, eID string) string { return EndpointGuilds + gID + "/emojis/" + eID }
+ EndpointGuildBanner = func(gID, hash string) string { return EndpointCDNBanners + gID + "/" + hash + ".png" }
+
+ EndpointChannel = func(cID string) string { return EndpointChannels + cID }
+ EndpointChannelPermissions = func(cID string) string { return EndpointChannels + cID + "/permissions" }
+ EndpointChannelPermission = func(cID, tID string) string { return EndpointChannels + cID + "/permissions/" + tID }
+ EndpointChannelInvites = func(cID string) string { return EndpointChannels + cID + "/invites" }
+ EndpointChannelTyping = func(cID string) string { return EndpointChannels + cID + "/typing" }
+ EndpointChannelMessages = func(cID string) string { return EndpointChannels + cID + "/messages" }
+ EndpointChannelMessage = func(cID, mID string) string { return EndpointChannels + cID + "/messages/" + mID }
+ EndpointChannelMessageAck = func(cID, mID string) string { return EndpointChannels + cID + "/messages/" + mID + "/ack" }
+ EndpointChannelMessagesBulkDelete = func(cID string) string { return EndpointChannel(cID) + "/messages/bulk-delete" }
+ EndpointChannelMessagesPins = func(cID string) string { return EndpointChannel(cID) + "/pins" }
+ EndpointChannelMessagePin = func(cID, mID string) string { return EndpointChannel(cID) + "/pins/" + mID }
+
+ EndpointGroupIcon = func(cID, hash string) string { return EndpointCDNChannelIcons + cID + "/" + hash + ".png" }
+
+ EndpointChannelWebhooks = func(cID string) string { return EndpointChannel(cID) + "/webhooks" }
+ EndpointWebhook = func(wID string) string { return EndpointWebhooks + wID }
+ EndpointWebhookToken = func(wID, token string) string { return EndpointWebhooks + wID + "/" + token }
+
+ EndpointMessageReactionsAll = func(cID, mID string) string {
+ return EndpointChannelMessage(cID, mID) + "/reactions"
+ }
+ EndpointMessageReactions = func(cID, mID, eID string) string {
+ return EndpointChannelMessage(cID, mID) + "/reactions/" + eID
+ }
+ EndpointMessageReaction = func(cID, mID, eID, uID string) string {
+ return EndpointMessageReactions(cID, mID, eID) + "/" + uID
+ }
+
+ EndpointRelationships = func() string { return EndpointUsers + "@me" + "/relationships" }
+ EndpointRelationship = func(uID string) string { return EndpointRelationships() + "/" + uID }
+ EndpointRelationshipsMutual = func(uID string) string { return EndpointUsers + uID + "/relationships" }
+
+ EndpointGuildCreate = EndpointAPI + "guilds"
+
+ EndpointInvite = func(iID string) string { return EndpointAPI + "invite/" + iID }
+
+ EndpointIntegrationsJoin = func(iID string) string { return EndpointAPI + "integrations/" + iID + "/join" }
+
+ EndpointEmoji = func(eID string) string { return EndpointAPI + "emojis/" + eID + ".png" }
+ EndpointEmojiAnimated = func(eID string) string { return EndpointAPI + "emojis/" + eID + ".gif" }
+
+ EndpointOauth2 = EndpointAPI + "oauth2/"
+ EndpointApplications = EndpointOauth2 + "applications"
+ EndpointApplication = func(aID string) string { return EndpointApplications + "/" + aID }
+ EndpointApplicationsBot = func(aID string) string { return EndpointApplications + "/" + aID + "/bot" }
+ EndpointApplicationAssets = func(aID string) string { return EndpointApplications + "/" + aID + "/assets" }
+)
diff --git a/vendor/github.com/matterbridge/discordgo/event.go b/vendor/github.com/matterbridge/discordgo/event.go
new file mode 100644
index 00000000..97cc00a2
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/event.go
@@ -0,0 +1,247 @@
+package discordgo
+
+// EventHandler is an interface for Discord events.
+type EventHandler interface {
+ // Type returns the type of event this handler belongs to.
+ Type() string
+
+ // Handle is called whenever an event of Type() happens.
+ // It is the receivers responsibility to type assert that the interface
+ // is the expected struct.
+ Handle(*Session, interface{})
+}
+
+// EventInterfaceProvider is an interface for providing empty interfaces for
+// Discord events.
+type EventInterfaceProvider interface {
+ // Type is the type of event this handler belongs to.
+ Type() string
+
+ // New returns a new instance of the struct this event handler handles.
+ // This is called once per event.
+ // The struct is provided to all handlers of the same Type().
+ New() interface{}
+}
+
+// interfaceEventType is the event handler type for interface{} events.
+const interfaceEventType = "__INTERFACE__"
+
+// interfaceEventHandler is an event handler for interface{} events.
+type interfaceEventHandler func(*Session, interface{})
+
+// Type returns the event type for interface{} events.
+func (eh interfaceEventHandler) Type() string {
+ return interfaceEventType
+}
+
+// Handle is the handler for an interface{} event.
+func (eh interfaceEventHandler) Handle(s *Session, i interface{}) {
+ eh(s, i)
+}
+
+var registeredInterfaceProviders = map[string]EventInterfaceProvider{}
+
+// registerInterfaceProvider registers a provider so that DiscordGo can
+// access it's New() method.
+func registerInterfaceProvider(eh EventInterfaceProvider) {
+ if _, ok := registeredInterfaceProviders[eh.Type()]; ok {
+ return
+ // XXX:
+ // if we should error here, we need to do something with it.
+ // fmt.Errorf("event %s already registered", eh.Type())
+ }
+ registeredInterfaceProviders[eh.Type()] = eh
+ return
+}
+
+// eventHandlerInstance is a wrapper around an event handler, as functions
+// cannot be compared directly.
+type eventHandlerInstance struct {
+ eventHandler EventHandler
+}
+
+// addEventHandler adds an event handler that will be fired anytime
+// the Discord WSAPI matching eventHandler.Type() fires.
+func (s *Session) addEventHandler(eventHandler EventHandler) func() {
+ s.handlersMu.Lock()
+ defer s.handlersMu.Unlock()
+
+ if s.handlers == nil {
+ s.handlers = map[string][]*eventHandlerInstance{}
+ }
+
+ ehi := &eventHandlerInstance{eventHandler}
+ s.handlers[eventHandler.Type()] = append(s.handlers[eventHandler.Type()], ehi)
+
+ return func() {
+ s.removeEventHandlerInstance(eventHandler.Type(), ehi)
+ }
+}
+
+// addEventHandler adds an event handler that will be fired the next time
+// the Discord WSAPI matching eventHandler.Type() fires.
+func (s *Session) addEventHandlerOnce(eventHandler EventHandler) func() {
+ s.handlersMu.Lock()
+ defer s.handlersMu.Unlock()
+
+ if s.onceHandlers == nil {
+ s.onceHandlers = map[string][]*eventHandlerInstance{}
+ }
+
+ ehi := &eventHandlerInstance{eventHandler}
+ s.onceHandlers[eventHandler.Type()] = append(s.onceHandlers[eventHandler.Type()], ehi)
+
+ return func() {
+ s.removeEventHandlerInstance(eventHandler.Type(), ehi)
+ }
+}
+
+// AddHandler allows you to add an event handler that will be fired anytime
+// the Discord WSAPI event that matches the function fires.
+// The first parameter is a *Session, and the second parameter is a pointer
+// to a struct corresponding to the event for which you want to listen.
+//
+// eg:
+// Session.AddHandler(func(s *discordgo.Session, m *discordgo.MessageCreate) {
+// })
+//
+// or:
+// Session.AddHandler(func(s *discordgo.Session, m *discordgo.PresenceUpdate) {
+// })
+//
+// List of events can be found at this page, with corresponding names in the
+// library for each event: https://discordapp.com/developers/docs/topics/gateway#event-names
+// There are also synthetic events fired by the library internally which are
+// available for handling, like Connect, Disconnect, and RateLimit.
+// events.go contains all of the Discord WSAPI and synthetic events that can be handled.
+//
+// The return value of this method is a function, that when called will remove the
+// event handler.
+func (s *Session) AddHandler(handler interface{}) func() {
+ eh := handlerForInterface(handler)
+
+ if eh == nil {
+ s.log(LogError, "Invalid handler type, handler will never be called")
+ return func() {}
+ }
+
+ return s.addEventHandler(eh)
+}
+
+// AddHandlerOnce allows you to add an event handler that will be fired the next time
+// the Discord WSAPI event that matches the function fires.
+// See AddHandler for more details.
+func (s *Session) AddHandlerOnce(handler interface{}) func() {
+ eh := handlerForInterface(handler)
+
+ if eh == nil {
+ s.log(LogError, "Invalid handler type, handler will never be called")
+ return func() {}
+ }
+
+ return s.addEventHandlerOnce(eh)
+}
+
+// removeEventHandler instance removes an event handler instance.
+func (s *Session) removeEventHandlerInstance(t string, ehi *eventHandlerInstance) {
+ s.handlersMu.Lock()
+ defer s.handlersMu.Unlock()
+
+ handlers := s.handlers[t]
+ for i := range handlers {
+ if handlers[i] == ehi {
+ s.handlers[t] = append(handlers[:i], handlers[i+1:]...)
+ }
+ }
+
+ onceHandlers := s.onceHandlers[t]
+ for i := range onceHandlers {
+ if onceHandlers[i] == ehi {
+ s.onceHandlers[t] = append(onceHandlers[:i], handlers[i+1:]...)
+ }
+ }
+}
+
+// Handles calling permanent and once handlers for an event type.
+func (s *Session) handle(t string, i interface{}) {
+ for _, eh := range s.handlers[t] {
+ if s.SyncEvents {
+ eh.eventHandler.Handle(s, i)
+ } else {
+ go eh.eventHandler.Handle(s, i)
+ }
+ }
+
+ if len(s.onceHandlers[t]) > 0 {
+ for _, eh := range s.onceHandlers[t] {
+ if s.SyncEvents {
+ eh.eventHandler.Handle(s, i)
+ } else {
+ go eh.eventHandler.Handle(s, i)
+ }
+ }
+ s.onceHandlers[t] = nil
+ }
+}
+
+// Handles an event type by calling internal methods, firing handlers and firing the
+// interface{} event.
+func (s *Session) handleEvent(t string, i interface{}) {
+ s.handlersMu.RLock()
+ defer s.handlersMu.RUnlock()
+
+ // All events are dispatched internally first.
+ s.onInterface(i)
+
+ // Then they are dispatched to anyone handling interface{} events.
+ s.handle(interfaceEventType, i)
+
+ // Finally they are dispatched to any typed handlers.
+ s.handle(t, i)
+}
+
+// setGuildIds will set the GuildID on all the members of a guild.
+// This is done as event data does not have it set.
+func setGuildIds(g *Guild) {
+ for _, c := range g.Channels {
+ c.GuildID = g.ID
+ }
+
+ for _, m := range g.Members {
+ m.GuildID = g.ID
+ }
+
+ for _, vs := range g.VoiceStates {
+ vs.GuildID = g.ID
+ }
+}
+
+// onInterface handles all internal events and routes them to the appropriate internal handler.
+func (s *Session) onInterface(i interface{}) {
+ switch t := i.(type) {
+ case *Ready:
+ for _, g := range t.Guilds {
+ setGuildIds(g)
+ }
+ s.onReady(t)
+ case *GuildCreate:
+ setGuildIds(t.Guild)
+ case *GuildUpdate:
+ setGuildIds(t.Guild)
+ case *VoiceServerUpdate:
+ go s.onVoiceServerUpdate(t)
+ case *VoiceStateUpdate:
+ go s.onVoiceStateUpdate(t)
+ }
+ err := s.State.OnInterface(s, i)
+ if err != nil {
+ s.log(LogDebug, "error dispatching internal event, %s", err)
+ }
+}
+
+// onReady handles the ready event.
+func (s *Session) onReady(r *Ready) {
+
+ // Store the SessionID within the Session struct.
+ s.sessionID = r.SessionID
+}
diff --git a/vendor/github.com/matterbridge/discordgo/eventhandlers.go b/vendor/github.com/matterbridge/discordgo/eventhandlers.go
new file mode 100644
index 00000000..d2b9a98b
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/eventhandlers.go
@@ -0,0 +1,1054 @@
+// Code generated by \"eventhandlers\"; DO NOT EDIT
+// See events.go
+
+package discordgo
+
+// Following are all the event types.
+// Event type values are used to match the events returned by Discord.
+// EventTypes surrounded by __ are synthetic and are internal to DiscordGo.
+const (
+ channelCreateEventType = "CHANNEL_CREATE"
+ channelDeleteEventType = "CHANNEL_DELETE"
+ channelPinsUpdateEventType = "CHANNEL_PINS_UPDATE"
+ channelUpdateEventType = "CHANNEL_UPDATE"
+ connectEventType = "__CONNECT__"
+ disconnectEventType = "__DISCONNECT__"
+ eventEventType = "__EVENT__"
+ guildBanAddEventType = "GUILD_BAN_ADD"
+ guildBanRemoveEventType = "GUILD_BAN_REMOVE"
+ guildCreateEventType = "GUILD_CREATE"
+ guildDeleteEventType = "GUILD_DELETE"
+ guildEmojisUpdateEventType = "GUILD_EMOJIS_UPDATE"
+ guildIntegrationsUpdateEventType = "GUILD_INTEGRATIONS_UPDATE"
+ guildMemberAddEventType = "GUILD_MEMBER_ADD"
+ guildMemberRemoveEventType = "GUILD_MEMBER_REMOVE"
+ guildMemberUpdateEventType = "GUILD_MEMBER_UPDATE"
+ guildMembersChunkEventType = "GUILD_MEMBERS_CHUNK"
+ guildRoleCreateEventType = "GUILD_ROLE_CREATE"
+ guildRoleDeleteEventType = "GUILD_ROLE_DELETE"
+ guildRoleUpdateEventType = "GUILD_ROLE_UPDATE"
+ guildUpdateEventType = "GUILD_UPDATE"
+ messageAckEventType = "MESSAGE_ACK"
+ messageCreateEventType = "MESSAGE_CREATE"
+ messageDeleteEventType = "MESSAGE_DELETE"
+ messageDeleteBulkEventType = "MESSAGE_DELETE_BULK"
+ messageReactionAddEventType = "MESSAGE_REACTION_ADD"
+ messageReactionRemoveEventType = "MESSAGE_REACTION_REMOVE"
+ messageReactionRemoveAllEventType = "MESSAGE_REACTION_REMOVE_ALL"
+ messageUpdateEventType = "MESSAGE_UPDATE"
+ presenceUpdateEventType = "PRESENCE_UPDATE"
+ presencesReplaceEventType = "PRESENCES_REPLACE"
+ rateLimitEventType = "__RATE_LIMIT__"
+ readyEventType = "READY"
+ relationshipAddEventType = "RELATIONSHIP_ADD"
+ relationshipRemoveEventType = "RELATIONSHIP_REMOVE"
+ resumedEventType = "RESUMED"
+ typingStartEventType = "TYPING_START"
+ userGuildSettingsUpdateEventType = "USER_GUILD_SETTINGS_UPDATE"
+ userNoteUpdateEventType = "USER_NOTE_UPDATE"
+ userSettingsUpdateEventType = "USER_SETTINGS_UPDATE"
+ userUpdateEventType = "USER_UPDATE"
+ voiceServerUpdateEventType = "VOICE_SERVER_UPDATE"
+ voiceStateUpdateEventType = "VOICE_STATE_UPDATE"
+ webhooksUpdateEventType = "WEBHOOKS_UPDATE"
+)
+
+// channelCreateEventHandler is an event handler for ChannelCreate events.
+type channelCreateEventHandler func(*Session, *ChannelCreate)
+
+// Type returns the event type for ChannelCreate events.
+func (eh channelCreateEventHandler) Type() string {
+ return channelCreateEventType
+}
+
+// New returns a new instance of ChannelCreate.
+func (eh channelCreateEventHandler) New() interface{} {
+ return &ChannelCreate{}
+}
+
+// Handle is the handler for ChannelCreate events.
+func (eh channelCreateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*ChannelCreate); ok {
+ eh(s, t)
+ }
+}
+
+// channelDeleteEventHandler is an event handler for ChannelDelete events.
+type channelDeleteEventHandler func(*Session, *ChannelDelete)
+
+// Type returns the event type for ChannelDelete events.
+func (eh channelDeleteEventHandler) Type() string {
+ return channelDeleteEventType
+}
+
+// New returns a new instance of ChannelDelete.
+func (eh channelDeleteEventHandler) New() interface{} {
+ return &ChannelDelete{}
+}
+
+// Handle is the handler for ChannelDelete events.
+func (eh channelDeleteEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*ChannelDelete); ok {
+ eh(s, t)
+ }
+}
+
+// channelPinsUpdateEventHandler is an event handler for ChannelPinsUpdate events.
+type channelPinsUpdateEventHandler func(*Session, *ChannelPinsUpdate)
+
+// Type returns the event type for ChannelPinsUpdate events.
+func (eh channelPinsUpdateEventHandler) Type() string {
+ return channelPinsUpdateEventType
+}
+
+// New returns a new instance of ChannelPinsUpdate.
+func (eh channelPinsUpdateEventHandler) New() interface{} {
+ return &ChannelPinsUpdate{}
+}
+
+// Handle is the handler for ChannelPinsUpdate events.
+func (eh channelPinsUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*ChannelPinsUpdate); ok {
+ eh(s, t)
+ }
+}
+
+// channelUpdateEventHandler is an event handler for ChannelUpdate events.
+type channelUpdateEventHandler func(*Session, *ChannelUpdate)
+
+// Type returns the event type for ChannelUpdate events.
+func (eh channelUpdateEventHandler) Type() string {
+ return channelUpdateEventType
+}
+
+// New returns a new instance of ChannelUpdate.
+func (eh channelUpdateEventHandler) New() interface{} {
+ return &ChannelUpdate{}
+}
+
+// Handle is the handler for ChannelUpdate events.
+func (eh channelUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*ChannelUpdate); ok {
+ eh(s, t)
+ }
+}
+
+// connectEventHandler is an event handler for Connect events.
+type connectEventHandler func(*Session, *Connect)
+
+// Type returns the event type for Connect events.
+func (eh connectEventHandler) Type() string {
+ return connectEventType
+}
+
+// Handle is the handler for Connect events.
+func (eh connectEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*Connect); ok {
+ eh(s, t)
+ }
+}
+
+// disconnectEventHandler is an event handler for Disconnect events.
+type disconnectEventHandler func(*Session, *Disconnect)
+
+// Type returns the event type for Disconnect events.
+func (eh disconnectEventHandler) Type() string {
+ return disconnectEventType
+}
+
+// Handle is the handler for Disconnect events.
+func (eh disconnectEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*Disconnect); ok {
+ eh(s, t)
+ }
+}
+
+// eventEventHandler is an event handler for Event events.
+type eventEventHandler func(*Session, *Event)
+
+// Type returns the event type for Event events.
+func (eh eventEventHandler) Type() string {
+ return eventEventType
+}
+
+// Handle is the handler for Event events.
+func (eh eventEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*Event); ok {
+ eh(s, t)
+ }
+}
+
+// guildBanAddEventHandler is an event handler for GuildBanAdd events.
+type guildBanAddEventHandler func(*Session, *GuildBanAdd)
+
+// Type returns the event type for GuildBanAdd events.
+func (eh guildBanAddEventHandler) Type() string {
+ return guildBanAddEventType
+}
+
+// New returns a new instance of GuildBanAdd.
+func (eh guildBanAddEventHandler) New() interface{} {
+ return &GuildBanAdd{}
+}
+
+// Handle is the handler for GuildBanAdd events.
+func (eh guildBanAddEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*GuildBanAdd); ok {
+ eh(s, t)
+ }
+}
+
+// guildBanRemoveEventHandler is an event handler for GuildBanRemove events.
+type guildBanRemoveEventHandler func(*Session, *GuildBanRemove)
+
+// Type returns the event type for GuildBanRemove events.
+func (eh guildBanRemoveEventHandler) Type() string {
+ return guildBanRemoveEventType
+}
+
+// New returns a new instance of GuildBanRemove.
+func (eh guildBanRemoveEventHandler) New() interface{} {
+ return &GuildBanRemove{}
+}
+
+// Handle is the handler for GuildBanRemove events.
+func (eh guildBanRemoveEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*GuildBanRemove); ok {
+ eh(s, t)
+ }
+}
+
+// guildCreateEventHandler is an event handler for GuildCreate events.
+type guildCreateEventHandler func(*Session, *GuildCreate)
+
+// Type returns the event type for GuildCreate events.
+func (eh guildCreateEventHandler) Type() string {
+ return guildCreateEventType
+}
+
+// New returns a new instance of GuildCreate.
+func (eh guildCreateEventHandler) New() interface{} {
+ return &GuildCreate{}
+}
+
+// Handle is the handler for GuildCreate events.
+func (eh guildCreateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*GuildCreate); ok {
+ eh(s, t)
+ }
+}
+
+// guildDeleteEventHandler is an event handler for GuildDelete events.
+type guildDeleteEventHandler func(*Session, *GuildDelete)
+
+// Type returns the event type for GuildDelete events.
+func (eh guildDeleteEventHandler) Type() string {
+ return guildDeleteEventType
+}
+
+// New returns a new instance of GuildDelete.
+func (eh guildDeleteEventHandler) New() interface{} {
+ return &GuildDelete{}
+}
+
+// Handle is the handler for GuildDelete events.
+func (eh guildDeleteEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*GuildDelete); ok {
+ eh(s, t)
+ }
+}
+
+// guildEmojisUpdateEventHandler is an event handler for GuildEmojisUpdate events.
+type guildEmojisUpdateEventHandler func(*Session, *GuildEmojisUpdate)
+
+// Type returns the event type for GuildEmojisUpdate events.
+func (eh guildEmojisUpdateEventHandler) Type() string {
+ return guildEmojisUpdateEventType
+}
+
+// New returns a new instance of GuildEmojisUpdate.
+func (eh guildEmojisUpdateEventHandler) New() interface{} {
+ return &GuildEmojisUpdate{}
+}
+
+// Handle is the handler for GuildEmojisUpdate events.
+func (eh guildEmojisUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*GuildEmojisUpdate); ok {
+ eh(s, t)
+ }
+}
+
+// guildIntegrationsUpdateEventHandler is an event handler for GuildIntegrationsUpdate events.
+type guildIntegrationsUpdateEventHandler func(*Session, *GuildIntegrationsUpdate)
+
+// Type returns the event type for GuildIntegrationsUpdate events.
+func (eh guildIntegrationsUpdateEventHandler) Type() string {
+ return guildIntegrationsUpdateEventType
+}
+
+// New returns a new instance of GuildIntegrationsUpdate.
+func (eh guildIntegrationsUpdateEventHandler) New() interface{} {
+ return &GuildIntegrationsUpdate{}
+}
+
+// Handle is the handler for GuildIntegrationsUpdate events.
+func (eh guildIntegrationsUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*GuildIntegrationsUpdate); ok {
+ eh(s, t)
+ }
+}
+
+// guildMemberAddEventHandler is an event handler for GuildMemberAdd events.
+type guildMemberAddEventHandler func(*Session, *GuildMemberAdd)
+
+// Type returns the event type for GuildMemberAdd events.
+func (eh guildMemberAddEventHandler) Type() string {
+ return guildMemberAddEventType
+}
+
+// New returns a new instance of GuildMemberAdd.
+func (eh guildMemberAddEventHandler) New() interface{} {
+ return &GuildMemberAdd{}
+}
+
+// Handle is the handler for GuildMemberAdd events.
+func (eh guildMemberAddEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*GuildMemberAdd); ok {
+ eh(s, t)
+ }
+}
+
+// guildMemberRemoveEventHandler is an event handler for GuildMemberRemove events.
+type guildMemberRemoveEventHandler func(*Session, *GuildMemberRemove)
+
+// Type returns the event type for GuildMemberRemove events.
+func (eh guildMemberRemoveEventHandler) Type() string {
+ return guildMemberRemoveEventType
+}
+
+// New returns a new instance of GuildMemberRemove.
+func (eh guildMemberRemoveEventHandler) New() interface{} {
+ return &GuildMemberRemove{}
+}
+
+// Handle is the handler for GuildMemberRemove events.
+func (eh guildMemberRemoveEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*GuildMemberRemove); ok {
+ eh(s, t)
+ }
+}
+
+// guildMemberUpdateEventHandler is an event handler for GuildMemberUpdate events.
+type guildMemberUpdateEventHandler func(*Session, *GuildMemberUpdate)
+
+// Type returns the event type for GuildMemberUpdate events.
+func (eh guildMemberUpdateEventHandler) Type() string {
+ return guildMemberUpdateEventType
+}
+
+// New returns a new instance of GuildMemberUpdate.
+func (eh guildMemberUpdateEventHandler) New() interface{} {
+ return &GuildMemberUpdate{}
+}
+
+// Handle is the handler for GuildMemberUpdate events.
+func (eh guildMemberUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*GuildMemberUpdate); ok {
+ eh(s, t)
+ }
+}
+
+// guildMembersChunkEventHandler is an event handler for GuildMembersChunk events.
+type guildMembersChunkEventHandler func(*Session, *GuildMembersChunk)
+
+// Type returns the event type for GuildMembersChunk events.
+func (eh guildMembersChunkEventHandler) Type() string {
+ return guildMembersChunkEventType
+}
+
+// New returns a new instance of GuildMembersChunk.
+func (eh guildMembersChunkEventHandler) New() interface{} {
+ return &GuildMembersChunk{}
+}
+
+// Handle is the handler for GuildMembersChunk events.
+func (eh guildMembersChunkEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*GuildMembersChunk); ok {
+ eh(s, t)
+ }
+}
+
+// guildRoleCreateEventHandler is an event handler for GuildRoleCreate events.
+type guildRoleCreateEventHandler func(*Session, *GuildRoleCreate)
+
+// Type returns the event type for GuildRoleCreate events.
+func (eh guildRoleCreateEventHandler) Type() string {
+ return guildRoleCreateEventType
+}
+
+// New returns a new instance of GuildRoleCreate.
+func (eh guildRoleCreateEventHandler) New() interface{} {
+ return &GuildRoleCreate{}
+}
+
+// Handle is the handler for GuildRoleCreate events.
+func (eh guildRoleCreateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*GuildRoleCreate); ok {
+ eh(s, t)
+ }
+}
+
+// guildRoleDeleteEventHandler is an event handler for GuildRoleDelete events.
+type guildRoleDeleteEventHandler func(*Session, *GuildRoleDelete)
+
+// Type returns the event type for GuildRoleDelete events.
+func (eh guildRoleDeleteEventHandler) Type() string {
+ return guildRoleDeleteEventType
+}
+
+// New returns a new instance of GuildRoleDelete.
+func (eh guildRoleDeleteEventHandler) New() interface{} {
+ return &GuildRoleDelete{}
+}
+
+// Handle is the handler for GuildRoleDelete events.
+func (eh guildRoleDeleteEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*GuildRoleDelete); ok {
+ eh(s, t)
+ }
+}
+
+// guildRoleUpdateEventHandler is an event handler for GuildRoleUpdate events.
+type guildRoleUpdateEventHandler func(*Session, *GuildRoleUpdate)
+
+// Type returns the event type for GuildRoleUpdate events.
+func (eh guildRoleUpdateEventHandler) Type() string {
+ return guildRoleUpdateEventType
+}
+
+// New returns a new instance of GuildRoleUpdate.
+func (eh guildRoleUpdateEventHandler) New() interface{} {
+ return &GuildRoleUpdate{}
+}
+
+// Handle is the handler for GuildRoleUpdate events.
+func (eh guildRoleUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*GuildRoleUpdate); ok {
+ eh(s, t)
+ }
+}
+
+// guildUpdateEventHandler is an event handler for GuildUpdate events.
+type guildUpdateEventHandler func(*Session, *GuildUpdate)
+
+// Type returns the event type for GuildUpdate events.
+func (eh guildUpdateEventHandler) Type() string {
+ return guildUpdateEventType
+}
+
+// New returns a new instance of GuildUpdate.
+func (eh guildUpdateEventHandler) New() interface{} {
+ return &GuildUpdate{}
+}
+
+// Handle is the handler for GuildUpdate events.
+func (eh guildUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*GuildUpdate); ok {
+ eh(s, t)
+ }
+}
+
+// messageAckEventHandler is an event handler for MessageAck events.
+type messageAckEventHandler func(*Session, *MessageAck)
+
+// Type returns the event type for MessageAck events.
+func (eh messageAckEventHandler) Type() string {
+ return messageAckEventType
+}
+
+// New returns a new instance of MessageAck.
+func (eh messageAckEventHandler) New() interface{} {
+ return &MessageAck{}
+}
+
+// Handle is the handler for MessageAck events.
+func (eh messageAckEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*MessageAck); ok {
+ eh(s, t)
+ }
+}
+
+// messageCreateEventHandler is an event handler for MessageCreate events.
+type messageCreateEventHandler func(*Session, *MessageCreate)
+
+// Type returns the event type for MessageCreate events.
+func (eh messageCreateEventHandler) Type() string {
+ return messageCreateEventType
+}
+
+// New returns a new instance of MessageCreate.
+func (eh messageCreateEventHandler) New() interface{} {
+ return &MessageCreate{}
+}
+
+// Handle is the handler for MessageCreate events.
+func (eh messageCreateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*MessageCreate); ok {
+ eh(s, t)
+ }
+}
+
+// messageDeleteEventHandler is an event handler for MessageDelete events.
+type messageDeleteEventHandler func(*Session, *MessageDelete)
+
+// Type returns the event type for MessageDelete events.
+func (eh messageDeleteEventHandler) Type() string {
+ return messageDeleteEventType
+}
+
+// New returns a new instance of MessageDelete.
+func (eh messageDeleteEventHandler) New() interface{} {
+ return &MessageDelete{}
+}
+
+// Handle is the handler for MessageDelete events.
+func (eh messageDeleteEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*MessageDelete); ok {
+ eh(s, t)
+ }
+}
+
+// messageDeleteBulkEventHandler is an event handler for MessageDeleteBulk events.
+type messageDeleteBulkEventHandler func(*Session, *MessageDeleteBulk)
+
+// Type returns the event type for MessageDeleteBulk events.
+func (eh messageDeleteBulkEventHandler) Type() string {
+ return messageDeleteBulkEventType
+}
+
+// New returns a new instance of MessageDeleteBulk.
+func (eh messageDeleteBulkEventHandler) New() interface{} {
+ return &MessageDeleteBulk{}
+}
+
+// Handle is the handler for MessageDeleteBulk events.
+func (eh messageDeleteBulkEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*MessageDeleteBulk); ok {
+ eh(s, t)
+ }
+}
+
+// messageReactionAddEventHandler is an event handler for MessageReactionAdd events.
+type messageReactionAddEventHandler func(*Session, *MessageReactionAdd)
+
+// Type returns the event type for MessageReactionAdd events.
+func (eh messageReactionAddEventHandler) Type() string {
+ return messageReactionAddEventType
+}
+
+// New returns a new instance of MessageReactionAdd.
+func (eh messageReactionAddEventHandler) New() interface{} {
+ return &MessageReactionAdd{}
+}
+
+// Handle is the handler for MessageReactionAdd events.
+func (eh messageReactionAddEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*MessageReactionAdd); ok {
+ eh(s, t)
+ }
+}
+
+// messageReactionRemoveEventHandler is an event handler for MessageReactionRemove events.
+type messageReactionRemoveEventHandler func(*Session, *MessageReactionRemove)
+
+// Type returns the event type for MessageReactionRemove events.
+func (eh messageReactionRemoveEventHandler) Type() string {
+ return messageReactionRemoveEventType
+}
+
+// New returns a new instance of MessageReactionRemove.
+func (eh messageReactionRemoveEventHandler) New() interface{} {
+ return &MessageReactionRemove{}
+}
+
+// Handle is the handler for MessageReactionRemove events.
+func (eh messageReactionRemoveEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*MessageReactionRemove); ok {
+ eh(s, t)
+ }
+}
+
+// messageReactionRemoveAllEventHandler is an event handler for MessageReactionRemoveAll events.
+type messageReactionRemoveAllEventHandler func(*Session, *MessageReactionRemoveAll)
+
+// Type returns the event type for MessageReactionRemoveAll events.
+func (eh messageReactionRemoveAllEventHandler) Type() string {
+ return messageReactionRemoveAllEventType
+}
+
+// New returns a new instance of MessageReactionRemoveAll.
+func (eh messageReactionRemoveAllEventHandler) New() interface{} {
+ return &MessageReactionRemoveAll{}
+}
+
+// Handle is the handler for MessageReactionRemoveAll events.
+func (eh messageReactionRemoveAllEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*MessageReactionRemoveAll); ok {
+ eh(s, t)
+ }
+}
+
+// messageUpdateEventHandler is an event handler for MessageUpdate events.
+type messageUpdateEventHandler func(*Session, *MessageUpdate)
+
+// Type returns the event type for MessageUpdate events.
+func (eh messageUpdateEventHandler) Type() string {
+ return messageUpdateEventType
+}
+
+// New returns a new instance of MessageUpdate.
+func (eh messageUpdateEventHandler) New() interface{} {
+ return &MessageUpdate{}
+}
+
+// Handle is the handler for MessageUpdate events.
+func (eh messageUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*MessageUpdate); ok {
+ eh(s, t)
+ }
+}
+
+// presenceUpdateEventHandler is an event handler for PresenceUpdate events.
+type presenceUpdateEventHandler func(*Session, *PresenceUpdate)
+
+// Type returns the event type for PresenceUpdate events.
+func (eh presenceUpdateEventHandler) Type() string {
+ return presenceUpdateEventType
+}
+
+// New returns a new instance of PresenceUpdate.
+func (eh presenceUpdateEventHandler) New() interface{} {
+ return &PresenceUpdate{}
+}
+
+// Handle is the handler for PresenceUpdate events.
+func (eh presenceUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*PresenceUpdate); ok {
+ eh(s, t)
+ }
+}
+
+// presencesReplaceEventHandler is an event handler for PresencesReplace events.
+type presencesReplaceEventHandler func(*Session, *PresencesReplace)
+
+// Type returns the event type for PresencesReplace events.
+func (eh presencesReplaceEventHandler) Type() string {
+ return presencesReplaceEventType
+}
+
+// New returns a new instance of PresencesReplace.
+func (eh presencesReplaceEventHandler) New() interface{} {
+ return &PresencesReplace{}
+}
+
+// Handle is the handler for PresencesReplace events.
+func (eh presencesReplaceEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*PresencesReplace); ok {
+ eh(s, t)
+ }
+}
+
+// rateLimitEventHandler is an event handler for RateLimit events.
+type rateLimitEventHandler func(*Session, *RateLimit)
+
+// Type returns the event type for RateLimit events.
+func (eh rateLimitEventHandler) Type() string {
+ return rateLimitEventType
+}
+
+// Handle is the handler for RateLimit events.
+func (eh rateLimitEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*RateLimit); ok {
+ eh(s, t)
+ }
+}
+
+// readyEventHandler is an event handler for Ready events.
+type readyEventHandler func(*Session, *Ready)
+
+// Type returns the event type for Ready events.
+func (eh readyEventHandler) Type() string {
+ return readyEventType
+}
+
+// New returns a new instance of Ready.
+func (eh readyEventHandler) New() interface{} {
+ return &Ready{}
+}
+
+// Handle is the handler for Ready events.
+func (eh readyEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*Ready); ok {
+ eh(s, t)
+ }
+}
+
+// relationshipAddEventHandler is an event handler for RelationshipAdd events.
+type relationshipAddEventHandler func(*Session, *RelationshipAdd)
+
+// Type returns the event type for RelationshipAdd events.
+func (eh relationshipAddEventHandler) Type() string {
+ return relationshipAddEventType
+}
+
+// New returns a new instance of RelationshipAdd.
+func (eh relationshipAddEventHandler) New() interface{} {
+ return &RelationshipAdd{}
+}
+
+// Handle is the handler for RelationshipAdd events.
+func (eh relationshipAddEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*RelationshipAdd); ok {
+ eh(s, t)
+ }
+}
+
+// relationshipRemoveEventHandler is an event handler for RelationshipRemove events.
+type relationshipRemoveEventHandler func(*Session, *RelationshipRemove)
+
+// Type returns the event type for RelationshipRemove events.
+func (eh relationshipRemoveEventHandler) Type() string {
+ return relationshipRemoveEventType
+}
+
+// New returns a new instance of RelationshipRemove.
+func (eh relationshipRemoveEventHandler) New() interface{} {
+ return &RelationshipRemove{}
+}
+
+// Handle is the handler for RelationshipRemove events.
+func (eh relationshipRemoveEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*RelationshipRemove); ok {
+ eh(s, t)
+ }
+}
+
+// resumedEventHandler is an event handler for Resumed events.
+type resumedEventHandler func(*Session, *Resumed)
+
+// Type returns the event type for Resumed events.
+func (eh resumedEventHandler) Type() string {
+ return resumedEventType
+}
+
+// New returns a new instance of Resumed.
+func (eh resumedEventHandler) New() interface{} {
+ return &Resumed{}
+}
+
+// Handle is the handler for Resumed events.
+func (eh resumedEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*Resumed); ok {
+ eh(s, t)
+ }
+}
+
+// typingStartEventHandler is an event handler for TypingStart events.
+type typingStartEventHandler func(*Session, *TypingStart)
+
+// Type returns the event type for TypingStart events.
+func (eh typingStartEventHandler) Type() string {
+ return typingStartEventType
+}
+
+// New returns a new instance of TypingStart.
+func (eh typingStartEventHandler) New() interface{} {
+ return &TypingStart{}
+}
+
+// Handle is the handler for TypingStart events.
+func (eh typingStartEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*TypingStart); ok {
+ eh(s, t)
+ }
+}
+
+// userGuildSettingsUpdateEventHandler is an event handler for UserGuildSettingsUpdate events.
+type userGuildSettingsUpdateEventHandler func(*Session, *UserGuildSettingsUpdate)
+
+// Type returns the event type for UserGuildSettingsUpdate events.
+func (eh userGuildSettingsUpdateEventHandler) Type() string {
+ return userGuildSettingsUpdateEventType
+}
+
+// New returns a new instance of UserGuildSettingsUpdate.
+func (eh userGuildSettingsUpdateEventHandler) New() interface{} {
+ return &UserGuildSettingsUpdate{}
+}
+
+// Handle is the handler for UserGuildSettingsUpdate events.
+func (eh userGuildSettingsUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*UserGuildSettingsUpdate); ok {
+ eh(s, t)
+ }
+}
+
+// userNoteUpdateEventHandler is an event handler for UserNoteUpdate events.
+type userNoteUpdateEventHandler func(*Session, *UserNoteUpdate)
+
+// Type returns the event type for UserNoteUpdate events.
+func (eh userNoteUpdateEventHandler) Type() string {
+ return userNoteUpdateEventType
+}
+
+// New returns a new instance of UserNoteUpdate.
+func (eh userNoteUpdateEventHandler) New() interface{} {
+ return &UserNoteUpdate{}
+}
+
+// Handle is the handler for UserNoteUpdate events.
+func (eh userNoteUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*UserNoteUpdate); ok {
+ eh(s, t)
+ }
+}
+
+// userSettingsUpdateEventHandler is an event handler for UserSettingsUpdate events.
+type userSettingsUpdateEventHandler func(*Session, *UserSettingsUpdate)
+
+// Type returns the event type for UserSettingsUpdate events.
+func (eh userSettingsUpdateEventHandler) Type() string {
+ return userSettingsUpdateEventType
+}
+
+// New returns a new instance of UserSettingsUpdate.
+func (eh userSettingsUpdateEventHandler) New() interface{} {
+ return &UserSettingsUpdate{}
+}
+
+// Handle is the handler for UserSettingsUpdate events.
+func (eh userSettingsUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*UserSettingsUpdate); ok {
+ eh(s, t)
+ }
+}
+
+// userUpdateEventHandler is an event handler for UserUpdate events.
+type userUpdateEventHandler func(*Session, *UserUpdate)
+
+// Type returns the event type for UserUpdate events.
+func (eh userUpdateEventHandler) Type() string {
+ return userUpdateEventType
+}
+
+// New returns a new instance of UserUpdate.
+func (eh userUpdateEventHandler) New() interface{} {
+ return &UserUpdate{}
+}
+
+// Handle is the handler for UserUpdate events.
+func (eh userUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*UserUpdate); ok {
+ eh(s, t)
+ }
+}
+
+// voiceServerUpdateEventHandler is an event handler for VoiceServerUpdate events.
+type voiceServerUpdateEventHandler func(*Session, *VoiceServerUpdate)
+
+// Type returns the event type for VoiceServerUpdate events.
+func (eh voiceServerUpdateEventHandler) Type() string {
+ return voiceServerUpdateEventType
+}
+
+// New returns a new instance of VoiceServerUpdate.
+func (eh voiceServerUpdateEventHandler) New() interface{} {
+ return &VoiceServerUpdate{}
+}
+
+// Handle is the handler for VoiceServerUpdate events.
+func (eh voiceServerUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*VoiceServerUpdate); ok {
+ eh(s, t)
+ }
+}
+
+// voiceStateUpdateEventHandler is an event handler for VoiceStateUpdate events.
+type voiceStateUpdateEventHandler func(*Session, *VoiceStateUpdate)
+
+// Type returns the event type for VoiceStateUpdate events.
+func (eh voiceStateUpdateEventHandler) Type() string {
+ return voiceStateUpdateEventType
+}
+
+// New returns a new instance of VoiceStateUpdate.
+func (eh voiceStateUpdateEventHandler) New() interface{} {
+ return &VoiceStateUpdate{}
+}
+
+// Handle is the handler for VoiceStateUpdate events.
+func (eh voiceStateUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*VoiceStateUpdate); ok {
+ eh(s, t)
+ }
+}
+
+// webhooksUpdateEventHandler is an event handler for WebhooksUpdate events.
+type webhooksUpdateEventHandler func(*Session, *WebhooksUpdate)
+
+// Type returns the event type for WebhooksUpdate events.
+func (eh webhooksUpdateEventHandler) Type() string {
+ return webhooksUpdateEventType
+}
+
+// New returns a new instance of WebhooksUpdate.
+func (eh webhooksUpdateEventHandler) New() interface{} {
+ return &WebhooksUpdate{}
+}
+
+// Handle is the handler for WebhooksUpdate events.
+func (eh webhooksUpdateEventHandler) Handle(s *Session, i interface{}) {
+ if t, ok := i.(*WebhooksUpdate); ok {
+ eh(s, t)
+ }
+}
+
+func handlerForInterface(handler interface{}) EventHandler {
+ switch v := handler.(type) {
+ case func(*Session, interface{}):
+ return interfaceEventHandler(v)
+ case func(*Session, *ChannelCreate):
+ return channelCreateEventHandler(v)
+ case func(*Session, *ChannelDelete):
+ return channelDeleteEventHandler(v)
+ case func(*Session, *ChannelPinsUpdate):
+ return channelPinsUpdateEventHandler(v)
+ case func(*Session, *ChannelUpdate):
+ return channelUpdateEventHandler(v)
+ case func(*Session, *Connect):
+ return connectEventHandler(v)
+ case func(*Session, *Disconnect):
+ return disconnectEventHandler(v)
+ case func(*Session, *Event):
+ return eventEventHandler(v)
+ case func(*Session, *GuildBanAdd):
+ return guildBanAddEventHandler(v)
+ case func(*Session, *GuildBanRemove):
+ return guildBanRemoveEventHandler(v)
+ case func(*Session, *GuildCreate):
+ return guildCreateEventHandler(v)
+ case func(*Session, *GuildDelete):
+ return guildDeleteEventHandler(v)
+ case func(*Session, *GuildEmojisUpdate):
+ return guildEmojisUpdateEventHandler(v)
+ case func(*Session, *GuildIntegrationsUpdate):
+ return guildIntegrationsUpdateEventHandler(v)
+ case func(*Session, *GuildMemberAdd):
+ return guildMemberAddEventHandler(v)
+ case func(*Session, *GuildMemberRemove):
+ return guildMemberRemoveEventHandler(v)
+ case func(*Session, *GuildMemberUpdate):
+ return guildMemberUpdateEventHandler(v)
+ case func(*Session, *GuildMembersChunk):
+ return guildMembersChunkEventHandler(v)
+ case func(*Session, *GuildRoleCreate):
+ return guildRoleCreateEventHandler(v)
+ case func(*Session, *GuildRoleDelete):
+ return guildRoleDeleteEventHandler(v)
+ case func(*Session, *GuildRoleUpdate):
+ return guildRoleUpdateEventHandler(v)
+ case func(*Session, *GuildUpdate):
+ return guildUpdateEventHandler(v)
+ case func(*Session, *MessageAck):
+ return messageAckEventHandler(v)
+ case func(*Session, *MessageCreate):
+ return messageCreateEventHandler(v)
+ case func(*Session, *MessageDelete):
+ return messageDeleteEventHandler(v)
+ case func(*Session, *MessageDeleteBulk):
+ return messageDeleteBulkEventHandler(v)
+ case func(*Session, *MessageReactionAdd):
+ return messageReactionAddEventHandler(v)
+ case func(*Session, *MessageReactionRemove):
+ return messageReactionRemoveEventHandler(v)
+ case func(*Session, *MessageReactionRemoveAll):
+ return messageReactionRemoveAllEventHandler(v)
+ case func(*Session, *MessageUpdate):
+ return messageUpdateEventHandler(v)
+ case func(*Session, *PresenceUpdate):
+ return presenceUpdateEventHandler(v)
+ case func(*Session, *PresencesReplace):
+ return presencesReplaceEventHandler(v)
+ case func(*Session, *RateLimit):
+ return rateLimitEventHandler(v)
+ case func(*Session, *Ready):
+ return readyEventHandler(v)
+ case func(*Session, *RelationshipAdd):
+ return relationshipAddEventHandler(v)
+ case func(*Session, *RelationshipRemove):
+ return relationshipRemoveEventHandler(v)
+ case func(*Session, *Resumed):
+ return resumedEventHandler(v)
+ case func(*Session, *TypingStart):
+ return typingStartEventHandler(v)
+ case func(*Session, *UserGuildSettingsUpdate):
+ return userGuildSettingsUpdateEventHandler(v)
+ case func(*Session, *UserNoteUpdate):
+ return userNoteUpdateEventHandler(v)
+ case func(*Session, *UserSettingsUpdate):
+ return userSettingsUpdateEventHandler(v)
+ case func(*Session, *UserUpdate):
+ return userUpdateEventHandler(v)
+ case func(*Session, *VoiceServerUpdate):
+ return voiceServerUpdateEventHandler(v)
+ case func(*Session, *VoiceStateUpdate):
+ return voiceStateUpdateEventHandler(v)
+ case func(*Session, *WebhooksUpdate):
+ return webhooksUpdateEventHandler(v)
+ }
+
+ return nil
+}
+
+func init() {
+ registerInterfaceProvider(channelCreateEventHandler(nil))
+ registerInterfaceProvider(channelDeleteEventHandler(nil))
+ registerInterfaceProvider(channelPinsUpdateEventHandler(nil))
+ registerInterfaceProvider(channelUpdateEventHandler(nil))
+ registerInterfaceProvider(guildBanAddEventHandler(nil))
+ registerInterfaceProvider(guildBanRemoveEventHandler(nil))
+ registerInterfaceProvider(guildCreateEventHandler(nil))
+ registerInterfaceProvider(guildDeleteEventHandler(nil))
+ registerInterfaceProvider(guildEmojisUpdateEventHandler(nil))
+ registerInterfaceProvider(guildIntegrationsUpdateEventHandler(nil))
+ registerInterfaceProvider(guildMemberAddEventHandler(nil))
+ registerInterfaceProvider(guildMemberRemoveEventHandler(nil))
+ registerInterfaceProvider(guildMemberUpdateEventHandler(nil))
+ registerInterfaceProvider(guildMembersChunkEventHandler(nil))
+ registerInterfaceProvider(guildRoleCreateEventHandler(nil))
+ registerInterfaceProvider(guildRoleDeleteEventHandler(nil))
+ registerInterfaceProvider(guildRoleUpdateEventHandler(nil))
+ registerInterfaceProvider(guildUpdateEventHandler(nil))
+ registerInterfaceProvider(messageAckEventHandler(nil))
+ registerInterfaceProvider(messageCreateEventHandler(nil))
+ registerInterfaceProvider(messageDeleteEventHandler(nil))
+ registerInterfaceProvider(messageDeleteBulkEventHandler(nil))
+ registerInterfaceProvider(messageReactionAddEventHandler(nil))
+ registerInterfaceProvider(messageReactionRemoveEventHandler(nil))
+ registerInterfaceProvider(messageReactionRemoveAllEventHandler(nil))
+ registerInterfaceProvider(messageUpdateEventHandler(nil))
+ registerInterfaceProvider(presenceUpdateEventHandler(nil))
+ registerInterfaceProvider(presencesReplaceEventHandler(nil))
+ registerInterfaceProvider(readyEventHandler(nil))
+ registerInterfaceProvider(relationshipAddEventHandler(nil))
+ registerInterfaceProvider(relationshipRemoveEventHandler(nil))
+ registerInterfaceProvider(resumedEventHandler(nil))
+ registerInterfaceProvider(typingStartEventHandler(nil))
+ registerInterfaceProvider(userGuildSettingsUpdateEventHandler(nil))
+ registerInterfaceProvider(userNoteUpdateEventHandler(nil))
+ registerInterfaceProvider(userSettingsUpdateEventHandler(nil))
+ registerInterfaceProvider(userUpdateEventHandler(nil))
+ registerInterfaceProvider(voiceServerUpdateEventHandler(nil))
+ registerInterfaceProvider(voiceStateUpdateEventHandler(nil))
+ registerInterfaceProvider(webhooksUpdateEventHandler(nil))
+}
diff --git a/vendor/github.com/matterbridge/discordgo/events.go b/vendor/github.com/matterbridge/discordgo/events.go
new file mode 100644
index 00000000..c416813c
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/events.go
@@ -0,0 +1,264 @@
+package discordgo
+
+import (
+ "encoding/json"
+)
+
+// This file contains all the possible structs that can be
+// handled by AddHandler/EventHandler.
+// DO NOT ADD ANYTHING BUT EVENT HANDLER STRUCTS TO THIS FILE.
+//go:generate go run tools/cmd/eventhandlers/main.go
+
+// Connect is the data for a Connect event.
+// This is a synthetic event and is not dispatched by Discord.
+type Connect struct{}
+
+// Disconnect is the data for a Disconnect event.
+// This is a synthetic event and is not dispatched by Discord.
+type Disconnect struct{}
+
+// RateLimit is the data for a RateLimit event.
+// This is a synthetic event and is not dispatched by Discord.
+type RateLimit struct {
+ *TooManyRequests
+ URL string
+}
+
+// Event provides a basic initial struct for all websocket events.
+type Event struct {
+ Operation int `json:"op"`
+ Sequence int64 `json:"s"`
+ Type string `json:"t"`
+ RawData json.RawMessage `json:"d"`
+ // Struct contains one of the other types in this file.
+ Struct interface{} `json:"-"`
+}
+
+// A Ready stores all data for the websocket READY event.
+type Ready struct {
+ Version int `json:"v"`
+ SessionID string `json:"session_id"`
+ User *User `json:"user"`
+ ReadState []*ReadState `json:"read_state"`
+ PrivateChannels []*Channel `json:"private_channels"`
+ Guilds []*Guild `json:"guilds"`
+
+ // Undocumented fields
+ Settings *Settings `json:"user_settings"`
+ UserGuildSettings []*UserGuildSettings `json:"user_guild_settings"`
+ Relationships []*Relationship `json:"relationships"`
+ Presences []*Presence `json:"presences"`
+ Notes map[string]string `json:"notes"`
+}
+
+// ChannelCreate is the data for a ChannelCreate event.
+type ChannelCreate struct {
+ *Channel
+}
+
+// ChannelUpdate is the data for a ChannelUpdate event.
+type ChannelUpdate struct {
+ *Channel
+}
+
+// ChannelDelete is the data for a ChannelDelete event.
+type ChannelDelete struct {
+ *Channel
+}
+
+// ChannelPinsUpdate stores data for a ChannelPinsUpdate event.
+type ChannelPinsUpdate struct {
+ LastPinTimestamp string `json:"last_pin_timestamp"`
+ ChannelID string `json:"channel_id"`
+ GuildID string `json:"guild_id,omitempty"`
+}
+
+// GuildCreate is the data for a GuildCreate event.
+type GuildCreate struct {
+ *Guild
+}
+
+// GuildUpdate is the data for a GuildUpdate event.
+type GuildUpdate struct {
+ *Guild
+}
+
+// GuildDelete is the data for a GuildDelete event.
+type GuildDelete struct {
+ *Guild
+}
+
+// GuildBanAdd is the data for a GuildBanAdd event.
+type GuildBanAdd struct {
+ User *User `json:"user"`
+ GuildID string `json:"guild_id"`
+}
+
+// GuildBanRemove is the data for a GuildBanRemove event.
+type GuildBanRemove struct {
+ User *User `json:"user"`
+ GuildID string `json:"guild_id"`
+}
+
+// GuildMemberAdd is the data for a GuildMemberAdd event.
+type GuildMemberAdd struct {
+ *Member
+}
+
+// GuildMemberUpdate is the data for a GuildMemberUpdate event.
+type GuildMemberUpdate struct {
+ *Member
+}
+
+// GuildMemberRemove is the data for a GuildMemberRemove event.
+type GuildMemberRemove struct {
+ *Member
+}
+
+// GuildRoleCreate is the data for a GuildRoleCreate event.
+type GuildRoleCreate struct {
+ *GuildRole
+}
+
+// GuildRoleUpdate is the data for a GuildRoleUpdate event.
+type GuildRoleUpdate struct {
+ *GuildRole
+}
+
+// A GuildRoleDelete is the data for a GuildRoleDelete event.
+type GuildRoleDelete struct {
+ RoleID string `json:"role_id"`
+ GuildID string `json:"guild_id"`
+}
+
+// A GuildEmojisUpdate is the data for a guild emoji update event.
+type GuildEmojisUpdate struct {
+ GuildID string `json:"guild_id"`
+ Emojis []*Emoji `json:"emojis"`
+}
+
+// A GuildMembersChunk is the data for a GuildMembersChunk event.
+type GuildMembersChunk struct {
+ GuildID string `json:"guild_id"`
+ Members []*Member `json:"members"`
+}
+
+// GuildIntegrationsUpdate is the data for a GuildIntegrationsUpdate event.
+type GuildIntegrationsUpdate struct {
+ GuildID string `json:"guild_id"`
+}
+
+// MessageAck is the data for a MessageAck event.
+type MessageAck struct {
+ MessageID string `json:"message_id"`
+ ChannelID string `json:"channel_id"`
+}
+
+// MessageCreate is the data for a MessageCreate event.
+type MessageCreate struct {
+ *Message
+}
+
+// MessageUpdate is the data for a MessageUpdate event.
+type MessageUpdate struct {
+ *Message
+ // BeforeUpdate will be nil if the Message was not previously cached in the state cache.
+ BeforeUpdate *Message `json:"-"`
+}
+
+// MessageDelete is the data for a MessageDelete event.
+type MessageDelete struct {
+ *Message
+}
+
+// MessageReactionAdd is the data for a MessageReactionAdd event.
+type MessageReactionAdd struct {
+ *MessageReaction
+}
+
+// MessageReactionRemove is the data for a MessageReactionRemove event.
+type MessageReactionRemove struct {
+ *MessageReaction
+}
+
+// MessageReactionRemoveAll is the data for a MessageReactionRemoveAll event.
+type MessageReactionRemoveAll struct {
+ *MessageReaction
+}
+
+// PresencesReplace is the data for a PresencesReplace event.
+type PresencesReplace []*Presence
+
+// PresenceUpdate is the data for a PresenceUpdate event.
+type PresenceUpdate struct {
+ Presence
+ GuildID string `json:"guild_id"`
+ Roles []string `json:"roles"`
+}
+
+// Resumed is the data for a Resumed event.
+type Resumed struct {
+ Trace []string `json:"_trace"`
+}
+
+// RelationshipAdd is the data for a RelationshipAdd event.
+type RelationshipAdd struct {
+ *Relationship
+}
+
+// RelationshipRemove is the data for a RelationshipRemove event.
+type RelationshipRemove struct {
+ *Relationship
+}
+
+// TypingStart is the data for a TypingStart event.
+type TypingStart struct {
+ UserID string `json:"user_id"`
+ ChannelID string `json:"channel_id"`
+ GuildID string `json:"guild_id,omitempty"`
+ Timestamp int `json:"timestamp"`
+}
+
+// UserUpdate is the data for a UserUpdate event.
+type UserUpdate struct {
+ *User
+}
+
+// UserSettingsUpdate is the data for a UserSettingsUpdate event.
+type UserSettingsUpdate map[string]interface{}
+
+// UserGuildSettingsUpdate is the data for a UserGuildSettingsUpdate event.
+type UserGuildSettingsUpdate struct {
+ *UserGuildSettings
+}
+
+// UserNoteUpdate is the data for a UserNoteUpdate event.
+type UserNoteUpdate struct {
+ ID string `json:"id"`
+ Note string `json:"note"`
+}
+
+// VoiceServerUpdate is the data for a VoiceServerUpdate event.
+type VoiceServerUpdate struct {
+ Token string `json:"token"`
+ GuildID string `json:"guild_id"`
+ Endpoint string `json:"endpoint"`
+}
+
+// VoiceStateUpdate is the data for a VoiceStateUpdate event.
+type VoiceStateUpdate struct {
+ *VoiceState
+}
+
+// MessageDeleteBulk is the data for a MessageDeleteBulk event
+type MessageDeleteBulk struct {
+ Messages []string `json:"ids"`
+ ChannelID string `json:"channel_id"`
+ GuildID string `json:"guild_id"`
+}
+
+// WebhooksUpdate is the data for a WebhooksUpdate event
+type WebhooksUpdate struct {
+ GuildID string `json:"guild_id"`
+ ChannelID string `json:"channel_id"`
+}
diff --git a/vendor/github.com/matterbridge/discordgo/go.mod b/vendor/github.com/matterbridge/discordgo/go.mod
new file mode 100644
index 00000000..484bd32d
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/go.mod
@@ -0,0 +1,6 @@
+module github.com/matterbridge/discordgo
+
+require (
+ github.com/gorilla/websocket v1.4.0
+ golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16
+)
diff --git a/vendor/github.com/matterbridge/discordgo/go.sum b/vendor/github.com/matterbridge/discordgo/go.sum
new file mode 100644
index 00000000..a86b0501
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/go.sum
@@ -0,0 +1,4 @@
+github.com/gorilla/websocket v1.4.0 h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q=
+github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
+golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16 h1:y6ce7gCWtnH+m3dCjzQ1PCuwl28DDIc3VNnvY29DlIA=
+golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
diff --git a/vendor/github.com/matterbridge/discordgo/logging.go b/vendor/github.com/matterbridge/discordgo/logging.go
new file mode 100644
index 00000000..6460b35b
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/logging.go
@@ -0,0 +1,103 @@
+// Discordgo - Discord bindings for Go
+// Available at https://github.com/bwmarrin/discordgo
+
+// Copyright 2015-2016 Bruce Marriner <bruce@sqls.net>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file contains code related to discordgo package logging
+
+package discordgo
+
+import (
+ "fmt"
+ "log"
+ "runtime"
+ "strings"
+)
+
+const (
+
+ // LogError level is used for critical errors that could lead to data loss
+ // or panic that would not be returned to a calling function.
+ LogError int = iota
+
+ // LogWarning level is used for very abnormal events and errors that are
+ // also returned to a calling function.
+ LogWarning
+
+ // LogInformational level is used for normal non-error activity
+ LogInformational
+
+ // LogDebug level is for very detailed non-error activity. This is
+ // very spammy and will impact performance.
+ LogDebug
+)
+
+// Logger can be used to replace the standard logging for discordgo
+var Logger func(msgL, caller int, format string, a ...interface{})
+
+// msglog provides package wide logging consistancy for discordgo
+// the format, a... portion this command follows that of fmt.Printf
+// msgL : LogLevel of the message
+// caller : 1 + the number of callers away from the message source
+// format : Printf style message format
+// a ... : comma separated list of values to pass
+func msglog(msgL, caller int, format string, a ...interface{}) {
+
+ if Logger != nil {
+ Logger(msgL, caller, format, a...)
+ } else {
+
+ pc, file, line, _ := runtime.Caller(caller)
+
+ files := strings.Split(file, "/")
+ file = files[len(files)-1]
+
+ name := runtime.FuncForPC(pc).Name()
+ fns := strings.Split(name, ".")
+ name = fns[len(fns)-1]
+
+ msg := fmt.Sprintf(format, a...)
+
+ log.Printf("[DG%d] %s:%d:%s() %s\n", msgL, file, line, name, msg)
+ }
+}
+
+// helper function that wraps msglog for the Session struct
+// This adds a check to insure the message is only logged
+// if the session log level is equal or higher than the
+// message log level
+func (s *Session) log(msgL int, format string, a ...interface{}) {
+
+ if msgL > s.LogLevel {
+ return
+ }
+
+ msglog(msgL, 2, format, a...)
+}
+
+// helper function that wraps msglog for the VoiceConnection struct
+// This adds a check to insure the message is only logged
+// if the voice connection log level is equal or higher than the
+// message log level
+func (v *VoiceConnection) log(msgL int, format string, a ...interface{}) {
+
+ if msgL > v.LogLevel {
+ return
+ }
+
+ msglog(msgL, 2, format, a...)
+}
+
+// printJSON is a helper function to display JSON data in a easy to read format.
+/* NOT USED ATM
+func printJSON(body []byte) {
+ var prettyJSON bytes.Buffer
+ error := json.Indent(&prettyJSON, body, "", "\t")
+ if error != nil {
+ log.Print("JSON parse error: ", error)
+ }
+ log.Println(string(prettyJSON.Bytes()))
+}
+*/
diff --git a/vendor/github.com/matterbridge/discordgo/message.go b/vendor/github.com/matterbridge/discordgo/message.go
new file mode 100644
index 00000000..cc874295
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/message.go
@@ -0,0 +1,370 @@
+// Discordgo - Discord bindings for Go
+// Available at https://github.com/bwmarrin/discordgo
+
+// Copyright 2015-2016 Bruce Marriner <bruce@sqls.net>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file contains code related to the Message struct
+
+package discordgo
+
+import (
+ "io"
+ "regexp"
+ "strings"
+)
+
+// MessageType is the type of Message
+type MessageType int
+
+// Block contains the valid known MessageType values
+const (
+ MessageTypeDefault MessageType = iota
+ MessageTypeRecipientAdd
+ MessageTypeRecipientRemove
+ MessageTypeCall
+ MessageTypeChannelNameChange
+ MessageTypeChannelIconChange
+ MessageTypeChannelPinnedMessage
+ MessageTypeGuildMemberJoin
+ MessageTypeUserPremiumGuildSubscription
+ MessageTypeUserPremiumGuildSubscriptionTierOne
+ MessageTypeUserPremiumGuildSubscriptionTierTwo
+ MessageTypeUserPremiumGuildSubscriptionTierThree
+ MessageTypeChannelFollowAdd
+)
+
+// A Message stores all data related to a specific Discord message.
+type Message struct {
+ // The ID of the message.
+ ID string `json:"id"`
+
+ // The ID of the channel in which the message was sent.
+ ChannelID string `json:"channel_id"`
+
+ // The ID of the guild in which the message was sent.
+ GuildID string `json:"guild_id,omitempty"`
+
+ // The content of the message.
+ Content string `json:"content"`
+
+ // The time at which the messsage was sent.
+ // CAUTION: this field may be removed in a
+ // future API version; it is safer to calculate
+ // the creation time via the ID.
+ Timestamp Timestamp `json:"timestamp"`
+
+ // The time at which the last edit of the message
+ // occurred, if it has been edited.
+ EditedTimestamp Timestamp `json:"edited_timestamp"`
+
+ // The roles mentioned in the message.
+ MentionRoles []string `json:"mention_roles"`
+
+ // Whether the message is text-to-speech.
+ Tts bool `json:"tts"`
+
+ // Whether the message mentions everyone.
+ MentionEveryone bool `json:"mention_everyone"`
+
+ // The author of the message. This is not guaranteed to be a
+ // valid user (webhook-sent messages do not possess a full author).
+ Author *User `json:"author"`
+
+ // A list of attachments present in the message.
+ Attachments []*MessageAttachment `json:"attachments"`
+
+ // A list of embeds present in the message. Multiple
+ // embeds can currently only be sent by webhooks.
+ Embeds []*MessageEmbed `json:"embeds"`
+
+ // A list of users mentioned in the message.
+ Mentions []*User `json:"mentions"`
+
+ // A list of reactions to the message.
+ Reactions []*MessageReactions `json:"reactions"`
+
+ // Whether the message is pinned or not.
+ Pinned bool `json:"pinned"`
+
+ // The type of the message.
+ Type MessageType `json:"type"`
+
+ // The webhook ID of the message, if it was generated by a webhook
+ WebhookID string `json:"webhook_id"`
+
+ // Member properties for this message's author,
+ // contains only partial information
+ Member *Member `json:"member"`
+
+ // Channels specifically mentioned in this message
+ // Not all channel mentions in a message will appear in mention_channels.
+ // Only textual channels that are visible to everyone in a lurkable guild will ever be included.
+ // Only crossposted messages (via Channel Following) currently include mention_channels at all.
+ // If no mentions in the message meet these requirements, this field will not be sent.
+ MentionChannels []*Channel `json:"mention_channels"`
+
+ // Is sent with Rich Presence-related chat embeds
+ Activity *MessageActivity `json:"activity"`
+
+ // Is sent with Rich Presence-related chat embeds
+ Application *MessageApplication `json:"application"`
+
+ // MessageReference contains reference data sent with crossposted messages
+ MessageReference *MessageReference `json:"message_reference"`
+
+ // The flags of the message, which describe extra features of a message.
+ // This is a combination of bit masks; the presence of a certain permission can
+ // be checked by performing a bitwise AND between this int and the flag.
+ Flags int `json:"flags"`
+}
+
+// File stores info about files you e.g. send in messages.
+type File struct {
+ Name string
+ ContentType string
+ Reader io.Reader
+}
+
+// MessageSend stores all parameters you can send with ChannelMessageSendComplex.
+type MessageSend struct {
+ Content string `json:"content,omitempty"`
+ Embed *MessageEmbed `json:"embed,omitempty"`
+ Tts bool `json:"tts"`
+ Files []*File `json:"-"`
+
+ // TODO: Remove this when compatibility is not required.
+ File *File `json:"-"`
+}
+
+// MessageEdit is used to chain parameters via ChannelMessageEditComplex, which
+// is also where you should get the instance from.
+type MessageEdit struct {
+ Content *string `json:"content,omitempty"`
+ Embed *MessageEmbed `json:"embed,omitempty"`
+
+ ID string
+ Channel string
+}
+
+// NewMessageEdit returns a MessageEdit struct, initialized
+// with the Channel and ID.
+func NewMessageEdit(channelID string, messageID string) *MessageEdit {
+ return &MessageEdit{
+ Channel: channelID,
+ ID: messageID,
+ }
+}
+
+// SetContent is the same as setting the variable Content,
+// except it doesn't take a pointer.
+func (m *MessageEdit) SetContent(str string) *MessageEdit {
+ m.Content = &str
+ return m
+}
+
+// SetEmbed is a convenience function for setting the embed,
+// so you can chain commands.
+func (m *MessageEdit) SetEmbed(embed *MessageEmbed) *MessageEdit {
+ m.Embed = embed
+ return m
+}
+
+// A MessageAttachment stores data for message attachments.
+type MessageAttachment struct {
+ ID string `json:"id"`
+ URL string `json:"url"`
+ ProxyURL string `json:"proxy_url"`
+ Filename string `json:"filename"`
+ Width int `json:"width"`
+ Height int `json:"height"`
+ Size int `json:"size"`
+}
+
+// MessageEmbedFooter is a part of a MessageEmbed struct.
+type MessageEmbedFooter struct {
+ Text string `json:"text,omitempty"`
+ IconURL string `json:"icon_url,omitempty"`
+ ProxyIconURL string `json:"proxy_icon_url,omitempty"`
+}
+
+// MessageEmbedImage is a part of a MessageEmbed struct.
+type MessageEmbedImage struct {
+ URL string `json:"url,omitempty"`
+ ProxyURL string `json:"proxy_url,omitempty"`
+ Width int `json:"width,omitempty"`
+ Height int `json:"height,omitempty"`
+}
+
+// MessageEmbedThumbnail is a part of a MessageEmbed struct.
+type MessageEmbedThumbnail struct {
+ URL string `json:"url,omitempty"`
+ ProxyURL string `json:"proxy_url,omitempty"`
+ Width int `json:"width,omitempty"`
+ Height int `json:"height,omitempty"`
+}
+
+// MessageEmbedVideo is a part of a MessageEmbed struct.
+type MessageEmbedVideo struct {
+ URL string `json:"url,omitempty"`
+ ProxyURL string `json:"proxy_url,omitempty"`
+ Width int `json:"width,omitempty"`
+ Height int `json:"height,omitempty"`
+}
+
+// MessageEmbedProvider is a part of a MessageEmbed struct.
+type MessageEmbedProvider struct {
+ URL string `json:"url,omitempty"`
+ Name string `json:"name,omitempty"`
+}
+
+// MessageEmbedAuthor is a part of a MessageEmbed struct.
+type MessageEmbedAuthor struct {
+ URL string `json:"url,omitempty"`
+ Name string `json:"name,omitempty"`
+ IconURL string `json:"icon_url,omitempty"`
+ ProxyIconURL string `json:"proxy_icon_url,omitempty"`
+}
+
+// MessageEmbedField is a part of a MessageEmbed struct.
+type MessageEmbedField struct {
+ Name string `json:"name,omitempty"`
+ Value string `json:"value,omitempty"`
+ Inline bool `json:"inline,omitempty"`
+}
+
+// An MessageEmbed stores data for message embeds.
+type MessageEmbed struct {
+ URL string `json:"url,omitempty"`
+ Type string `json:"type,omitempty"`
+ Title string `json:"title,omitempty"`
+ Description string `json:"description,omitempty"`
+ Timestamp string `json:"timestamp,omitempty"`
+ Color int `json:"color,omitempty"`
+ Footer *MessageEmbedFooter `json:"footer,omitempty"`
+ Image *MessageEmbedImage `json:"image,omitempty"`
+ Thumbnail *MessageEmbedThumbnail `json:"thumbnail,omitempty"`
+ Video *MessageEmbedVideo `json:"video,omitempty"`
+ Provider *MessageEmbedProvider `json:"provider,omitempty"`
+ Author *MessageEmbedAuthor `json:"author,omitempty"`
+ Fields []*MessageEmbedField `json:"fields,omitempty"`
+}
+
+// MessageReactions holds a reactions object for a message.
+type MessageReactions struct {
+ Count int `json:"count"`
+ Me bool `json:"me"`
+ Emoji *Emoji `json:"emoji"`
+}
+
+// MessageActivity is sent with Rich Presence-related chat embeds
+type MessageActivity struct {
+ Type MessageActivityType `json:"type"`
+ PartyID string `json:"party_id"`
+}
+
+// MessageActivityType is the type of message activity
+type MessageActivityType int
+
+// Constants for the different types of Message Activity
+const (
+ MessageActivityTypeJoin = iota + 1
+ MessageActivityTypeSpectate
+ MessageActivityTypeListen
+ MessageActivityTypeJoinRequest
+)
+
+// MessageFlag describes an extra feature of the message
+type MessageFlag int
+
+// Constants for the different bit offsets of Message Flags
+const (
+ // This message has been published to subscribed channels (via Channel Following)
+ MessageFlagCrossposted = 1 << iota
+ // This message originated from a message in another channel (via Channel Following)
+ MessageFlagIsCrosspost
+ // Do not include any embeds when serializing this message
+ MessageFlagSuppressEmbeds
+)
+
+// MessageApplication is sent with Rich Presence-related chat embeds
+type MessageApplication struct {
+ ID string `json:"id"`
+ CoverImage string `json:"cover_image"`
+ Description string `json:"description"`
+ Icon string `json:"icon"`
+ Name string `json:"name"`
+}
+
+// MessageReference contains reference data sent with crossposted messages
+type MessageReference struct {
+ MessageID string `json:"message_id"`
+ ChannelID string `json:"channel_id"`
+ GuildID string `json:"guild_id"`
+}
+
+// ContentWithMentionsReplaced will replace all @<id> mentions with the
+// username of the mention.
+func (m *Message) ContentWithMentionsReplaced() (content string) {
+ content = m.Content
+
+ for _, user := range m.Mentions {
+ content = strings.NewReplacer(
+ "<@"+user.ID+">", "@"+user.Username,
+ "<@!"+user.ID+">", "@"+user.Username,
+ ).Replace(content)
+ }
+ return
+}
+
+var patternChannels = regexp.MustCompile("<#[^>]*>")
+
+// ContentWithMoreMentionsReplaced will replace all @<id> mentions with the
+// username of the mention, but also role IDs and more.
+func (m *Message) ContentWithMoreMentionsReplaced(s *Session) (content string, err error) {
+ content = m.Content
+
+ if !s.StateEnabled {
+ content = m.ContentWithMentionsReplaced()
+ return
+ }
+
+ channel, err := s.State.Channel(m.ChannelID)
+ if err != nil {
+ content = m.ContentWithMentionsReplaced()
+ return
+ }
+
+ for _, user := range m.Mentions {
+ nick := user.Username
+
+ member, err := s.State.Member(channel.GuildID, user.ID)
+ if err == nil && member.Nick != "" {
+ nick = member.Nick
+ }
+
+ content = strings.NewReplacer(
+ "<@"+user.ID+">", "@"+user.Username,
+ "<@!"+user.ID+">", "@"+nick,
+ ).Replace(content)
+ }
+ for _, roleID := range m.MentionRoles {
+ role, err := s.State.Role(channel.GuildID, roleID)
+ if err != nil || !role.Mentionable {
+ continue
+ }
+
+ content = strings.Replace(content, "<@&"+role.ID+">", "@"+role.Name, -1)
+ }
+
+ content = patternChannels.ReplaceAllStringFunc(content, func(mention string) string {
+ channel, err := s.State.Channel(mention[2 : len(mention)-1])
+ if err != nil || channel.Type == ChannelTypeGuildVoice {
+ return mention
+ }
+
+ return "#" + channel.Name
+ })
+ return
+}
diff --git a/vendor/github.com/matterbridge/discordgo/mkdocs.yml b/vendor/github.com/matterbridge/discordgo/mkdocs.yml
new file mode 100644
index 00000000..3ee8eb37
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/mkdocs.yml
@@ -0,0 +1,17 @@
+site_name: DiscordGo
+site_author: Bruce Marriner
+site_url: http://bwmarrin.github.io/discordgo/
+repo_url: https://github.com/bwmarrin/discordgo
+
+dev_addr: 0.0.0.0:8000
+theme: yeti
+
+markdown_extensions:
+ - smarty
+ - toc:
+ permalink: True
+ - sane_lists
+
+pages:
+ - 'Home': 'index.md'
+ - 'Getting Started': 'GettingStarted.md'
diff --git a/vendor/github.com/matterbridge/discordgo/oauth2.go b/vendor/github.com/matterbridge/discordgo/oauth2.go
new file mode 100644
index 00000000..4a52120b
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/oauth2.go
@@ -0,0 +1,145 @@
+// Discordgo - Discord bindings for Go
+// Available at https://github.com/bwmarrin/discordgo
+
+// Copyright 2015-2016 Bruce Marriner <bruce@sqls.net>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file contains functions related to Discord OAuth2 endpoints
+
+package discordgo
+
+// ------------------------------------------------------------------------------------------------
+// Code specific to Discord OAuth2 Applications
+// ------------------------------------------------------------------------------------------------
+
+// An Application struct stores values for a Discord OAuth2 Application
+type Application struct {
+ ID string `json:"id,omitempty"`
+ Name string `json:"name"`
+ Description string `json:"description,omitempty"`
+ Icon string `json:"icon,omitempty"`
+ Secret string `json:"secret,omitempty"`
+ RedirectURIs *[]string `json:"redirect_uris,omitempty"`
+ BotRequireCodeGrant bool `json:"bot_require_code_grant,omitempty"`
+ BotPublic bool `json:"bot_public,omitempty"`
+ RPCApplicationState int `json:"rpc_application_state,omitempty"`
+ Flags int `json:"flags,omitempty"`
+ Owner *User `json:"owner"`
+ Bot *User `json:"bot"`
+}
+
+// Application returns an Application structure of a specific Application
+// appID : The ID of an Application
+func (s *Session) Application(appID string) (st *Application, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointApplication(appID), nil, EndpointApplication(""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// Applications returns all applications for the authenticated user
+func (s *Session) Applications() (st []*Application, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointApplications, nil, EndpointApplications)
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// ApplicationCreate creates a new Application
+// name : Name of Application / Bot
+// uris : Redirect URIs (Not required)
+func (s *Session) ApplicationCreate(ap *Application) (st *Application, err error) {
+
+ data := struct {
+ Name string `json:"name"`
+ Description string `json:"description"`
+ RedirectURIs *[]string `json:"redirect_uris,omitempty"`
+ }{ap.Name, ap.Description, ap.RedirectURIs}
+
+ body, err := s.RequestWithBucketID("POST", EndpointApplications, data, EndpointApplications)
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// ApplicationUpdate updates an existing Application
+// var : desc
+func (s *Session) ApplicationUpdate(appID string, ap *Application) (st *Application, err error) {
+
+ data := struct {
+ Name string `json:"name"`
+ Description string `json:"description"`
+ RedirectURIs *[]string `json:"redirect_uris,omitempty"`
+ }{ap.Name, ap.Description, ap.RedirectURIs}
+
+ body, err := s.RequestWithBucketID("PUT", EndpointApplication(appID), data, EndpointApplication(""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// ApplicationDelete deletes an existing Application
+// appID : The ID of an Application
+func (s *Session) ApplicationDelete(appID string) (err error) {
+
+ _, err = s.RequestWithBucketID("DELETE", EndpointApplication(appID), nil, EndpointApplication(""))
+ if err != nil {
+ return
+ }
+
+ return
+}
+
+// Asset struct stores values for an asset of an application
+type Asset struct {
+ Type int `json:"type"`
+ ID string `json:"id"`
+ Name string `json:"name"`
+}
+
+// ApplicationAssets returns an application's assets
+func (s *Session) ApplicationAssets(appID string) (ass []*Asset, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointApplicationAssets(appID), nil, EndpointApplicationAssets(""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &ass)
+ return
+}
+
+// ------------------------------------------------------------------------------------------------
+// Code specific to Discord OAuth2 Application Bots
+// ------------------------------------------------------------------------------------------------
+
+// ApplicationBotCreate creates an Application Bot Account
+//
+// appID : The ID of an Application
+//
+// NOTE: func name may change, if I can think up something better.
+func (s *Session) ApplicationBotCreate(appID string) (st *User, err error) {
+
+ body, err := s.RequestWithBucketID("POST", EndpointApplicationsBot(appID), nil, EndpointApplicationsBot(""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
diff --git a/vendor/github.com/matterbridge/discordgo/ratelimit.go b/vendor/github.com/matterbridge/discordgo/ratelimit.go
new file mode 100644
index 00000000..dc48c924
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/ratelimit.go
@@ -0,0 +1,194 @@
+package discordgo
+
+import (
+ "net/http"
+ "strconv"
+ "strings"
+ "sync"
+ "sync/atomic"
+ "time"
+)
+
+// customRateLimit holds information for defining a custom rate limit
+type customRateLimit struct {
+ suffix string
+ requests int
+ reset time.Duration
+}
+
+// RateLimiter holds all ratelimit buckets
+type RateLimiter struct {
+ sync.Mutex
+ global *int64
+ buckets map[string]*Bucket
+ globalRateLimit time.Duration
+ customRateLimits []*customRateLimit
+}
+
+// NewRatelimiter returns a new RateLimiter
+func NewRatelimiter() *RateLimiter {
+
+ return &RateLimiter{
+ buckets: make(map[string]*Bucket),
+ global: new(int64),
+ customRateLimits: []*customRateLimit{
+ &customRateLimit{
+ suffix: "//reactions//",
+ requests: 1,
+ reset: 200 * time.Millisecond,
+ },
+ },
+ }
+}
+
+// GetBucket retrieves or creates a bucket
+func (r *RateLimiter) GetBucket(key string) *Bucket {
+ r.Lock()
+ defer r.Unlock()
+
+ if bucket, ok := r.buckets[key]; ok {
+ return bucket
+ }
+
+ b := &Bucket{
+ Remaining: 1,
+ Key: key,
+ global: r.global,
+ }
+
+ // Check if there is a custom ratelimit set for this bucket ID.
+ for _, rl := range r.customRateLimits {
+ if strings.HasSuffix(b.Key, rl.suffix) {
+ b.customRateLimit = rl
+ break
+ }
+ }
+
+ r.buckets[key] = b
+ return b
+}
+
+// GetWaitTime returns the duration you should wait for a Bucket
+func (r *RateLimiter) GetWaitTime(b *Bucket, minRemaining int) time.Duration {
+ // If we ran out of calls and the reset time is still ahead of us
+ // then we need to take it easy and relax a little
+ if b.Remaining < minRemaining && b.reset.After(time.Now()) {
+ return b.reset.Sub(time.Now())
+ }
+
+ // Check for global ratelimits
+ sleepTo := time.Unix(0, atomic.LoadInt64(r.global))
+ if now := time.Now(); now.Before(sleepTo) {
+ return sleepTo.Sub(now)
+ }
+
+ return 0
+}
+
+// LockBucket Locks until a request can be made
+func (r *RateLimiter) LockBucket(bucketID string) *Bucket {
+ return r.LockBucketObject(r.GetBucket(bucketID))
+}
+
+// LockBucketObject Locks an already resolved bucket until a request can be made
+func (r *RateLimiter) LockBucketObject(b *Bucket) *Bucket {
+ b.Lock()
+
+ if wait := r.GetWaitTime(b, 1); wait > 0 {
+ time.Sleep(wait)
+ }
+
+ b.Remaining--
+ return b
+}
+
+// Bucket represents a ratelimit bucket, each bucket gets ratelimited individually (-global ratelimits)
+type Bucket struct {
+ sync.Mutex
+ Key string
+ Remaining int
+ limit int
+ reset time.Time
+ global *int64
+
+ lastReset time.Time
+ customRateLimit *customRateLimit
+ Userdata interface{}
+}
+
+// Release unlocks the bucket and reads the headers to update the buckets ratelimit info
+// and locks up the whole thing in case if there's a global ratelimit.
+func (b *Bucket) Release(headers http.Header) error {
+ defer b.Unlock()
+
+ // Check if the bucket uses a custom ratelimiter
+ if rl := b.customRateLimit; rl != nil {
+ if time.Now().Sub(b.lastReset) >= rl.reset {
+ b.Remaining = rl.requests - 1
+ b.lastReset = time.Now()
+ }
+ if b.Remaining < 1 {
+ b.reset = time.Now().Add(rl.reset)
+ }
+ return nil
+ }
+
+ if headers == nil {
+ return nil
+ }
+
+ remaining := headers.Get("X-RateLimit-Remaining")
+ reset := headers.Get("X-RateLimit-Reset")
+ global := headers.Get("X-RateLimit-Global")
+ retryAfter := headers.Get("Retry-After")
+
+ // Update global and per bucket reset time if the proper headers are available
+ // If global is set, then it will block all buckets until after Retry-After
+ // If Retry-After without global is provided it will use that for the new reset
+ // time since it's more accurate than X-RateLimit-Reset.
+ // If Retry-After after is not proided, it will update the reset time from X-RateLimit-Reset
+ if retryAfter != "" {
+ parsedAfter, err := strconv.ParseInt(retryAfter, 10, 64)
+ if err != nil {
+ return err
+ }
+
+ resetAt := time.Now().Add(time.Duration(parsedAfter) * time.Millisecond)
+
+ // Lock either this single bucket or all buckets
+ if global != "" {
+ atomic.StoreInt64(b.global, resetAt.UnixNano())
+ } else {
+ b.reset = resetAt
+ }
+ } else if reset != "" {
+ // Calculate the reset time by using the date header returned from discord
+ discordTime, err := http.ParseTime(headers.Get("Date"))
+ if err != nil {
+ return err
+ }
+
+ unix, err := strconv.ParseInt(reset, 10, 64)
+ if err != nil {
+ return err
+ }
+
+ // Calculate the time until reset and add it to the current local time
+ // some extra time is added because without it i still encountered 429's.
+ // The added amount is the lowest amount that gave no 429's
+ // in 1k requests
+ delta := time.Unix(unix, 0).Sub(discordTime) + time.Millisecond*250
+ b.reset = time.Now().Add(delta)
+ }
+
+ // Udpate remaining if header is present
+ if remaining != "" {
+ parsedRemaining, err := strconv.ParseInt(remaining, 10, 32)
+ if err != nil {
+ return err
+ }
+ b.Remaining = int(parsedRemaining)
+ }
+
+ return nil
+}
diff --git a/vendor/github.com/matterbridge/discordgo/restapi.go b/vendor/github.com/matterbridge/discordgo/restapi.go
new file mode 100644
index 00000000..b5fa0fa4
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/restapi.go
@@ -0,0 +1,2296 @@
+// Discordgo - Discord bindings for Go
+// Available at https://github.com/bwmarrin/discordgo
+
+// Copyright 2015-2016 Bruce Marriner <bruce@sqls.net>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file contains functions for interacting with the Discord REST/JSON API
+// at the lowest level.
+
+package discordgo
+
+import (
+ "bytes"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "image"
+ _ "image/jpeg" // For JPEG decoding
+ _ "image/png" // For PNG decoding
+ "io"
+ "io/ioutil"
+ "log"
+ "mime/multipart"
+ "net/http"
+ "net/textproto"
+ "net/url"
+ "strconv"
+ "strings"
+ "time"
+)
+
+// All error constants
+var (
+ ErrJSONUnmarshal = errors.New("json unmarshal")
+ ErrStatusOffline = errors.New("You can't set your Status to offline")
+ ErrVerificationLevelBounds = errors.New("VerificationLevel out of bounds, should be between 0 and 3")
+ ErrPruneDaysBounds = errors.New("the number of days should be more than or equal to 1")
+ ErrGuildNoIcon = errors.New("guild does not have an icon set")
+ ErrGuildNoSplash = errors.New("guild does not have a splash set")
+ ErrUnauthorized = errors.New("HTTP request was unauthorized. This could be because the provided token was not a bot token. Please add \"Bot \" to the start of your token. https://discordapp.com/developers/docs/reference#authentication-example-bot-token-authorization-header")
+)
+
+// Request is the same as RequestWithBucketID but the bucket id is the same as the urlStr
+func (s *Session) Request(method, urlStr string, data interface{}) (response []byte, err error) {
+ return s.RequestWithBucketID(method, urlStr, data, strings.SplitN(urlStr, "?", 2)[0])
+}
+
+// RequestWithBucketID makes a (GET/POST/...) Requests to Discord REST API with JSON data.
+func (s *Session) RequestWithBucketID(method, urlStr string, data interface{}, bucketID string) (response []byte, err error) {
+ var body []byte
+ if data != nil {
+ body, err = json.Marshal(data)
+ if err != nil {
+ return
+ }
+ }
+
+ return s.request(method, urlStr, "application/json", body, bucketID, 0)
+}
+
+// request makes a (GET/POST/...) Requests to Discord REST API.
+// Sequence is the sequence number, if it fails with a 502 it will
+// retry with sequence+1 until it either succeeds or sequence >= session.MaxRestRetries
+func (s *Session) request(method, urlStr, contentType string, b []byte, bucketID string, sequence int) (response []byte, err error) {
+ if bucketID == "" {
+ bucketID = strings.SplitN(urlStr, "?", 2)[0]
+ }
+ return s.RequestWithLockedBucket(method, urlStr, contentType, b, s.Ratelimiter.LockBucket(bucketID), sequence)
+}
+
+// RequestWithLockedBucket makes a request using a bucket that's already been locked
+func (s *Session) RequestWithLockedBucket(method, urlStr, contentType string, b []byte, bucket *Bucket, sequence int) (response []byte, err error) {
+ if s.Debug {
+ log.Printf("API REQUEST %8s :: %s\n", method, urlStr)
+ log.Printf("API REQUEST PAYLOAD :: [%s]\n", string(b))
+ }
+
+ req, err := http.NewRequest(method, urlStr, bytes.NewBuffer(b))
+ if err != nil {
+ bucket.Release(nil)
+ return
+ }
+
+ // Not used on initial login..
+ // TODO: Verify if a login, otherwise complain about no-token
+ if s.Token != "" {
+ req.Header.Set("authorization", s.Token)
+ }
+
+ // Discord's API returns a 400 Bad Request is Content-Type is set, but the
+ // request body is empty.
+ if b != nil {
+ req.Header.Set("Content-Type", contentType)
+ }
+
+ // TODO: Make a configurable static variable.
+ req.Header.Set("User-Agent", s.UserAgent)
+
+ if s.Debug {
+ for k, v := range req.Header {
+ log.Printf("API REQUEST HEADER :: [%s] = %+v\n", k, v)
+ }
+ }
+
+ resp, err := s.Client.Do(req)
+ if err != nil {
+ bucket.Release(nil)
+ return
+ }
+ defer func() {
+ err2 := resp.Body.Close()
+ if err2 != nil {
+ log.Println("error closing resp body")
+ }
+ }()
+
+ err = bucket.Release(resp.Header)
+ if err != nil {
+ return
+ }
+
+ response, err = ioutil.ReadAll(resp.Body)
+ if err != nil {
+ return
+ }
+
+ if s.Debug {
+
+ log.Printf("API RESPONSE STATUS :: %s\n", resp.Status)
+ for k, v := range resp.Header {
+ log.Printf("API RESPONSE HEADER :: [%s] = %+v\n", k, v)
+ }
+ log.Printf("API RESPONSE BODY :: [%s]\n\n\n", response)
+ }
+
+ switch resp.StatusCode {
+ case http.StatusOK:
+ case http.StatusCreated:
+ case http.StatusNoContent:
+ case http.StatusBadGateway:
+ // Retry sending request if possible
+ if sequence < s.MaxRestRetries {
+
+ s.log(LogInformational, "%s Failed (%s), Retrying...", urlStr, resp.Status)
+ response, err = s.RequestWithLockedBucket(method, urlStr, contentType, b, s.Ratelimiter.LockBucketObject(bucket), sequence+1)
+ } else {
+ err = fmt.Errorf("Exceeded Max retries HTTP %s, %s", resp.Status, response)
+ }
+ case 429: // TOO MANY REQUESTS - Rate limiting
+ rl := TooManyRequests{}
+ err = json.Unmarshal(response, &rl)
+ if err != nil {
+ s.log(LogError, "rate limit unmarshal error, %s", err)
+ return
+ }
+ s.log(LogInformational, "Rate Limiting %s, retry in %d", urlStr, rl.RetryAfter)
+ s.handleEvent(rateLimitEventType, RateLimit{TooManyRequests: &rl, URL: urlStr})
+
+ time.Sleep(rl.RetryAfter * time.Millisecond)
+ // we can make the above smarter
+ // this method can cause longer delays than required
+
+ response, err = s.RequestWithLockedBucket(method, urlStr, contentType, b, s.Ratelimiter.LockBucketObject(bucket), sequence)
+ case http.StatusUnauthorized:
+ if strings.Index(s.Token, "Bot ") != 0 {
+ s.log(LogInformational, ErrUnauthorized.Error())
+ err = ErrUnauthorized
+ }
+ fallthrough
+ default: // Error condition
+ err = newRestError(req, resp, response)
+ }
+
+ return
+}
+
+func unmarshal(data []byte, v interface{}) error {
+ err := json.Unmarshal(data, v)
+ if err != nil {
+ return ErrJSONUnmarshal
+ }
+
+ return nil
+}
+
+// ------------------------------------------------------------------------------------------------
+// Functions specific to Discord Sessions
+// ------------------------------------------------------------------------------------------------
+
+// Login asks the Discord server for an authentication token.
+//
+// NOTE: While email/pass authentication is supported by DiscordGo it is
+// HIGHLY DISCOURAGED by Discord. Please only use email/pass to obtain a token
+// and then use that authentication token for all future connections.
+// Also, doing any form of automation with a user (non Bot) account may result
+// in that account being permanently banned from Discord.
+func (s *Session) Login(email, password string) (err error) {
+
+ data := struct {
+ Email string `json:"email"`
+ Password string `json:"password"`
+ }{email, password}
+
+ response, err := s.RequestWithBucketID("POST", EndpointLogin, data, EndpointLogin)
+ if err != nil {
+ return
+ }
+
+ temp := struct {
+ Token string `json:"token"`
+ MFA bool `json:"mfa"`
+ }{}
+
+ err = unmarshal(response, &temp)
+ if err != nil {
+ return
+ }
+
+ s.Token = temp.Token
+ s.MFA = temp.MFA
+ return
+}
+
+// Register sends a Register request to Discord, and returns the authentication token
+// Note that this account is temporary and should be verified for future use.
+// Another option is to save the authentication token external, but this isn't recommended.
+func (s *Session) Register(username string) (token string, err error) {
+
+ data := struct {
+ Username string `json:"username"`
+ }{username}
+
+ response, err := s.RequestWithBucketID("POST", EndpointRegister, data, EndpointRegister)
+ if err != nil {
+ return
+ }
+
+ temp := struct {
+ Token string `json:"token"`
+ }{}
+
+ err = unmarshal(response, &temp)
+ if err != nil {
+ return
+ }
+
+ token = temp.Token
+ return
+}
+
+// Logout sends a logout request to Discord.
+// This does not seem to actually invalidate the token. So you can still
+// make API calls even after a Logout. So, it seems almost pointless to
+// even use.
+func (s *Session) Logout() (err error) {
+
+ // _, err = s.Request("POST", LOGOUT, `{"token": "` + s.Token + `"}`)
+
+ if s.Token == "" {
+ return
+ }
+
+ data := struct {
+ Token string `json:"token"`
+ }{s.Token}
+
+ _, err = s.RequestWithBucketID("POST", EndpointLogout, data, EndpointLogout)
+ return
+}
+
+// ------------------------------------------------------------------------------------------------
+// Functions specific to Discord Users
+// ------------------------------------------------------------------------------------------------
+
+// User returns the user details of the given userID
+// userID : A user ID or "@me" which is a shortcut of current user ID
+func (s *Session) User(userID string) (st *User, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointUser(userID), nil, EndpointUsers)
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// UserAvatar is deprecated. Please use UserAvatarDecode
+// userID : A user ID or "@me" which is a shortcut of current user ID
+func (s *Session) UserAvatar(userID string) (img image.Image, err error) {
+ u, err := s.User(userID)
+ if err != nil {
+ return
+ }
+ img, err = s.UserAvatarDecode(u)
+ return
+}
+
+// UserAvatarDecode returns an image.Image of a user's Avatar
+// user : The user which avatar should be retrieved
+func (s *Session) UserAvatarDecode(u *User) (img image.Image, err error) {
+ body, err := s.RequestWithBucketID("GET", EndpointUserAvatar(u.ID, u.Avatar), nil, EndpointUserAvatar("", ""))
+ if err != nil {
+ return
+ }
+
+ img, _, err = image.Decode(bytes.NewReader(body))
+ return
+}
+
+// UserUpdate updates a users settings.
+func (s *Session) UserUpdate(email, password, username, avatar, newPassword string) (st *User, err error) {
+
+ // NOTE: Avatar must be either the hash/id of existing Avatar or
+ // data:image/png;base64,BASE64_STRING_OF_NEW_AVATAR_PNG
+ // to set a new avatar.
+ // If left blank, avatar will be set to null/blank
+
+ data := struct {
+ Email string `json:"email,omitempty"`
+ Password string `json:"password,omitempty"`
+ Username string `json:"username,omitempty"`
+ Avatar string `json:"avatar,omitempty"`
+ NewPassword string `json:"new_password,omitempty"`
+ }{email, password, username, avatar, newPassword}
+
+ body, err := s.RequestWithBucketID("PATCH", EndpointUser("@me"), data, EndpointUsers)
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// UserSettings returns the settings for a given user
+func (s *Session) UserSettings() (st *Settings, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointUserSettings("@me"), nil, EndpointUserSettings(""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// UserUpdateStatus update the user status
+// status : The new status (Actual valid status are 'online','idle','dnd','invisible')
+func (s *Session) UserUpdateStatus(status Status) (st *Settings, err error) {
+ if status == StatusOffline {
+ err = ErrStatusOffline
+ return
+ }
+
+ data := struct {
+ Status Status `json:"status"`
+ }{status}
+
+ body, err := s.RequestWithBucketID("PATCH", EndpointUserSettings("@me"), data, EndpointUserSettings(""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// UserConnections returns the user's connections
+func (s *Session) UserConnections() (conn []*UserConnection, err error) {
+ response, err := s.RequestWithBucketID("GET", EndpointUserConnections("@me"), nil, EndpointUserConnections("@me"))
+ if err != nil {
+ return nil, err
+ }
+
+ err = unmarshal(response, &conn)
+ if err != nil {
+ return
+ }
+
+ return
+}
+
+// UserChannels returns an array of Channel structures for all private
+// channels.
+func (s *Session) UserChannels() (st []*Channel, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointUserChannels("@me"), nil, EndpointUserChannels(""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// UserChannelCreate creates a new User (Private) Channel with another User
+// recipientID : A user ID for the user to which this channel is opened with.
+func (s *Session) UserChannelCreate(recipientID string) (st *Channel, err error) {
+
+ data := struct {
+ RecipientID string `json:"recipient_id"`
+ }{recipientID}
+
+ body, err := s.RequestWithBucketID("POST", EndpointUserChannels("@me"), data, EndpointUserChannels(""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// UserGuilds returns an array of UserGuild structures for all guilds.
+// limit : The number guilds that can be returned. (max 100)
+// beforeID : If provided all guilds returned will be before given ID.
+// afterID : If provided all guilds returned will be after given ID.
+func (s *Session) UserGuilds(limit int, beforeID, afterID string) (st []*UserGuild, err error) {
+
+ v := url.Values{}
+
+ if limit > 0 {
+ v.Set("limit", strconv.Itoa(limit))
+ }
+ if afterID != "" {
+ v.Set("after", afterID)
+ }
+ if beforeID != "" {
+ v.Set("before", beforeID)
+ }
+
+ uri := EndpointUserGuilds("@me")
+
+ if len(v) > 0 {
+ uri += "?" + v.Encode()
+ }
+
+ body, err := s.RequestWithBucketID("GET", uri, nil, EndpointUserGuilds(""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// UserGuildSettingsEdit Edits the users notification settings for a guild
+// guildID : The ID of the guild to edit the settings on
+// settings : The settings to update
+func (s *Session) UserGuildSettingsEdit(guildID string, settings *UserGuildSettingsEdit) (st *UserGuildSettings, err error) {
+
+ body, err := s.RequestWithBucketID("PATCH", EndpointUserGuildSettings("@me", guildID), settings, EndpointUserGuildSettings("", guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// UserChannelPermissions returns the permission of a user in a channel.
+// userID : The ID of the user to calculate permissions for.
+// channelID : The ID of the channel to calculate permission for.
+//
+// NOTE: This function is now deprecated and will be removed in the future.
+// Please see the same function inside state.go
+func (s *Session) UserChannelPermissions(userID, channelID string) (apermissions int, err error) {
+ // Try to just get permissions from state.
+ apermissions, err = s.State.UserChannelPermissions(userID, channelID)
+ if err == nil {
+ return
+ }
+
+ // Otherwise try get as much data from state as possible, falling back to the network.
+ channel, err := s.State.Channel(channelID)
+ if err != nil || channel == nil {
+ channel, err = s.Channel(channelID)
+ if err != nil {
+ return
+ }
+ }
+
+ guild, err := s.State.Guild(channel.GuildID)
+ if err != nil || guild == nil {
+ guild, err = s.Guild(channel.GuildID)
+ if err != nil {
+ return
+ }
+ }
+
+ if userID == guild.OwnerID {
+ apermissions = PermissionAll
+ return
+ }
+
+ member, err := s.State.Member(guild.ID, userID)
+ if err != nil || member == nil {
+ member, err = s.GuildMember(guild.ID, userID)
+ if err != nil {
+ return
+ }
+ }
+
+ return memberPermissions(guild, channel, member), nil
+}
+
+// Calculates the permissions for a member.
+// https://support.discordapp.com/hc/en-us/articles/206141927-How-is-the-permission-hierarchy-structured-
+func memberPermissions(guild *Guild, channel *Channel, member *Member) (apermissions int) {
+ userID := member.User.ID
+
+ if userID == guild.OwnerID {
+ apermissions = PermissionAll
+ return
+ }
+
+ for _, role := range guild.Roles {
+ if role.ID == guild.ID {
+ apermissions |= role.Permissions
+ break
+ }
+ }
+
+ for _, role := range guild.Roles {
+ for _, roleID := range member.Roles {
+ if role.ID == roleID {
+ apermissions |= role.Permissions
+ break
+ }
+ }
+ }
+
+ if apermissions&PermissionAdministrator == PermissionAdministrator {
+ apermissions |= PermissionAll
+ }
+
+ // Apply @everyone overrides from the channel.
+ for _, overwrite := range channel.PermissionOverwrites {
+ if guild.ID == overwrite.ID {
+ apermissions &= ^overwrite.Deny
+ apermissions |= overwrite.Allow
+ break
+ }
+ }
+
+ denies := 0
+ allows := 0
+
+ // Member overwrites can override role overrides, so do two passes
+ for _, overwrite := range channel.PermissionOverwrites {
+ for _, roleID := range member.Roles {
+ if overwrite.Type == "role" && roleID == overwrite.ID {
+ denies |= overwrite.Deny
+ allows |= overwrite.Allow
+ break
+ }
+ }
+ }
+
+ apermissions &= ^denies
+ apermissions |= allows
+
+ for _, overwrite := range channel.PermissionOverwrites {
+ if overwrite.Type == "member" && overwrite.ID == userID {
+ apermissions &= ^overwrite.Deny
+ apermissions |= overwrite.Allow
+ break
+ }
+ }
+
+ if apermissions&PermissionAdministrator == PermissionAdministrator {
+ apermissions |= PermissionAllChannel
+ }
+
+ return apermissions
+}
+
+// ------------------------------------------------------------------------------------------------
+// Functions specific to Discord Guilds
+// ------------------------------------------------------------------------------------------------
+
+// Guild returns a Guild structure of a specific Guild.
+// guildID : The ID of a Guild
+func (s *Session) Guild(guildID string) (st *Guild, err error) {
+ if s.StateEnabled {
+ // Attempt to grab the guild from State first.
+ st, err = s.State.Guild(guildID)
+ if err == nil && !st.Unavailable {
+ return
+ }
+ }
+
+ body, err := s.RequestWithBucketID("GET", EndpointGuild(guildID), nil, EndpointGuild(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// GuildCreate creates a new Guild
+// name : A name for the Guild (2-100 characters)
+func (s *Session) GuildCreate(name string) (st *Guild, err error) {
+
+ data := struct {
+ Name string `json:"name"`
+ }{name}
+
+ body, err := s.RequestWithBucketID("POST", EndpointGuildCreate, data, EndpointGuildCreate)
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// GuildEdit edits a new Guild
+// guildID : The ID of a Guild
+// g : A GuildParams struct with the values Name, Region and VerificationLevel defined.
+func (s *Session) GuildEdit(guildID string, g GuildParams) (st *Guild, err error) {
+
+ // Bounds checking for VerificationLevel, interval: [0, 4]
+ if g.VerificationLevel != nil {
+ val := *g.VerificationLevel
+ if val < 0 || val > 4 {
+ err = ErrVerificationLevelBounds
+ return
+ }
+ }
+
+ //Bounds checking for regions
+ if g.Region != "" {
+ isValid := false
+ regions, _ := s.VoiceRegions()
+ for _, r := range regions {
+ if g.Region == r.ID {
+ isValid = true
+ }
+ }
+ if !isValid {
+ var valid []string
+ for _, r := range regions {
+ valid = append(valid, r.ID)
+ }
+ err = fmt.Errorf("Region not a valid region (%q)", valid)
+ return
+ }
+ }
+
+ body, err := s.RequestWithBucketID("PATCH", EndpointGuild(guildID), g, EndpointGuild(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// GuildDelete deletes a Guild.
+// guildID : The ID of a Guild
+func (s *Session) GuildDelete(guildID string) (st *Guild, err error) {
+
+ body, err := s.RequestWithBucketID("DELETE", EndpointGuild(guildID), nil, EndpointGuild(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// GuildLeave leaves a Guild.
+// guildID : The ID of a Guild
+func (s *Session) GuildLeave(guildID string) (err error) {
+
+ _, err = s.RequestWithBucketID("DELETE", EndpointUserGuild("@me", guildID), nil, EndpointUserGuild("", guildID))
+ return
+}
+
+// GuildBans returns an array of GuildBan structures for all bans of a
+// given guild.
+// guildID : The ID of a Guild.
+func (s *Session) GuildBans(guildID string) (st []*GuildBan, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointGuildBans(guildID), nil, EndpointGuildBans(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+
+ return
+}
+
+// GuildBanCreate bans the given user from the given guild.
+// guildID : The ID of a Guild.
+// userID : The ID of a User
+// days : The number of days of previous comments to delete.
+func (s *Session) GuildBanCreate(guildID, userID string, days int) (err error) {
+ return s.GuildBanCreateWithReason(guildID, userID, "", days)
+}
+
+// GuildBanCreateWithReason bans the given user from the given guild also providing a reaso.
+// guildID : The ID of a Guild.
+// userID : The ID of a User
+// reason : The reason for this ban
+// days : The number of days of previous comments to delete.
+func (s *Session) GuildBanCreateWithReason(guildID, userID, reason string, days int) (err error) {
+
+ uri := EndpointGuildBan(guildID, userID)
+
+ queryParams := url.Values{}
+ if days > 0 {
+ queryParams.Set("delete-message-days", strconv.Itoa(days))
+ }
+ if reason != "" {
+ queryParams.Set("reason", reason)
+ }
+
+ if len(queryParams) > 0 {
+ uri += "?" + queryParams.Encode()
+ }
+
+ _, err = s.RequestWithBucketID("PUT", uri, nil, EndpointGuildBan(guildID, ""))
+ return
+}
+
+// GuildBanDelete removes the given user from the guild bans
+// guildID : The ID of a Guild.
+// userID : The ID of a User
+func (s *Session) GuildBanDelete(guildID, userID string) (err error) {
+
+ _, err = s.RequestWithBucketID("DELETE", EndpointGuildBan(guildID, userID), nil, EndpointGuildBan(guildID, ""))
+ return
+}
+
+// GuildMembers returns a list of members for a guild.
+// guildID : The ID of a Guild.
+// after : The id of the member to return members after
+// limit : max number of members to return (max 1000)
+func (s *Session) GuildMembers(guildID string, after string, limit int) (st []*Member, err error) {
+
+ uri := EndpointGuildMembers(guildID)
+
+ v := url.Values{}
+
+ if after != "" {
+ v.Set("after", after)
+ }
+
+ if limit > 0 {
+ v.Set("limit", strconv.Itoa(limit))
+ }
+
+ if len(v) > 0 {
+ uri += "?" + v.Encode()
+ }
+
+ body, err := s.RequestWithBucketID("GET", uri, nil, EndpointGuildMembers(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// GuildMember returns a member of a guild.
+// guildID : The ID of a Guild.
+// userID : The ID of a User
+func (s *Session) GuildMember(guildID, userID string) (st *Member, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointGuildMember(guildID, userID), nil, EndpointGuildMember(guildID, ""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// GuildMemberAdd force joins a user to the guild.
+// accessToken : Valid access_token for the user.
+// guildID : The ID of a Guild.
+// userID : The ID of a User.
+// nick : Value to set users nickname to
+// roles : A list of role ID's to set on the member.
+// mute : If the user is muted.
+// deaf : If the user is deafened.
+func (s *Session) GuildMemberAdd(accessToken, guildID, userID, nick string, roles []string, mute, deaf bool) (err error) {
+
+ data := struct {
+ AccessToken string `json:"access_token"`
+ Nick string `json:"nick,omitempty"`
+ Roles []string `json:"roles,omitempty"`
+ Mute bool `json:"mute,omitempty"`
+ Deaf bool `json:"deaf,omitempty"`
+ }{accessToken, nick, roles, mute, deaf}
+
+ _, err = s.RequestWithBucketID("PUT", EndpointGuildMember(guildID, userID), data, EndpointGuildMember(guildID, ""))
+ if err != nil {
+ return err
+ }
+
+ return err
+}
+
+// GuildMemberDelete removes the given user from the given guild.
+// guildID : The ID of a Guild.
+// userID : The ID of a User
+func (s *Session) GuildMemberDelete(guildID, userID string) (err error) {
+
+ return s.GuildMemberDeleteWithReason(guildID, userID, "")
+}
+
+// GuildMemberDeleteWithReason removes the given user from the given guild.
+// guildID : The ID of a Guild.
+// userID : The ID of a User
+// reason : The reason for the kick
+func (s *Session) GuildMemberDeleteWithReason(guildID, userID, reason string) (err error) {
+
+ uri := EndpointGuildMember(guildID, userID)
+ if reason != "" {
+ uri += "?reason=" + url.QueryEscape(reason)
+ }
+
+ _, err = s.RequestWithBucketID("DELETE", uri, nil, EndpointGuildMember(guildID, ""))
+ return
+}
+
+// GuildMemberEdit edits the roles of a member.
+// guildID : The ID of a Guild.
+// userID : The ID of a User.
+// roles : A list of role ID's to set on the member.
+func (s *Session) GuildMemberEdit(guildID, userID string, roles []string) (err error) {
+
+ data := struct {
+ Roles []string `json:"roles"`
+ }{roles}
+
+ _, err = s.RequestWithBucketID("PATCH", EndpointGuildMember(guildID, userID), data, EndpointGuildMember(guildID, ""))
+ if err != nil {
+ return
+ }
+
+ return
+}
+
+// GuildMemberMove moves a guild member from one voice channel to another/none
+// guildID : The ID of a Guild.
+// userID : The ID of a User.
+// channelID : The ID of a channel to move user to, or null?
+// NOTE : I am not entirely set on the name of this function and it may change
+// prior to the final 1.0.0 release of Discordgo
+func (s *Session) GuildMemberMove(guildID, userID, channelID string) (err error) {
+
+ data := struct {
+ ChannelID string `json:"channel_id"`
+ }{channelID}
+
+ _, err = s.RequestWithBucketID("PATCH", EndpointGuildMember(guildID, userID), data, EndpointGuildMember(guildID, ""))
+ if err != nil {
+ return
+ }
+
+ return
+}
+
+// GuildMemberNickname updates the nickname of a guild member
+// guildID : The ID of a guild
+// userID : The ID of a user
+// userID : The ID of a user or "@me" which is a shortcut of the current user ID
+func (s *Session) GuildMemberNickname(guildID, userID, nickname string) (err error) {
+
+ data := struct {
+ Nick string `json:"nick"`
+ }{nickname}
+
+ if userID == "@me" {
+ userID += "/nick"
+ }
+
+ _, err = s.RequestWithBucketID("PATCH", EndpointGuildMember(guildID, userID), data, EndpointGuildMember(guildID, ""))
+ return
+}
+
+// GuildMemberRoleAdd adds the specified role to a given member
+// guildID : The ID of a Guild.
+// userID : The ID of a User.
+// roleID : The ID of a Role to be assigned to the user.
+func (s *Session) GuildMemberRoleAdd(guildID, userID, roleID string) (err error) {
+
+ _, err = s.RequestWithBucketID("PUT", EndpointGuildMemberRole(guildID, userID, roleID), nil, EndpointGuildMemberRole(guildID, "", ""))
+
+ return
+}
+
+// GuildMemberRoleRemove removes the specified role to a given member
+// guildID : The ID of a Guild.
+// userID : The ID of a User.
+// roleID : The ID of a Role to be removed from the user.
+func (s *Session) GuildMemberRoleRemove(guildID, userID, roleID string) (err error) {
+
+ _, err = s.RequestWithBucketID("DELETE", EndpointGuildMemberRole(guildID, userID, roleID), nil, EndpointGuildMemberRole(guildID, "", ""))
+
+ return
+}
+
+// GuildChannels returns an array of Channel structures for all channels of a
+// given guild.
+// guildID : The ID of a Guild.
+func (s *Session) GuildChannels(guildID string) (st []*Channel, err error) {
+
+ body, err := s.request("GET", EndpointGuildChannels(guildID), "", nil, EndpointGuildChannels(guildID), 0)
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+
+ return
+}
+
+// GuildChannelCreateData is provided to GuildChannelCreateComplex
+type GuildChannelCreateData struct {
+ Name string `json:"name"`
+ Type ChannelType `json:"type"`
+ Topic string `json:"topic,omitempty"`
+ Bitrate int `json:"bitrate,omitempty"`
+ UserLimit int `json:"user_limit,omitempty"`
+ PermissionOverwrites []*PermissionOverwrite `json:"permission_overwrites,omitempty"`
+ ParentID string `json:"parent_id,omitempty"`
+ NSFW bool `json:"nsfw,omitempty"`
+}
+
+// GuildChannelCreateComplex creates a new channel in the given guild
+// guildID : The ID of a Guild
+// data : A data struct describing the new Channel, Name and Type are mandatory, other fields depending on the type
+func (s *Session) GuildChannelCreateComplex(guildID string, data GuildChannelCreateData) (st *Channel, err error) {
+ body, err := s.RequestWithBucketID("POST", EndpointGuildChannels(guildID), data, EndpointGuildChannels(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// GuildChannelCreate creates a new channel in the given guild
+// guildID : The ID of a Guild.
+// name : Name of the channel (2-100 chars length)
+// ctype : Type of the channel
+func (s *Session) GuildChannelCreate(guildID, name string, ctype ChannelType) (st *Channel, err error) {
+ return s.GuildChannelCreateComplex(guildID, GuildChannelCreateData{
+ Name: name,
+ Type: ctype,
+ })
+}
+
+// GuildChannelsReorder updates the order of channels in a guild
+// guildID : The ID of a Guild.
+// channels : Updated channels.
+func (s *Session) GuildChannelsReorder(guildID string, channels []*Channel) (err error) {
+
+ data := make([]struct {
+ ID string `json:"id"`
+ Position int `json:"position"`
+ }, len(channels))
+
+ for i, c := range channels {
+ data[i].ID = c.ID
+ data[i].Position = c.Position
+ }
+
+ _, err = s.RequestWithBucketID("PATCH", EndpointGuildChannels(guildID), data, EndpointGuildChannels(guildID))
+ return
+}
+
+// GuildInvites returns an array of Invite structures for the given guild
+// guildID : The ID of a Guild.
+func (s *Session) GuildInvites(guildID string) (st []*Invite, err error) {
+ body, err := s.RequestWithBucketID("GET", EndpointGuildInvites(guildID), nil, EndpointGuildInvites(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// GuildRoles returns all roles for a given guild.
+// guildID : The ID of a Guild.
+func (s *Session) GuildRoles(guildID string) (st []*Role, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointGuildRoles(guildID), nil, EndpointGuildRoles(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+
+ return // TODO return pointer
+}
+
+// GuildRoleCreate returns a new Guild Role.
+// guildID: The ID of a Guild.
+func (s *Session) GuildRoleCreate(guildID string) (st *Role, err error) {
+
+ body, err := s.RequestWithBucketID("POST", EndpointGuildRoles(guildID), nil, EndpointGuildRoles(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+
+ return
+}
+
+// GuildRoleEdit updates an existing Guild Role with new values
+// guildID : The ID of a Guild.
+// roleID : The ID of a Role.
+// name : The name of the Role.
+// color : The color of the role (decimal, not hex).
+// hoist : Whether to display the role's users separately.
+// perm : The permissions for the role.
+// mention : Whether this role is mentionable
+func (s *Session) GuildRoleEdit(guildID, roleID, name string, color int, hoist bool, perm int, mention bool) (st *Role, err error) {
+
+ // Prevent sending a color int that is too big.
+ if color > 0xFFFFFF {
+ err = fmt.Errorf("color value cannot be larger than 0xFFFFFF")
+ return nil, err
+ }
+
+ data := struct {
+ Name string `json:"name"` // The role's name (overwrites existing)
+ Color int `json:"color"` // The color the role should have (as a decimal, not hex)
+ Hoist bool `json:"hoist"` // Whether to display the role's users separately
+ Permissions int `json:"permissions"` // The overall permissions number of the role (overwrites existing)
+ Mentionable bool `json:"mentionable"` // Whether this role is mentionable
+ }{name, color, hoist, perm, mention}
+
+ body, err := s.RequestWithBucketID("PATCH", EndpointGuildRole(guildID, roleID), data, EndpointGuildRole(guildID, ""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+
+ return
+}
+
+// GuildRoleReorder reoders guild roles
+// guildID : The ID of a Guild.
+// roles : A list of ordered roles.
+func (s *Session) GuildRoleReorder(guildID string, roles []*Role) (st []*Role, err error) {
+
+ body, err := s.RequestWithBucketID("PATCH", EndpointGuildRoles(guildID), roles, EndpointGuildRoles(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+
+ return
+}
+
+// GuildRoleDelete deletes an existing role.
+// guildID : The ID of a Guild.
+// roleID : The ID of a Role.
+func (s *Session) GuildRoleDelete(guildID, roleID string) (err error) {
+
+ _, err = s.RequestWithBucketID("DELETE", EndpointGuildRole(guildID, roleID), nil, EndpointGuildRole(guildID, ""))
+
+ return
+}
+
+// GuildPruneCount Returns the number of members that would be removed in a prune operation.
+// Requires 'KICK_MEMBER' permission.
+// guildID : The ID of a Guild.
+// days : The number of days to count prune for (1 or more).
+func (s *Session) GuildPruneCount(guildID string, days uint32) (count uint32, err error) {
+ count = 0
+
+ if days <= 0 {
+ err = ErrPruneDaysBounds
+ return
+ }
+
+ p := struct {
+ Pruned uint32 `json:"pruned"`
+ }{}
+
+ uri := EndpointGuildPrune(guildID) + "?days=" + strconv.FormatUint(uint64(days), 10)
+ body, err := s.RequestWithBucketID("GET", uri, nil, EndpointGuildPrune(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &p)
+ if err != nil {
+ return
+ }
+
+ count = p.Pruned
+
+ return
+}
+
+// GuildPrune Begin as prune operation. Requires the 'KICK_MEMBERS' permission.
+// Returns an object with one 'pruned' key indicating the number of members that were removed in the prune operation.
+// guildID : The ID of a Guild.
+// days : The number of days to count prune for (1 or more).
+func (s *Session) GuildPrune(guildID string, days uint32) (count uint32, err error) {
+
+ count = 0
+
+ if days <= 0 {
+ err = ErrPruneDaysBounds
+ return
+ }
+
+ data := struct {
+ days uint32
+ }{days}
+
+ p := struct {
+ Pruned uint32 `json:"pruned"`
+ }{}
+
+ body, err := s.RequestWithBucketID("POST", EndpointGuildPrune(guildID), data, EndpointGuildPrune(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &p)
+ if err != nil {
+ return
+ }
+
+ count = p.Pruned
+
+ return
+}
+
+// GuildIntegrations returns an array of Integrations for a guild.
+// guildID : The ID of a Guild.
+func (s *Session) GuildIntegrations(guildID string) (st []*Integration, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointGuildIntegrations(guildID), nil, EndpointGuildIntegrations(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+
+ return
+}
+
+// GuildIntegrationCreate creates a Guild Integration.
+// guildID : The ID of a Guild.
+// integrationType : The Integration type.
+// integrationID : The ID of an integration.
+func (s *Session) GuildIntegrationCreate(guildID, integrationType, integrationID string) (err error) {
+
+ data := struct {
+ Type string `json:"type"`
+ ID string `json:"id"`
+ }{integrationType, integrationID}
+
+ _, err = s.RequestWithBucketID("POST", EndpointGuildIntegrations(guildID), data, EndpointGuildIntegrations(guildID))
+ return
+}
+
+// GuildIntegrationEdit edits a Guild Integration.
+// guildID : The ID of a Guild.
+// integrationType : The Integration type.
+// integrationID : The ID of an integration.
+// expireBehavior : The behavior when an integration subscription lapses (see the integration object documentation).
+// expireGracePeriod : Period (in seconds) where the integration will ignore lapsed subscriptions.
+// enableEmoticons : Whether emoticons should be synced for this integration (twitch only currently).
+func (s *Session) GuildIntegrationEdit(guildID, integrationID string, expireBehavior, expireGracePeriod int, enableEmoticons bool) (err error) {
+
+ data := struct {
+ ExpireBehavior int `json:"expire_behavior"`
+ ExpireGracePeriod int `json:"expire_grace_period"`
+ EnableEmoticons bool `json:"enable_emoticons"`
+ }{expireBehavior, expireGracePeriod, enableEmoticons}
+
+ _, err = s.RequestWithBucketID("PATCH", EndpointGuildIntegration(guildID, integrationID), data, EndpointGuildIntegration(guildID, ""))
+ return
+}
+
+// GuildIntegrationDelete removes the given integration from the Guild.
+// guildID : The ID of a Guild.
+// integrationID : The ID of an integration.
+func (s *Session) GuildIntegrationDelete(guildID, integrationID string) (err error) {
+
+ _, err = s.RequestWithBucketID("DELETE", EndpointGuildIntegration(guildID, integrationID), nil, EndpointGuildIntegration(guildID, ""))
+ return
+}
+
+// GuildIntegrationSync syncs an integration.
+// guildID : The ID of a Guild.
+// integrationID : The ID of an integration.
+func (s *Session) GuildIntegrationSync(guildID, integrationID string) (err error) {
+
+ _, err = s.RequestWithBucketID("POST", EndpointGuildIntegrationSync(guildID, integrationID), nil, EndpointGuildIntegration(guildID, ""))
+ return
+}
+
+// GuildIcon returns an image.Image of a guild icon.
+// guildID : The ID of a Guild.
+func (s *Session) GuildIcon(guildID string) (img image.Image, err error) {
+ g, err := s.Guild(guildID)
+ if err != nil {
+ return
+ }
+
+ if g.Icon == "" {
+ err = ErrGuildNoIcon
+ return
+ }
+
+ body, err := s.RequestWithBucketID("GET", EndpointGuildIcon(guildID, g.Icon), nil, EndpointGuildIcon(guildID, ""))
+ if err != nil {
+ return
+ }
+
+ img, _, err = image.Decode(bytes.NewReader(body))
+ return
+}
+
+// GuildSplash returns an image.Image of a guild splash image.
+// guildID : The ID of a Guild.
+func (s *Session) GuildSplash(guildID string) (img image.Image, err error) {
+ g, err := s.Guild(guildID)
+ if err != nil {
+ return
+ }
+
+ if g.Splash == "" {
+ err = ErrGuildNoSplash
+ return
+ }
+
+ body, err := s.RequestWithBucketID("GET", EndpointGuildSplash(guildID, g.Splash), nil, EndpointGuildSplash(guildID, ""))
+ if err != nil {
+ return
+ }
+
+ img, _, err = image.Decode(bytes.NewReader(body))
+ return
+}
+
+// GuildEmbed returns the embed for a Guild.
+// guildID : The ID of a Guild.
+func (s *Session) GuildEmbed(guildID string) (st *GuildEmbed, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointGuildEmbed(guildID), nil, EndpointGuildEmbed(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// GuildEmbedEdit returns the embed for a Guild.
+// guildID : The ID of a Guild.
+func (s *Session) GuildEmbedEdit(guildID string, enabled bool, channelID string) (err error) {
+
+ data := GuildEmbed{enabled, channelID}
+
+ _, err = s.RequestWithBucketID("PATCH", EndpointGuildEmbed(guildID), data, EndpointGuildEmbed(guildID))
+ return
+}
+
+// GuildAuditLog returns the audit log for a Guild.
+// guildID : The ID of a Guild.
+// userID : If provided the log will be filtered for the given ID.
+// beforeID : If provided all log entries returned will be before the given ID.
+// actionType : If provided the log will be filtered for the given Action Type.
+// limit : The number messages that can be returned. (default 50, min 1, max 100)
+func (s *Session) GuildAuditLog(guildID, userID, beforeID string, actionType, limit int) (st *GuildAuditLog, err error) {
+
+ uri := EndpointGuildAuditLogs(guildID)
+
+ v := url.Values{}
+ if userID != "" {
+ v.Set("user_id", userID)
+ }
+ if beforeID != "" {
+ v.Set("before", beforeID)
+ }
+ if actionType > 0 {
+ v.Set("action_type", strconv.Itoa(actionType))
+ }
+ if limit > 0 {
+ v.Set("limit", strconv.Itoa(limit))
+ }
+ if len(v) > 0 {
+ uri = fmt.Sprintf("%s?%s", uri, v.Encode())
+ }
+
+ body, err := s.RequestWithBucketID("GET", uri, nil, EndpointGuildAuditLogs(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// GuildEmojiCreate creates a new emoji
+// guildID : The ID of a Guild.
+// name : The Name of the Emoji.
+// image : The base64 encoded emoji image, has to be smaller than 256KB.
+// roles : The roles for which this emoji will be whitelisted, can be nil.
+func (s *Session) GuildEmojiCreate(guildID, name, image string, roles []string) (emoji *Emoji, err error) {
+
+ data := struct {
+ Name string `json:"name"`
+ Image string `json:"image"`
+ Roles []string `json:"roles,omitempty"`
+ }{name, image, roles}
+
+ body, err := s.RequestWithBucketID("POST", EndpointGuildEmojis(guildID), data, EndpointGuildEmojis(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &emoji)
+ return
+}
+
+// GuildEmojiEdit modifies an emoji
+// guildID : The ID of a Guild.
+// emojiID : The ID of an Emoji.
+// name : The Name of the Emoji.
+// roles : The roles for which this emoji will be whitelisted, can be nil.
+func (s *Session) GuildEmojiEdit(guildID, emojiID, name string, roles []string) (emoji *Emoji, err error) {
+
+ data := struct {
+ Name string `json:"name"`
+ Roles []string `json:"roles,omitempty"`
+ }{name, roles}
+
+ body, err := s.RequestWithBucketID("PATCH", EndpointGuildEmoji(guildID, emojiID), data, EndpointGuildEmojis(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &emoji)
+ return
+}
+
+// GuildEmojiDelete deletes an Emoji.
+// guildID : The ID of a Guild.
+// emojiID : The ID of an Emoji.
+func (s *Session) GuildEmojiDelete(guildID, emojiID string) (err error) {
+
+ _, err = s.RequestWithBucketID("DELETE", EndpointGuildEmoji(guildID, emojiID), nil, EndpointGuildEmojis(guildID))
+ return
+}
+
+// ------------------------------------------------------------------------------------------------
+// Functions specific to Discord Channels
+// ------------------------------------------------------------------------------------------------
+
+// Channel returns a Channel structure of a specific Channel.
+// channelID : The ID of the Channel you want returned.
+func (s *Session) Channel(channelID string) (st *Channel, err error) {
+ body, err := s.RequestWithBucketID("GET", EndpointChannel(channelID), nil, EndpointChannel(channelID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// ChannelEdit edits the given channel
+// channelID : The ID of a Channel
+// name : The new name to assign the channel.
+func (s *Session) ChannelEdit(channelID, name string) (*Channel, error) {
+ return s.ChannelEditComplex(channelID, &ChannelEdit{
+ Name: name,
+ })
+}
+
+// ChannelEditComplex edits an existing channel, replacing the parameters entirely with ChannelEdit struct
+// channelID : The ID of a Channel
+// data : The channel struct to send
+func (s *Session) ChannelEditComplex(channelID string, data *ChannelEdit) (st *Channel, err error) {
+ body, err := s.RequestWithBucketID("PATCH", EndpointChannel(channelID), data, EndpointChannel(channelID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// ChannelDelete deletes the given channel
+// channelID : The ID of a Channel
+func (s *Session) ChannelDelete(channelID string) (st *Channel, err error) {
+
+ body, err := s.RequestWithBucketID("DELETE", EndpointChannel(channelID), nil, EndpointChannel(channelID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// ChannelTyping broadcasts to all members that authenticated user is typing in
+// the given channel.
+// channelID : The ID of a Channel
+func (s *Session) ChannelTyping(channelID string) (err error) {
+
+ _, err = s.RequestWithBucketID("POST", EndpointChannelTyping(channelID), nil, EndpointChannelTyping(channelID))
+ return
+}
+
+// ChannelMessages returns an array of Message structures for messages within
+// a given channel.
+// channelID : The ID of a Channel.
+// limit : The number messages that can be returned. (max 100)
+// beforeID : If provided all messages returned will be before given ID.
+// afterID : If provided all messages returned will be after given ID.
+// aroundID : If provided all messages returned will be around given ID.
+func (s *Session) ChannelMessages(channelID string, limit int, beforeID, afterID, aroundID string) (st []*Message, err error) {
+
+ uri := EndpointChannelMessages(channelID)
+
+ v := url.Values{}
+ if limit > 0 {
+ v.Set("limit", strconv.Itoa(limit))
+ }
+ if afterID != "" {
+ v.Set("after", afterID)
+ }
+ if beforeID != "" {
+ v.Set("before", beforeID)
+ }
+ if aroundID != "" {
+ v.Set("around", aroundID)
+ }
+ if len(v) > 0 {
+ uri += "?" + v.Encode()
+ }
+
+ body, err := s.RequestWithBucketID("GET", uri, nil, EndpointChannelMessages(channelID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// ChannelMessage gets a single message by ID from a given channel.
+// channeld : The ID of a Channel
+// messageID : the ID of a Message
+func (s *Session) ChannelMessage(channelID, messageID string) (st *Message, err error) {
+
+ response, err := s.RequestWithBucketID("GET", EndpointChannelMessage(channelID, messageID), nil, EndpointChannelMessage(channelID, ""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(response, &st)
+ return
+}
+
+// ChannelMessageAck acknowledges and marks the given message as read
+// channeld : The ID of a Channel
+// messageID : the ID of a Message
+// lastToken : token returned by last ack
+func (s *Session) ChannelMessageAck(channelID, messageID, lastToken string) (st *Ack, err error) {
+
+ body, err := s.RequestWithBucketID("POST", EndpointChannelMessageAck(channelID, messageID), &Ack{Token: lastToken}, EndpointChannelMessageAck(channelID, ""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// ChannelMessageSend sends a message to the given channel.
+// channelID : The ID of a Channel.
+// content : The message to send.
+func (s *Session) ChannelMessageSend(channelID string, content string) (*Message, error) {
+ return s.ChannelMessageSendComplex(channelID, &MessageSend{
+ Content: content,
+ })
+}
+
+var quoteEscaper = strings.NewReplacer("\\", "\\\\", `"`, "\\\"")
+
+// ChannelMessageSendComplex sends a message to the given channel.
+// channelID : The ID of a Channel.
+// data : The message struct to send.
+func (s *Session) ChannelMessageSendComplex(channelID string, data *MessageSend) (st *Message, err error) {
+ if data.Embed != nil && data.Embed.Type == "" {
+ data.Embed.Type = "rich"
+ }
+
+ endpoint := EndpointChannelMessages(channelID)
+
+ // TODO: Remove this when compatibility is not required.
+ files := data.Files
+ if data.File != nil {
+ if files == nil {
+ files = []*File{data.File}
+ } else {
+ err = fmt.Errorf("cannot specify both File and Files")
+ return
+ }
+ }
+
+ var response []byte
+ if len(files) > 0 {
+ body := &bytes.Buffer{}
+ bodywriter := multipart.NewWriter(body)
+
+ var payload []byte
+ payload, err = json.Marshal(data)
+ if err != nil {
+ return
+ }
+
+ var p io.Writer
+
+ h := make(textproto.MIMEHeader)
+ h.Set("Content-Disposition", `form-data; name="payload_json"`)
+ h.Set("Content-Type", "application/json")
+
+ p, err = bodywriter.CreatePart(h)
+ if err != nil {
+ return
+ }
+
+ if _, err = p.Write(payload); err != nil {
+ return
+ }
+
+ for i, file := range files {
+ h := make(textproto.MIMEHeader)
+ h.Set("Content-Disposition", fmt.Sprintf(`form-data; name="file%d"; filename="%s"`, i, quoteEscaper.Replace(file.Name)))
+ contentType := file.ContentType
+ if contentType == "" {
+ contentType = "application/octet-stream"
+ }
+ h.Set("Content-Type", contentType)
+
+ p, err = bodywriter.CreatePart(h)
+ if err != nil {
+ return
+ }
+
+ if _, err = io.Copy(p, file.Reader); err != nil {
+ return
+ }
+ }
+
+ err = bodywriter.Close()
+ if err != nil {
+ return
+ }
+
+ response, err = s.request("POST", endpoint, bodywriter.FormDataContentType(), body.Bytes(), endpoint, 0)
+ } else {
+ response, err = s.RequestWithBucketID("POST", endpoint, data, endpoint)
+ }
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(response, &st)
+ return
+}
+
+// ChannelMessageSendTTS sends a message to the given channel with Text to Speech.
+// channelID : The ID of a Channel.
+// content : The message to send.
+func (s *Session) ChannelMessageSendTTS(channelID string, content string) (*Message, error) {
+ return s.ChannelMessageSendComplex(channelID, &MessageSend{
+ Content: content,
+ Tts: true,
+ })
+}
+
+// ChannelMessageSendEmbed sends a message to the given channel with embedded data.
+// channelID : The ID of a Channel.
+// embed : The embed data to send.
+func (s *Session) ChannelMessageSendEmbed(channelID string, embed *MessageEmbed) (*Message, error) {
+ return s.ChannelMessageSendComplex(channelID, &MessageSend{
+ Embed: embed,
+ })
+}
+
+// ChannelMessageEdit edits an existing message, replacing it entirely with
+// the given content.
+// channelID : The ID of a Channel
+// messageID : The ID of a Message
+// content : The contents of the message
+func (s *Session) ChannelMessageEdit(channelID, messageID, content string) (*Message, error) {
+ return s.ChannelMessageEditComplex(NewMessageEdit(channelID, messageID).SetContent(content))
+}
+
+// ChannelMessageEditComplex edits an existing message, replacing it entirely with
+// the given MessageEdit struct
+func (s *Session) ChannelMessageEditComplex(m *MessageEdit) (st *Message, err error) {
+ if m.Embed != nil && m.Embed.Type == "" {
+ m.Embed.Type = "rich"
+ }
+
+ response, err := s.RequestWithBucketID("PATCH", EndpointChannelMessage(m.Channel, m.ID), m, EndpointChannelMessage(m.Channel, ""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(response, &st)
+ return
+}
+
+// ChannelMessageEditEmbed edits an existing message with embedded data.
+// channelID : The ID of a Channel
+// messageID : The ID of a Message
+// embed : The embed data to send
+func (s *Session) ChannelMessageEditEmbed(channelID, messageID string, embed *MessageEmbed) (*Message, error) {
+ return s.ChannelMessageEditComplex(NewMessageEdit(channelID, messageID).SetEmbed(embed))
+}
+
+// ChannelMessageDelete deletes a message from the Channel.
+func (s *Session) ChannelMessageDelete(channelID, messageID string) (err error) {
+
+ _, err = s.RequestWithBucketID("DELETE", EndpointChannelMessage(channelID, messageID), nil, EndpointChannelMessage(channelID, ""))
+ return
+}
+
+// ChannelMessagesBulkDelete bulk deletes the messages from the channel for the provided messageIDs.
+// If only one messageID is in the slice call channelMessageDelete function.
+// If the slice is empty do nothing.
+// channelID : The ID of the channel for the messages to delete.
+// messages : The IDs of the messages to be deleted. A slice of string IDs. A maximum of 100 messages.
+func (s *Session) ChannelMessagesBulkDelete(channelID string, messages []string) (err error) {
+
+ if len(messages) == 0 {
+ return
+ }
+
+ if len(messages) == 1 {
+ err = s.ChannelMessageDelete(channelID, messages[0])
+ return
+ }
+
+ if len(messages) > 100 {
+ messages = messages[:100]
+ }
+
+ data := struct {
+ Messages []string `json:"messages"`
+ }{messages}
+
+ _, err = s.RequestWithBucketID("POST", EndpointChannelMessagesBulkDelete(channelID), data, EndpointChannelMessagesBulkDelete(channelID))
+ return
+}
+
+// ChannelMessagePin pins a message within a given channel.
+// channelID: The ID of a channel.
+// messageID: The ID of a message.
+func (s *Session) ChannelMessagePin(channelID, messageID string) (err error) {
+
+ _, err = s.RequestWithBucketID("PUT", EndpointChannelMessagePin(channelID, messageID), nil, EndpointChannelMessagePin(channelID, ""))
+ return
+}
+
+// ChannelMessageUnpin unpins a message within a given channel.
+// channelID: The ID of a channel.
+// messageID: The ID of a message.
+func (s *Session) ChannelMessageUnpin(channelID, messageID string) (err error) {
+
+ _, err = s.RequestWithBucketID("DELETE", EndpointChannelMessagePin(channelID, messageID), nil, EndpointChannelMessagePin(channelID, ""))
+ return
+}
+
+// ChannelMessagesPinned returns an array of Message structures for pinned messages
+// within a given channel
+// channelID : The ID of a Channel.
+func (s *Session) ChannelMessagesPinned(channelID string) (st []*Message, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointChannelMessagesPins(channelID), nil, EndpointChannelMessagesPins(channelID))
+
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// ChannelFileSend sends a file to the given channel.
+// channelID : The ID of a Channel.
+// name: The name of the file.
+// io.Reader : A reader for the file contents.
+func (s *Session) ChannelFileSend(channelID, name string, r io.Reader) (*Message, error) {
+ return s.ChannelMessageSendComplex(channelID, &MessageSend{File: &File{Name: name, Reader: r}})
+}
+
+// ChannelFileSendWithMessage sends a file to the given channel with an message.
+// DEPRECATED. Use ChannelMessageSendComplex instead.
+// channelID : The ID of a Channel.
+// content: Optional Message content.
+// name: The name of the file.
+// io.Reader : A reader for the file contents.
+func (s *Session) ChannelFileSendWithMessage(channelID, content string, name string, r io.Reader) (*Message, error) {
+ return s.ChannelMessageSendComplex(channelID, &MessageSend{File: &File{Name: name, Reader: r}, Content: content})
+}
+
+// ChannelInvites returns an array of Invite structures for the given channel
+// channelID : The ID of a Channel
+func (s *Session) ChannelInvites(channelID string) (st []*Invite, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointChannelInvites(channelID), nil, EndpointChannelInvites(channelID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// ChannelInviteCreate creates a new invite for the given channel.
+// channelID : The ID of a Channel
+// i : An Invite struct with the values MaxAge, MaxUses and Temporary defined.
+func (s *Session) ChannelInviteCreate(channelID string, i Invite) (st *Invite, err error) {
+
+ data := struct {
+ MaxAge int `json:"max_age"`
+ MaxUses int `json:"max_uses"`
+ Temporary bool `json:"temporary"`
+ Unique bool `json:"unique"`
+ }{i.MaxAge, i.MaxUses, i.Temporary, i.Unique}
+
+ body, err := s.RequestWithBucketID("POST", EndpointChannelInvites(channelID), data, EndpointChannelInvites(channelID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// ChannelPermissionSet creates a Permission Override for the given channel.
+// NOTE: This func name may changed. Using Set instead of Create because
+// you can both create a new override or update an override with this function.
+func (s *Session) ChannelPermissionSet(channelID, targetID, targetType string, allow, deny int) (err error) {
+
+ data := struct {
+ ID string `json:"id"`
+ Type string `json:"type"`
+ Allow int `json:"allow"`
+ Deny int `json:"deny"`
+ }{targetID, targetType, allow, deny}
+
+ _, err = s.RequestWithBucketID("PUT", EndpointChannelPermission(channelID, targetID), data, EndpointChannelPermission(channelID, ""))
+ return
+}
+
+// ChannelPermissionDelete deletes a specific permission override for the given channel.
+// NOTE: Name of this func may change.
+func (s *Session) ChannelPermissionDelete(channelID, targetID string) (err error) {
+
+ _, err = s.RequestWithBucketID("DELETE", EndpointChannelPermission(channelID, targetID), nil, EndpointChannelPermission(channelID, ""))
+ return
+}
+
+// ------------------------------------------------------------------------------------------------
+// Functions specific to Discord Invites
+// ------------------------------------------------------------------------------------------------
+
+// Invite returns an Invite structure of the given invite
+// inviteID : The invite code
+func (s *Session) Invite(inviteID string) (st *Invite, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointInvite(inviteID), nil, EndpointInvite(""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// InviteWithCounts returns an Invite structure of the given invite including approximate member counts
+// inviteID : The invite code
+func (s *Session) InviteWithCounts(inviteID string) (st *Invite, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointInvite(inviteID)+"?with_counts=true", nil, EndpointInvite(""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// InviteDelete deletes an existing invite
+// inviteID : the code of an invite
+func (s *Session) InviteDelete(inviteID string) (st *Invite, err error) {
+
+ body, err := s.RequestWithBucketID("DELETE", EndpointInvite(inviteID), nil, EndpointInvite(""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// InviteAccept accepts an Invite to a Guild or Channel
+// inviteID : The invite code
+func (s *Session) InviteAccept(inviteID string) (st *Invite, err error) {
+
+ body, err := s.RequestWithBucketID("POST", EndpointInvite(inviteID), nil, EndpointInvite(""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// ------------------------------------------------------------------------------------------------
+// Functions specific to Discord Voice
+// ------------------------------------------------------------------------------------------------
+
+// VoiceRegions returns the voice server regions
+func (s *Session) VoiceRegions() (st []*VoiceRegion, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointVoiceRegions, nil, EndpointVoiceRegions)
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// VoiceICE returns the voice server ICE information
+func (s *Session) VoiceICE() (st *VoiceICE, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointVoiceIce, nil, EndpointVoiceIce)
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// ------------------------------------------------------------------------------------------------
+// Functions specific to Discord Websockets
+// ------------------------------------------------------------------------------------------------
+
+// Gateway returns the websocket Gateway address
+func (s *Session) Gateway() (gateway string, err error) {
+
+ response, err := s.RequestWithBucketID("GET", EndpointGateway, nil, EndpointGateway)
+ if err != nil {
+ return
+ }
+
+ temp := struct {
+ URL string `json:"url"`
+ }{}
+
+ err = unmarshal(response, &temp)
+ if err != nil {
+ return
+ }
+
+ gateway = temp.URL
+
+ // Ensure the gateway always has a trailing slash.
+ // MacOS will fail to connect if we add query params without a trailing slash on the base domain.
+ if !strings.HasSuffix(gateway, "/") {
+ gateway += "/"
+ }
+
+ return
+}
+
+// GatewayBot returns the websocket Gateway address and the recommended number of shards
+func (s *Session) GatewayBot() (st *GatewayBotResponse, err error) {
+
+ response, err := s.RequestWithBucketID("GET", EndpointGatewayBot, nil, EndpointGatewayBot)
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(response, &st)
+ if err != nil {
+ return
+ }
+
+ // Ensure the gateway always has a trailing slash.
+ // MacOS will fail to connect if we add query params without a trailing slash on the base domain.
+ if !strings.HasSuffix(st.URL, "/") {
+ st.URL += "/"
+ }
+
+ return
+}
+
+// Functions specific to Webhooks
+
+// WebhookCreate returns a new Webhook.
+// channelID: The ID of a Channel.
+// name : The name of the webhook.
+// avatar : The avatar of the webhook.
+func (s *Session) WebhookCreate(channelID, name, avatar string) (st *Webhook, err error) {
+
+ data := struct {
+ Name string `json:"name"`
+ Avatar string `json:"avatar,omitempty"`
+ }{name, avatar}
+
+ body, err := s.RequestWithBucketID("POST", EndpointChannelWebhooks(channelID), data, EndpointChannelWebhooks(channelID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+
+ return
+}
+
+// ChannelWebhooks returns all webhooks for a given channel.
+// channelID: The ID of a channel.
+func (s *Session) ChannelWebhooks(channelID string) (st []*Webhook, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointChannelWebhooks(channelID), nil, EndpointChannelWebhooks(channelID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+
+ return
+}
+
+// GuildWebhooks returns all webhooks for a given guild.
+// guildID: The ID of a Guild.
+func (s *Session) GuildWebhooks(guildID string) (st []*Webhook, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointGuildWebhooks(guildID), nil, EndpointGuildWebhooks(guildID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+
+ return
+}
+
+// Webhook returns a webhook for a given ID
+// webhookID: The ID of a webhook.
+func (s *Session) Webhook(webhookID string) (st *Webhook, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointWebhook(webhookID), nil, EndpointWebhooks)
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+
+ return
+}
+
+// WebhookWithToken returns a webhook for a given ID
+// webhookID: The ID of a webhook.
+// token : The auth token for the webhook.
+func (s *Session) WebhookWithToken(webhookID, token string) (st *Webhook, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointWebhookToken(webhookID, token), nil, EndpointWebhookToken("", ""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+
+ return
+}
+
+// WebhookEdit updates an existing Webhook.
+// webhookID: The ID of a webhook.
+// name : The name of the webhook.
+// avatar : The avatar of the webhook.
+func (s *Session) WebhookEdit(webhookID, name, avatar, channelID string) (st *Role, err error) {
+
+ data := struct {
+ Name string `json:"name,omitempty"`
+ Avatar string `json:"avatar,omitempty"`
+ ChannelID string `json:"channel_id,omitempty"`
+ }{name, avatar, channelID}
+
+ body, err := s.RequestWithBucketID("PATCH", EndpointWebhook(webhookID), data, EndpointWebhooks)
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+
+ return
+}
+
+// WebhookEditWithToken updates an existing Webhook with an auth token.
+// webhookID: The ID of a webhook.
+// token : The auth token for the webhook.
+// name : The name of the webhook.
+// avatar : The avatar of the webhook.
+func (s *Session) WebhookEditWithToken(webhookID, token, name, avatar string) (st *Role, err error) {
+
+ data := struct {
+ Name string `json:"name,omitempty"`
+ Avatar string `json:"avatar,omitempty"`
+ }{name, avatar}
+
+ body, err := s.RequestWithBucketID("PATCH", EndpointWebhookToken(webhookID, token), data, EndpointWebhookToken("", ""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+
+ return
+}
+
+// WebhookDelete deletes a webhook for a given ID
+// webhookID: The ID of a webhook.
+func (s *Session) WebhookDelete(webhookID string) (err error) {
+
+ _, err = s.RequestWithBucketID("DELETE", EndpointWebhook(webhookID), nil, EndpointWebhooks)
+
+ return
+}
+
+// WebhookDeleteWithToken deletes a webhook for a given ID with an auth token.
+// webhookID: The ID of a webhook.
+// token : The auth token for the webhook.
+func (s *Session) WebhookDeleteWithToken(webhookID, token string) (st *Webhook, err error) {
+
+ body, err := s.RequestWithBucketID("DELETE", EndpointWebhookToken(webhookID, token), nil, EndpointWebhookToken("", ""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+
+ return
+}
+
+// WebhookExecute executes a webhook.
+// webhookID: The ID of a webhook.
+// token : The auth token for the webhook
+// wait : Waits for server confirmation of message send and ensures that the return struct is populated (it is nil otherwise)
+//
+// If `wait` is `false`, the returned *Message is always empty, because server
+// does not provide the response data.
+func (s *Session) WebhookExecute(webhookID, token string, wait bool, data *WebhookParams) (st *Message, err error) {
+ uri := EndpointWebhookToken(webhookID, token)
+
+ if wait {
+ uri += "?wait=true"
+ }
+
+ var response []byte
+ if data.File != nil {
+ body := &bytes.Buffer{}
+ bodywriter := multipart.NewWriter(body)
+
+ var payload []byte
+ payload, err = json.Marshal(data)
+ if err != nil {
+ return
+ }
+
+ var p io.Writer
+
+ h := make(textproto.MIMEHeader)
+ h.Set("Content-Disposition", `form-data; name="payload_json"`)
+ h.Set("Content-Type", "application/json")
+
+ p, err = bodywriter.CreatePart(h)
+ if err != nil {
+ return
+ }
+
+ if _, err = p.Write(payload); err != nil {
+ return
+ }
+
+ {
+ file := data.File
+ h := make(textproto.MIMEHeader)
+ h.Set("Content-Disposition", fmt.Sprintf(`form-data; name="file"; filename="%s"`, quoteEscaper.Replace(file.Name)))
+ contentType := file.ContentType
+ if contentType == "" {
+ contentType = "application/octet-stream"
+ }
+ h.Set("Content-Type", contentType)
+
+ p, err = bodywriter.CreatePart(h)
+ if err != nil {
+ return
+ }
+
+ if _, err = io.Copy(p, file.Reader); err != nil {
+ return
+ }
+ }
+
+ err = bodywriter.Close()
+ if err != nil {
+ return
+ }
+
+ response, err = s.request("POST", uri, bodywriter.FormDataContentType(), body.Bytes(), EndpointWebhookToken("", ""), 0)
+ } else {
+ response, err = s.RequestWithBucketID("POST", uri, data, EndpointWebhookToken("", ""))
+ }
+ if err != nil {
+ return
+ }
+ if !wait {
+ return
+ }
+
+ err = unmarshal(response, &st)
+ return
+}
+
+// MessageReactionAdd creates an emoji reaction to a message.
+// channelID : The channel ID.
+// messageID : The message ID.
+// emojiID : Either the unicode emoji for the reaction, or a guild emoji identifier.
+func (s *Session) MessageReactionAdd(channelID, messageID, emojiID string) error {
+
+ // emoji such as #⃣ need to have # escaped
+ emojiID = strings.Replace(emojiID, "#", "%23", -1)
+ _, err := s.RequestWithBucketID("PUT", EndpointMessageReaction(channelID, messageID, emojiID, "@me"), nil, EndpointMessageReaction(channelID, "", "", ""))
+
+ return err
+}
+
+// MessageReactionRemove deletes an emoji reaction to a message.
+// channelID : The channel ID.
+// messageID : The message ID.
+// emojiID : Either the unicode emoji for the reaction, or a guild emoji identifier.
+// userID : @me or ID of the user to delete the reaction for.
+func (s *Session) MessageReactionRemove(channelID, messageID, emojiID, userID string) error {
+
+ // emoji such as #⃣ need to have # escaped
+ emojiID = strings.Replace(emojiID, "#", "%23", -1)
+ _, err := s.RequestWithBucketID("DELETE", EndpointMessageReaction(channelID, messageID, emojiID, userID), nil, EndpointMessageReaction(channelID, "", "", ""))
+
+ return err
+}
+
+// MessageReactionsRemoveAll deletes all reactions from a message
+// channelID : The channel ID
+// messageID : The message ID.
+func (s *Session) MessageReactionsRemoveAll(channelID, messageID string) error {
+
+ _, err := s.RequestWithBucketID("DELETE", EndpointMessageReactionsAll(channelID, messageID), nil, EndpointMessageReactionsAll(channelID, messageID))
+
+ return err
+}
+
+// MessageReactions gets all the users reactions for a specific emoji.
+// channelID : The channel ID.
+// messageID : The message ID.
+// emojiID : Either the unicode emoji for the reaction, or a guild emoji identifier.
+// limit : max number of users to return (max 100)
+func (s *Session) MessageReactions(channelID, messageID, emojiID string, limit int) (st []*User, err error) {
+ // emoji such as #⃣ need to have # escaped
+ emojiID = strings.Replace(emojiID, "#", "%23", -1)
+ uri := EndpointMessageReactions(channelID, messageID, emojiID)
+
+ v := url.Values{}
+
+ if limit > 0 {
+ v.Set("limit", strconv.Itoa(limit))
+ }
+
+ if len(v) > 0 {
+ uri += "?" + v.Encode()
+ }
+
+ body, err := s.RequestWithBucketID("GET", uri, nil, EndpointMessageReaction(channelID, "", "", ""))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &st)
+ return
+}
+
+// ------------------------------------------------------------------------------------------------
+// Functions specific to user notes
+// ------------------------------------------------------------------------------------------------
+
+// UserNoteSet sets the note for a specific user.
+func (s *Session) UserNoteSet(userID string, message string) (err error) {
+ data := struct {
+ Note string `json:"note"`
+ }{message}
+
+ _, err = s.RequestWithBucketID("PUT", EndpointUserNotes(userID), data, EndpointUserNotes(""))
+ return
+}
+
+// ------------------------------------------------------------------------------------------------
+// Functions specific to Discord Relationships (Friends list)
+// ------------------------------------------------------------------------------------------------
+
+// RelationshipsGet returns an array of all the relationships of the user.
+func (s *Session) RelationshipsGet() (r []*Relationship, err error) {
+ body, err := s.RequestWithBucketID("GET", EndpointRelationships(), nil, EndpointRelationships())
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &r)
+ return
+}
+
+// relationshipCreate creates a new relationship. (I.e. send or accept a friend request, block a user.)
+// relationshipType : 1 = friend, 2 = blocked, 3 = incoming friend req, 4 = sent friend req
+func (s *Session) relationshipCreate(userID string, relationshipType int) (err error) {
+ data := struct {
+ Type int `json:"type"`
+ }{relationshipType}
+
+ _, err = s.RequestWithBucketID("PUT", EndpointRelationship(userID), data, EndpointRelationships())
+ return
+}
+
+// RelationshipFriendRequestSend sends a friend request to a user.
+// userID: ID of the user.
+func (s *Session) RelationshipFriendRequestSend(userID string) (err error) {
+ err = s.relationshipCreate(userID, 4)
+ return
+}
+
+// RelationshipFriendRequestAccept accepts a friend request from a user.
+// userID: ID of the user.
+func (s *Session) RelationshipFriendRequestAccept(userID string) (err error) {
+ err = s.relationshipCreate(userID, 1)
+ return
+}
+
+// RelationshipUserBlock blocks a user.
+// userID: ID of the user.
+func (s *Session) RelationshipUserBlock(userID string) (err error) {
+ err = s.relationshipCreate(userID, 2)
+ return
+}
+
+// RelationshipDelete removes the relationship with a user.
+// userID: ID of the user.
+func (s *Session) RelationshipDelete(userID string) (err error) {
+ _, err = s.RequestWithBucketID("DELETE", EndpointRelationship(userID), nil, EndpointRelationships())
+ return
+}
+
+// RelationshipsMutualGet returns an array of all the users both @me and the given user is friends with.
+// userID: ID of the user.
+func (s *Session) RelationshipsMutualGet(userID string) (mf []*User, err error) {
+ body, err := s.RequestWithBucketID("GET", EndpointRelationshipsMutual(userID), nil, EndpointRelationshipsMutual(userID))
+ if err != nil {
+ return
+ }
+
+ err = unmarshal(body, &mf)
+ return
+}
diff --git a/vendor/github.com/matterbridge/discordgo/state.go b/vendor/github.com/matterbridge/discordgo/state.go
new file mode 100644
index 00000000..7babc115
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/state.go
@@ -0,0 +1,1022 @@
+// Discordgo - Discord bindings for Go
+// Available at https://github.com/bwmarrin/discordgo
+
+// Copyright 2015-2016 Bruce Marriner <bruce@sqls.net>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file contains code related to state tracking. If enabled, state
+// tracking will capture the initial READY packet and many other websocket
+// events and maintain an in-memory state of of guilds, channels, users, and
+// so forth. This information can be accessed through the Session.State struct.
+
+package discordgo
+
+import (
+ "errors"
+ "sort"
+ "sync"
+)
+
+// ErrNilState is returned when the state is nil.
+var ErrNilState = errors.New("state not instantiated, please use discordgo.New() or assign Session.State")
+
+// ErrStateNotFound is returned when the state cache
+// requested is not found
+var ErrStateNotFound = errors.New("state cache not found")
+
+// A State contains the current known state.
+// As discord sends this in a READY blob, it seems reasonable to simply
+// use that struct as the data store.
+type State struct {
+ sync.RWMutex
+ Ready
+
+ // MaxMessageCount represents how many messages per channel the state will store.
+ MaxMessageCount int
+ TrackChannels bool
+ TrackEmojis bool
+ TrackMembers bool
+ TrackRoles bool
+ TrackVoice bool
+ TrackPresences bool
+
+ guildMap map[string]*Guild
+ channelMap map[string]*Channel
+ memberMap map[string]map[string]*Member
+}
+
+// NewState creates an empty state.
+func NewState() *State {
+ return &State{
+ Ready: Ready{
+ PrivateChannels: []*Channel{},
+ Guilds: []*Guild{},
+ },
+ TrackChannels: true,
+ TrackEmojis: true,
+ TrackMembers: true,
+ TrackRoles: true,
+ TrackVoice: true,
+ TrackPresences: true,
+ guildMap: make(map[string]*Guild),
+ channelMap: make(map[string]*Channel),
+ memberMap: make(map[string]map[string]*Member),
+ }
+}
+
+func (s *State) createMemberMap(guild *Guild) {
+ members := make(map[string]*Member)
+ for _, m := range guild.Members {
+ members[m.User.ID] = m
+ }
+ s.memberMap[guild.ID] = members
+}
+
+// GuildAdd adds a guild to the current world state, or
+// updates it if it already exists.
+func (s *State) GuildAdd(guild *Guild) error {
+ if s == nil {
+ return ErrNilState
+ }
+
+ s.Lock()
+ defer s.Unlock()
+
+ // Update the channels to point to the right guild, adding them to the channelMap as we go
+ for _, c := range guild.Channels {
+ s.channelMap[c.ID] = c
+ }
+
+ // If this guild contains a new member slice, we must regenerate the member map so the pointers stay valid
+ if guild.Members != nil {
+ s.createMemberMap(guild)
+ } else if _, ok := s.memberMap[guild.ID]; !ok {
+ // Even if we have no new member slice, we still initialize the member map for this guild if it doesn't exist
+ s.memberMap[guild.ID] = make(map[string]*Member)
+ }
+
+ if g, ok := s.guildMap[guild.ID]; ok {
+ // We are about to replace `g` in the state with `guild`, but first we need to
+ // make sure we preserve any fields that the `guild` doesn't contain from `g`.
+ if guild.MemberCount == 0 {
+ guild.MemberCount = g.MemberCount
+ }
+ if guild.Roles == nil {
+ guild.Roles = g.Roles
+ }
+ if guild.Emojis == nil {
+ guild.Emojis = g.Emojis
+ }
+ if guild.Members == nil {
+ guild.Members = g.Members
+ }
+ if guild.Presences == nil {
+ guild.Presences = g.Presences
+ }
+ if guild.Channels == nil {
+ guild.Channels = g.Channels
+ }
+ if guild.VoiceStates == nil {
+ guild.VoiceStates = g.VoiceStates
+ }
+ *g = *guild
+ return nil
+ }
+
+ s.Guilds = append(s.Guilds, guild)
+ s.guildMap[guild.ID] = guild
+
+ return nil
+}
+
+// GuildRemove removes a guild from current world state.
+func (s *State) GuildRemove(guild *Guild) error {
+ if s == nil {
+ return ErrNilState
+ }
+
+ _, err := s.Guild(guild.ID)
+ if err != nil {
+ return err
+ }
+
+ s.Lock()
+ defer s.Unlock()
+
+ delete(s.guildMap, guild.ID)
+
+ for i, g := range s.Guilds {
+ if g.ID == guild.ID {
+ s.Guilds = append(s.Guilds[:i], s.Guilds[i+1:]...)
+ return nil
+ }
+ }
+
+ return nil
+}
+
+// Guild gets a guild by ID.
+// Useful for querying if @me is in a guild:
+// _, err := discordgo.Session.State.Guild(guildID)
+// isInGuild := err == nil
+func (s *State) Guild(guildID string) (*Guild, error) {
+ if s == nil {
+ return nil, ErrNilState
+ }
+
+ s.RLock()
+ defer s.RUnlock()
+
+ if g, ok := s.guildMap[guildID]; ok {
+ return g, nil
+ }
+
+ return nil, ErrStateNotFound
+}
+
+// PresenceAdd adds a presence to the current world state, or
+// updates it if it already exists.
+func (s *State) PresenceAdd(guildID string, presence *Presence) error {
+ if s == nil {
+ return ErrNilState
+ }
+
+ guild, err := s.Guild(guildID)
+ if err != nil {
+ return err
+ }
+
+ s.Lock()
+ defer s.Unlock()
+
+ for i, p := range guild.Presences {
+ if p.User.ID == presence.User.ID {
+ //guild.Presences[i] = presence
+
+ //Update status
+ guild.Presences[i].Game = presence.Game
+ guild.Presences[i].Roles = presence.Roles
+ if presence.Status != "" {
+ guild.Presences[i].Status = presence.Status
+ }
+ if presence.Nick != "" {
+ guild.Presences[i].Nick = presence.Nick
+ }
+
+ //Update the optionally sent user information
+ //ID Is a mandatory field so you should not need to check if it is empty
+ guild.Presences[i].User.ID = presence.User.ID
+
+ if presence.User.Avatar != "" {
+ guild.Presences[i].User.Avatar = presence.User.Avatar
+ }
+ if presence.User.Discriminator != "" {
+ guild.Presences[i].User.Discriminator = presence.User.Discriminator
+ }
+ if presence.User.Email != "" {
+ guild.Presences[i].User.Email = presence.User.Email
+ }
+ if presence.User.Token != "" {
+ guild.Presences[i].User.Token = presence.User.Token
+ }
+ if presence.User.Username != "" {
+ guild.Presences[i].User.Username = presence.User.Username
+ }
+
+ return nil
+ }
+ }
+
+ guild.Presences = append(guild.Presences, presence)
+ return nil
+}
+
+// PresenceRemove removes a presence from the current world state.
+func (s *State) PresenceRemove(guildID string, presence *Presence) error {
+ if s == nil {
+ return ErrNilState
+ }
+
+ guild, err := s.Guild(guildID)
+ if err != nil {
+ return err
+ }
+
+ s.Lock()
+ defer s.Unlock()
+
+ for i, p := range guild.Presences {
+ if p.User.ID == presence.User.ID {
+ guild.Presences = append(guild.Presences[:i], guild.Presences[i+1:]...)
+ return nil
+ }
+ }
+
+ return ErrStateNotFound
+}
+
+// Presence gets a presence by ID from a guild.
+func (s *State) Presence(guildID, userID string) (*Presence, error) {
+ if s == nil {
+ return nil, ErrNilState
+ }
+
+ guild, err := s.Guild(guildID)
+ if err != nil {
+ return nil, err
+ }
+
+ for _, p := range guild.Presences {
+ if p.User.ID == userID {
+ return p, nil
+ }
+ }
+
+ return nil, ErrStateNotFound
+}
+
+// TODO: Consider moving Guild state update methods onto *Guild.
+
+// MemberAdd adds a member to the current world state, or
+// updates it if it already exists.
+func (s *State) MemberAdd(member *Member) error {
+ if s == nil {
+ return ErrNilState
+ }
+
+ guild, err := s.Guild(member.GuildID)
+ if err != nil {
+ return err
+ }
+
+ s.Lock()
+ defer s.Unlock()
+
+ members, ok := s.memberMap[member.GuildID]
+ if !ok {
+ return ErrStateNotFound
+ }
+
+ m, ok := members[member.User.ID]
+ if !ok {
+ members[member.User.ID] = member
+ guild.Members = append(guild.Members, member)
+ } else {
+ // We are about to replace `m` in the state with `member`, but first we need to
+ // make sure we preserve any fields that the `member` doesn't contain from `m`.
+ if member.JoinedAt == "" {
+ member.JoinedAt = m.JoinedAt
+ }
+ *m = *member
+ }
+
+ return nil
+}
+
+// MemberRemove removes a member from current world state.
+func (s *State) MemberRemove(member *Member) error {
+ if s == nil {
+ return ErrNilState
+ }
+
+ guild, err := s.Guild(member.GuildID)
+ if err != nil {
+ return err
+ }
+
+ s.Lock()
+ defer s.Unlock()
+
+ members, ok := s.memberMap[member.GuildID]
+ if !ok {
+ return ErrStateNotFound
+ }
+
+ _, ok = members[member.User.ID]
+ if !ok {
+ return ErrStateNotFound
+ }
+ delete(members, member.User.ID)
+
+ for i, m := range guild.Members {
+ if m.User.ID == member.User.ID {
+ guild.Members = append(guild.Members[:i], guild.Members[i+1:]...)
+ return nil
+ }
+ }
+
+ return ErrStateNotFound
+}
+
+// Member gets a member by ID from a guild.
+func (s *State) Member(guildID, userID string) (*Member, error) {
+ if s == nil {
+ return nil, ErrNilState
+ }
+
+ s.RLock()
+ defer s.RUnlock()
+
+ members, ok := s.memberMap[guildID]
+ if !ok {
+ return nil, ErrStateNotFound
+ }
+
+ m, ok := members[userID]
+ if ok {
+ return m, nil
+ }
+
+ return nil, ErrStateNotFound
+}
+
+// RoleAdd adds a role to the current world state, or
+// updates it if it already exists.
+func (s *State) RoleAdd(guildID string, role *Role) error {
+ if s == nil {
+ return ErrNilState
+ }
+
+ guild, err := s.Guild(guildID)
+ if err != nil {
+ return err
+ }
+
+ s.Lock()
+ defer s.Unlock()
+
+ for i, r := range guild.Roles {
+ if r.ID == role.ID {
+ guild.Roles[i] = role
+ return nil
+ }
+ }
+
+ guild.Roles = append(guild.Roles, role)
+ return nil
+}
+
+// RoleRemove removes a role from current world state by ID.
+func (s *State) RoleRemove(guildID, roleID string) error {
+ if s == nil {
+ return ErrNilState
+ }
+
+ guild, err := s.Guild(guildID)
+ if err != nil {
+ return err
+ }
+
+ s.Lock()
+ defer s.Unlock()
+
+ for i, r := range guild.Roles {
+ if r.ID == roleID {
+ guild.Roles = append(guild.Roles[:i], guild.Roles[i+1:]...)
+ return nil
+ }
+ }
+
+ return ErrStateNotFound
+}
+
+// Role gets a role by ID from a guild.
+func (s *State) Role(guildID, roleID string) (*Role, error) {
+ if s == nil {
+ return nil, ErrNilState
+ }
+
+ guild, err := s.Guild(guildID)
+ if err != nil {
+ return nil, err
+ }
+
+ s.RLock()
+ defer s.RUnlock()
+
+ for _, r := range guild.Roles {
+ if r.ID == roleID {
+ return r, nil
+ }
+ }
+
+ return nil, ErrStateNotFound
+}
+
+// ChannelAdd adds a channel to the current world state, or
+// updates it if it already exists.
+// Channels may exist either as PrivateChannels or inside
+// a guild.
+func (s *State) ChannelAdd(channel *Channel) error {
+ if s == nil {
+ return ErrNilState
+ }
+
+ s.Lock()
+ defer s.Unlock()
+
+ // If the channel exists, replace it
+ if c, ok := s.channelMap[channel.ID]; ok {
+ if channel.Messages == nil {
+ channel.Messages = c.Messages
+ }
+ if channel.PermissionOverwrites == nil {
+ channel.PermissionOverwrites = c.PermissionOverwrites
+ }
+
+ *c = *channel
+ return nil
+ }
+
+ if channel.Type == ChannelTypeDM || channel.Type == ChannelTypeGroupDM {
+ s.PrivateChannels = append(s.PrivateChannels, channel)
+ } else {
+ guild, ok := s.guildMap[channel.GuildID]
+ if !ok {
+ return ErrStateNotFound
+ }
+
+ guild.Channels = append(guild.Channels, channel)
+ }
+
+ s.channelMap[channel.ID] = channel
+
+ return nil
+}
+
+// ChannelRemove removes a channel from current world state.
+func (s *State) ChannelRemove(channel *Channel) error {
+ if s == nil {
+ return ErrNilState
+ }
+
+ _, err := s.Channel(channel.ID)
+ if err != nil {
+ return err
+ }
+
+ if channel.Type == ChannelTypeDM || channel.Type == ChannelTypeGroupDM {
+ s.Lock()
+ defer s.Unlock()
+
+ for i, c := range s.PrivateChannels {
+ if c.ID == channel.ID {
+ s.PrivateChannels = append(s.PrivateChannels[:i], s.PrivateChannels[i+1:]...)
+ break
+ }
+ }
+ } else {
+ guild, err := s.Guild(channel.GuildID)
+ if err != nil {
+ return err
+ }
+
+ s.Lock()
+ defer s.Unlock()
+
+ for i, c := range guild.Channels {
+ if c.ID == channel.ID {
+ guild.Channels = append(guild.Channels[:i], guild.Channels[i+1:]...)
+ break
+ }
+ }
+ }
+
+ delete(s.channelMap, channel.ID)
+
+ return nil
+}
+
+// GuildChannel gets a channel by ID from a guild.
+// This method is Deprecated, use Channel(channelID)
+func (s *State) GuildChannel(guildID, channelID string) (*Channel, error) {
+ return s.Channel(channelID)
+}
+
+// PrivateChannel gets a private channel by ID.
+// This method is Deprecated, use Channel(channelID)
+func (s *State) PrivateChannel(channelID string) (*Channel, error) {
+ return s.Channel(channelID)
+}
+
+// Channel gets a channel by ID, it will look in all guilds and private channels.
+func (s *State) Channel(channelID string) (*Channel, error) {
+ if s == nil {
+ return nil, ErrNilState
+ }
+
+ s.RLock()
+ defer s.RUnlock()
+
+ if c, ok := s.channelMap[channelID]; ok {
+ return c, nil
+ }
+
+ return nil, ErrStateNotFound
+}
+
+// Emoji returns an emoji for a guild and emoji id.
+func (s *State) Emoji(guildID, emojiID string) (*Emoji, error) {
+ if s == nil {
+ return nil, ErrNilState
+ }
+
+ guild, err := s.Guild(guildID)
+ if err != nil {
+ return nil, err
+ }
+
+ s.RLock()
+ defer s.RUnlock()
+
+ for _, e := range guild.Emojis {
+ if e.ID == emojiID {
+ return e, nil
+ }
+ }
+
+ return nil, ErrStateNotFound
+}
+
+// EmojiAdd adds an emoji to the current world state.
+func (s *State) EmojiAdd(guildID string, emoji *Emoji) error {
+ if s == nil {
+ return ErrNilState
+ }
+
+ guild, err := s.Guild(guildID)
+ if err != nil {
+ return err
+ }
+
+ s.Lock()
+ defer s.Unlock()
+
+ for i, e := range guild.Emojis {
+ if e.ID == emoji.ID {
+ guild.Emojis[i] = emoji
+ return nil
+ }
+ }
+
+ guild.Emojis = append(guild.Emojis, emoji)
+ return nil
+}
+
+// EmojisAdd adds multiple emojis to the world state.
+func (s *State) EmojisAdd(guildID string, emojis []*Emoji) error {
+ for _, e := range emojis {
+ if err := s.EmojiAdd(guildID, e); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+// MessageAdd adds a message to the current world state, or updates it if it exists.
+// If the channel cannot be found, the message is discarded.
+// Messages are kept in state up to s.MaxMessageCount per channel.
+func (s *State) MessageAdd(message *Message) error {
+ if s == nil {
+ return ErrNilState
+ }
+
+ c, err := s.Channel(message.ChannelID)
+ if err != nil {
+ return err
+ }
+
+ s.Lock()
+ defer s.Unlock()
+
+ // If the message exists, merge in the new message contents.
+ for _, m := range c.Messages {
+ if m.ID == message.ID {
+ if message.Content != "" {
+ m.Content = message.Content
+ }
+ if message.EditedTimestamp != "" {
+ m.EditedTimestamp = message.EditedTimestamp
+ }
+ if message.Mentions != nil {
+ m.Mentions = message.Mentions
+ }
+ if message.Embeds != nil {
+ m.Embeds = message.Embeds
+ }
+ if message.Attachments != nil {
+ m.Attachments = message.Attachments
+ }
+ if message.Timestamp != "" {
+ m.Timestamp = message.Timestamp
+ }
+ if message.Author != nil {
+ m.Author = message.Author
+ }
+
+ return nil
+ }
+ }
+
+ c.Messages = append(c.Messages, message)
+
+ if len(c.Messages) > s.MaxMessageCount {
+ c.Messages = c.Messages[len(c.Messages)-s.MaxMessageCount:]
+ }
+ return nil
+}
+
+// MessageRemove removes a message from the world state.
+func (s *State) MessageRemove(message *Message) error {
+ if s == nil {
+ return ErrNilState
+ }
+
+ return s.messageRemoveByID(message.ChannelID, message.ID)
+}
+
+// messageRemoveByID removes a message by channelID and messageID from the world state.
+func (s *State) messageRemoveByID(channelID, messageID string) error {
+ c, err := s.Channel(channelID)
+ if err != nil {
+ return err
+ }
+
+ s.Lock()
+ defer s.Unlock()
+
+ for i, m := range c.Messages {
+ if m.ID == messageID {
+ c.Messages = append(c.Messages[:i], c.Messages[i+1:]...)
+ return nil
+ }
+ }
+
+ return ErrStateNotFound
+}
+
+func (s *State) voiceStateUpdate(update *VoiceStateUpdate) error {
+ guild, err := s.Guild(update.GuildID)
+ if err != nil {
+ return err
+ }
+
+ s.Lock()
+ defer s.Unlock()
+
+ // Handle Leaving Channel
+ if update.ChannelID == "" {
+ for i, state := range guild.VoiceStates {
+ if state.UserID == update.UserID {
+ guild.VoiceStates = append(guild.VoiceStates[:i], guild.VoiceStates[i+1:]...)
+ return nil
+ }
+ }
+ } else {
+ for i, state := range guild.VoiceStates {
+ if state.UserID == update.UserID {
+ guild.VoiceStates[i] = update.VoiceState
+ return nil
+ }
+ }
+
+ guild.VoiceStates = append(guild.VoiceStates, update.VoiceState)
+ }
+
+ return nil
+}
+
+// Message gets a message by channel and message ID.
+func (s *State) Message(channelID, messageID string) (*Message, error) {
+ if s == nil {
+ return nil, ErrNilState
+ }
+
+ c, err := s.Channel(channelID)
+ if err != nil {
+ return nil, err
+ }
+
+ s.RLock()
+ defer s.RUnlock()
+
+ for _, m := range c.Messages {
+ if m.ID == messageID {
+ return m, nil
+ }
+ }
+
+ return nil, ErrStateNotFound
+}
+
+// OnReady takes a Ready event and updates all internal state.
+func (s *State) onReady(se *Session, r *Ready) (err error) {
+ if s == nil {
+ return ErrNilState
+ }
+
+ s.Lock()
+ defer s.Unlock()
+
+ // We must track at least the current user for Voice, even
+ // if state is disabled, store the bare essentials.
+ if !se.StateEnabled {
+ ready := Ready{
+ Version: r.Version,
+ SessionID: r.SessionID,
+ User: r.User,
+ }
+
+ s.Ready = ready
+
+ return nil
+ }
+
+ s.Ready = *r
+
+ for _, g := range s.Guilds {
+ s.guildMap[g.ID] = g
+ s.createMemberMap(g)
+
+ for _, c := range g.Channels {
+ s.channelMap[c.ID] = c
+ }
+ }
+
+ for _, c := range s.PrivateChannels {
+ s.channelMap[c.ID] = c
+ }
+
+ return nil
+}
+
+// OnInterface handles all events related to states.
+func (s *State) OnInterface(se *Session, i interface{}) (err error) {
+ if s == nil {
+ return ErrNilState
+ }
+
+ r, ok := i.(*Ready)
+ if ok {
+ return s.onReady(se, r)
+ }
+
+ if !se.StateEnabled {
+ return nil
+ }
+
+ switch t := i.(type) {
+ case *GuildCreate:
+ err = s.GuildAdd(t.Guild)
+ case *GuildUpdate:
+ err = s.GuildAdd(t.Guild)
+ case *GuildDelete:
+ err = s.GuildRemove(t.Guild)
+ case *GuildMemberAdd:
+ // Updates the MemberCount of the guild.
+ guild, err := s.Guild(t.Member.GuildID)
+ if err != nil {
+ return err
+ }
+ guild.MemberCount++
+
+ // Caches member if tracking is enabled.
+ if s.TrackMembers {
+ err = s.MemberAdd(t.Member)
+ }
+ case *GuildMemberUpdate:
+ if s.TrackMembers {
+ err = s.MemberAdd(t.Member)
+ }
+ case *GuildMemberRemove:
+ // Updates the MemberCount of the guild.
+ guild, err := s.Guild(t.Member.GuildID)
+ if err != nil {
+ return err
+ }
+ guild.MemberCount--
+
+ // Removes member from the cache if tracking is enabled.
+ if s.TrackMembers {
+ err = s.MemberRemove(t.Member)
+ }
+ case *GuildMembersChunk:
+ if s.TrackMembers {
+ for i := range t.Members {
+ t.Members[i].GuildID = t.GuildID
+ err = s.MemberAdd(t.Members[i])
+ }
+ }
+ case *GuildRoleCreate:
+ if s.TrackRoles {
+ err = s.RoleAdd(t.GuildID, t.Role)
+ }
+ case *GuildRoleUpdate:
+ if s.TrackRoles {
+ err = s.RoleAdd(t.GuildID, t.Role)
+ }
+ case *GuildRoleDelete:
+ if s.TrackRoles {
+ err = s.RoleRemove(t.GuildID, t.RoleID)
+ }
+ case *GuildEmojisUpdate:
+ if s.TrackEmojis {
+ err = s.EmojisAdd(t.GuildID, t.Emojis)
+ }
+ case *ChannelCreate:
+ if s.TrackChannels {
+ err = s.ChannelAdd(t.Channel)
+ }
+ case *ChannelUpdate:
+ if s.TrackChannels {
+ err = s.ChannelAdd(t.Channel)
+ }
+ case *ChannelDelete:
+ if s.TrackChannels {
+ err = s.ChannelRemove(t.Channel)
+ }
+ case *MessageCreate:
+ if s.MaxMessageCount != 0 {
+ err = s.MessageAdd(t.Message)
+ }
+ case *MessageUpdate:
+ if s.MaxMessageCount != 0 {
+ var old *Message
+ old, err = s.Message(t.ChannelID, t.ID)
+ if err == nil {
+ oldCopy := *old
+ t.BeforeUpdate = &oldCopy
+ }
+
+ err = s.MessageAdd(t.Message)
+ }
+ case *MessageDelete:
+ if s.MaxMessageCount != 0 {
+ err = s.MessageRemove(t.Message)
+ }
+ case *MessageDeleteBulk:
+ if s.MaxMessageCount != 0 {
+ for _, mID := range t.Messages {
+ s.messageRemoveByID(t.ChannelID, mID)
+ }
+ }
+ case *VoiceStateUpdate:
+ if s.TrackVoice {
+ err = s.voiceStateUpdate(t)
+ }
+ case *PresenceUpdate:
+ if s.TrackPresences {
+ s.PresenceAdd(t.GuildID, &t.Presence)
+ }
+ if s.TrackMembers {
+ if t.Status == StatusOffline {
+ return
+ }
+
+ var m *Member
+ m, err = s.Member(t.GuildID, t.User.ID)
+
+ if err != nil {
+ // Member not found; this is a user coming online
+ m = &Member{
+ GuildID: t.GuildID,
+ Nick: t.Nick,
+ User: t.User,
+ Roles: t.Roles,
+ }
+
+ } else {
+
+ if t.Nick != "" {
+ m.Nick = t.Nick
+ }
+
+ if t.User.Username != "" {
+ m.User.Username = t.User.Username
+ }
+
+ // PresenceUpdates always contain a list of roles, so there's no need to check for an empty list here
+ m.Roles = t.Roles
+
+ }
+
+ err = s.MemberAdd(m)
+ }
+
+ }
+
+ return
+}
+
+// UserChannelPermissions returns the permission of a user in a channel.
+// userID : The ID of the user to calculate permissions for.
+// channelID : The ID of the channel to calculate permission for.
+func (s *State) UserChannelPermissions(userID, channelID string) (apermissions int, err error) {
+ if s == nil {
+ return 0, ErrNilState
+ }
+
+ channel, err := s.Channel(channelID)
+ if err != nil {
+ return
+ }
+
+ guild, err := s.Guild(channel.GuildID)
+ if err != nil {
+ return
+ }
+
+ if userID == guild.OwnerID {
+ apermissions = PermissionAll
+ return
+ }
+
+ member, err := s.Member(guild.ID, userID)
+ if err != nil {
+ return
+ }
+
+ return memberPermissions(guild, channel, member), nil
+}
+
+// UserColor returns the color of a user in a channel.
+// While colors are defined at a Guild level, determining for a channel is more useful in message handlers.
+// 0 is returned in cases of error, which is the color of @everyone.
+// userID : The ID of the user to calculate the color for.
+// channelID : The ID of the channel to calculate the color for.
+func (s *State) UserColor(userID, channelID string) int {
+ if s == nil {
+ return 0
+ }
+
+ channel, err := s.Channel(channelID)
+ if err != nil {
+ return 0
+ }
+
+ guild, err := s.Guild(channel.GuildID)
+ if err != nil {
+ return 0
+ }
+
+ member, err := s.Member(guild.ID, userID)
+ if err != nil {
+ return 0
+ }
+
+ roles := Roles(guild.Roles)
+ sort.Sort(roles)
+
+ for _, role := range roles {
+ for _, roleID := range member.Roles {
+ if role.ID == roleID {
+ if role.Color != 0 {
+ return role.Color
+ }
+ }
+ }
+ }
+
+ return 0
+}
diff --git a/vendor/github.com/matterbridge/discordgo/structs.go b/vendor/github.com/matterbridge/discordgo/structs.go
new file mode 100644
index 00000000..b19d3a67
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/structs.go
@@ -0,0 +1,1039 @@
+// Discordgo - Discord bindings for Go
+// Available at https://github.com/bwmarrin/discordgo
+
+// Copyright 2015-2016 Bruce Marriner <bruce@sqls.net>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file contains all structures for the discordgo package. These
+// may be moved about later into separate files but I find it easier to have
+// them all located together.
+
+package discordgo
+
+import (
+ "encoding/json"
+ "fmt"
+ "net/http"
+ "strings"
+ "sync"
+ "time"
+
+ "github.com/gorilla/websocket"
+)
+
+// A Session represents a connection to the Discord API.
+type Session struct {
+ sync.RWMutex
+
+ // General configurable settings.
+
+ // Authentication token for this session
+ Token string
+ MFA bool
+
+ // Debug for printing JSON request/responses
+ Debug bool // Deprecated, will be removed.
+ LogLevel int
+
+ // Should the session reconnect the websocket on errors.
+ ShouldReconnectOnError bool
+
+ // Should the session request compressed websocket data.
+ Compress bool
+
+ // Sharding
+ ShardID int
+ ShardCount int
+
+ // Should state tracking be enabled.
+ // State tracking is the best way for getting the the users
+ // active guilds and the members of the guilds.
+ StateEnabled bool
+
+ // Whether or not to call event handlers synchronously.
+ // e.g false = launch event handlers in their own goroutines.
+ SyncEvents bool
+
+ // Exposed but should not be modified by User.
+
+ // Whether the Data Websocket is ready
+ DataReady bool // NOTE: Maye be deprecated soon
+
+ // Max number of REST API retries
+ MaxRestRetries int
+
+ // Status stores the currect status of the websocket connection
+ // this is being tested, may stay, may go away.
+ status int32
+
+ // Whether the Voice Websocket is ready
+ VoiceReady bool // NOTE: Deprecated.
+
+ // Whether the UDP Connection is ready
+ UDPReady bool // NOTE: Deprecated
+
+ // Stores a mapping of guild id's to VoiceConnections
+ VoiceConnections map[string]*VoiceConnection
+
+ // Managed state object, updated internally with events when
+ // StateEnabled is true.
+ State *State
+
+ // The http client used for REST requests
+ Client *http.Client
+
+ // The user agent used for REST APIs
+ UserAgent string
+
+ // Stores the last HeartbeatAck that was recieved (in UTC)
+ LastHeartbeatAck time.Time
+
+ // Stores the last Heartbeat sent (in UTC)
+ LastHeartbeatSent time.Time
+
+ // used to deal with rate limits
+ Ratelimiter *RateLimiter
+
+ // Event handlers
+ handlersMu sync.RWMutex
+ handlers map[string][]*eventHandlerInstance
+ onceHandlers map[string][]*eventHandlerInstance
+
+ // The websocket connection.
+ wsConn *websocket.Conn
+
+ // When nil, the session is not listening.
+ listening chan interface{}
+
+ // sequence tracks the current gateway api websocket sequence number
+ sequence *int64
+
+ // stores sessions current Discord Gateway
+ gateway string
+
+ // stores session ID of current Gateway connection
+ sessionID string
+
+ // used to make sure gateway websocket writes do not happen concurrently
+ wsMutex sync.Mutex
+}
+
+// UserConnection is a Connection returned from the UserConnections endpoint
+type UserConnection struct {
+ ID string `json:"id"`
+ Name string `json:"name"`
+ Type string `json:"type"`
+ Revoked bool `json:"revoked"`
+ Integrations []*Integration `json:"integrations"`
+}
+
+// Integration stores integration information
+type Integration struct {
+ ID string `json:"id"`
+ Name string `json:"name"`
+ Type string `json:"type"`
+ Enabled bool `json:"enabled"`
+ Syncing bool `json:"syncing"`
+ RoleID string `json:"role_id"`
+ ExpireBehavior int `json:"expire_behavior"`
+ ExpireGracePeriod int `json:"expire_grace_period"`
+ User *User `json:"user"`
+ Account IntegrationAccount `json:"account"`
+ SyncedAt Timestamp `json:"synced_at"`
+}
+
+// IntegrationAccount is integration account information
+// sent by the UserConnections endpoint
+type IntegrationAccount struct {
+ ID string `json:"id"`
+ Name string `json:"name"`
+}
+
+// A VoiceRegion stores data for a specific voice region server.
+type VoiceRegion struct {
+ ID string `json:"id"`
+ Name string `json:"name"`
+ Hostname string `json:"sample_hostname"`
+ Port int `json:"sample_port"`
+}
+
+// A VoiceICE stores data for voice ICE servers.
+type VoiceICE struct {
+ TTL string `json:"ttl"`
+ Servers []*ICEServer `json:"servers"`
+}
+
+// A ICEServer stores data for a specific voice ICE server.
+type ICEServer struct {
+ URL string `json:"url"`
+ Username string `json:"username"`
+ Credential string `json:"credential"`
+}
+
+// A Invite stores all data related to a specific Discord Guild or Channel invite.
+type Invite struct {
+ Guild *Guild `json:"guild"`
+ Channel *Channel `json:"channel"`
+ Inviter *User `json:"inviter"`
+ Code string `json:"code"`
+ CreatedAt Timestamp `json:"created_at"`
+ MaxAge int `json:"max_age"`
+ Uses int `json:"uses"`
+ MaxUses int `json:"max_uses"`
+ Revoked bool `json:"revoked"`
+ Temporary bool `json:"temporary"`
+ Unique bool `json:"unique"`
+
+ // will only be filled when using InviteWithCounts
+ ApproximatePresenceCount int `json:"approximate_presence_count"`
+ ApproximateMemberCount int `json:"approximate_member_count"`
+}
+
+// ChannelType is the type of a Channel
+type ChannelType int
+
+// Block contains known ChannelType values
+const (
+ ChannelTypeGuildText ChannelType = iota
+ ChannelTypeDM
+ ChannelTypeGuildVoice
+ ChannelTypeGroupDM
+ ChannelTypeGuildCategory
+ ChannelTypeGuildNews
+ ChannelTypeGuildStore
+)
+
+// A Channel holds all data related to an individual Discord channel.
+type Channel struct {
+ // The ID of the channel.
+ ID string `json:"id"`
+
+ // The ID of the guild to which the channel belongs, if it is in a guild.
+ // Else, this ID is empty (e.g. DM channels).
+ GuildID string `json:"guild_id"`
+
+ // The name of the channel.
+ Name string `json:"name"`
+
+ // The topic of the channel.
+ Topic string `json:"topic"`
+
+ // The type of the channel.
+ Type ChannelType `json:"type"`
+
+ // The ID of the last message sent in the channel. This is not
+ // guaranteed to be an ID of a valid message.
+ LastMessageID string `json:"last_message_id"`
+
+ // The timestamp of the last pinned message in the channel.
+ // Empty if the channel has no pinned messages.
+ LastPinTimestamp Timestamp `json:"last_pin_timestamp"`
+
+ // Whether the channel is marked as NSFW.
+ NSFW bool `json:"nsfw"`
+
+ // Icon of the group DM channel.
+ Icon string `json:"icon"`
+
+ // The position of the channel, used for sorting in client.
+ Position int `json:"position"`
+
+ // The bitrate of the channel, if it is a voice channel.
+ Bitrate int `json:"bitrate"`
+
+ // The recipients of the channel. This is only populated in DM channels.
+ Recipients []*User `json:"recipients"`
+
+ // The messages in the channel. This is only present in state-cached channels,
+ // and State.MaxMessageCount must be non-zero.
+ Messages []*Message `json:"-"`
+
+ // A list of permission overwrites present for the channel.
+ PermissionOverwrites []*PermissionOverwrite `json:"permission_overwrites"`
+
+ // The user limit of the voice channel.
+ UserLimit int `json:"user_limit"`
+
+ // The ID of the parent channel, if the channel is under a category
+ ParentID string `json:"parent_id"`
+
+ // Amount of seconds a user has to wait before sending another message (0-21600)
+ // bots, as well as users with the permission manage_messages or manage_channel, are unaffected
+ RateLimitPerUser int `json:"rate_limit_per_user"`
+}
+
+// Mention returns a string which mentions the channel
+func (c *Channel) Mention() string {
+ return fmt.Sprintf("<#%s>", c.ID)
+}
+
+// A ChannelEdit holds Channel Field data for a channel edit.
+type ChannelEdit struct {
+ Name string `json:"name,omitempty"`
+ Topic string `json:"topic,omitempty"`
+ NSFW bool `json:"nsfw,omitempty"`
+ Position int `json:"position"`
+ Bitrate int `json:"bitrate,omitempty"`
+ UserLimit int `json:"user_limit,omitempty"`
+ PermissionOverwrites []*PermissionOverwrite `json:"permission_overwrites,omitempty"`
+ ParentID string `json:"parent_id,omitempty"`
+ RateLimitPerUser int `json:"rate_limit_per_user,omitempty"`
+}
+
+// A PermissionOverwrite holds permission overwrite data for a Channel
+type PermissionOverwrite struct {
+ ID string `json:"id"`
+ Type string `json:"type"`
+ Deny int `json:"deny"`
+ Allow int `json:"allow"`
+}
+
+// Emoji struct holds data related to Emoji's
+type Emoji struct {
+ ID string `json:"id"`
+ Name string `json:"name"`
+ Roles []string `json:"roles"`
+ Managed bool `json:"managed"`
+ RequireColons bool `json:"require_colons"`
+ Animated bool `json:"animated"`
+ Available bool `json:"available"`
+}
+
+// MessageFormat returns a correctly formatted Emoji for use in Message content and embeds
+func (e *Emoji) MessageFormat() string {
+ if e.ID != "" && e.Name != "" {
+ if e.Animated {
+ return "<a:" + e.APIName() + ">"
+ }
+
+ return "<:" + e.APIName() + ">"
+ }
+
+ return e.APIName()
+}
+
+// APIName returns an correctly formatted API name for use in the MessageReactions endpoints.
+func (e *Emoji) APIName() string {
+ if e.ID != "" && e.Name != "" {
+ return e.Name + ":" + e.ID
+ }
+ if e.Name != "" {
+ return e.Name
+ }
+ return e.ID
+}
+
+// VerificationLevel type definition
+type VerificationLevel int
+
+// Constants for VerificationLevel levels from 0 to 4 inclusive
+const (
+ VerificationLevelNone VerificationLevel = iota
+ VerificationLevelLow
+ VerificationLevelMedium
+ VerificationLevelHigh
+ VerificationLevelVeryHigh
+)
+
+// ExplicitContentFilterLevel type definition
+type ExplicitContentFilterLevel int
+
+// Constants for ExplicitContentFilterLevel levels from 0 to 2 inclusive
+const (
+ ExplicitContentFilterDisabled ExplicitContentFilterLevel = iota
+ ExplicitContentFilterMembersWithoutRoles
+ ExplicitContentFilterAllMembers
+)
+
+// MfaLevel type definition
+type MfaLevel int
+
+// Constants for MfaLevel levels from 0 to 1 inclusive
+const (
+ MfaLevelNone MfaLevel = iota
+ MfaLevelElevated
+)
+
+// PremiumTier type definition
+type PremiumTier int
+
+// Constants for PremiumTier levels from 0 to 3 inclusive
+const (
+ PremiumTierNone PremiumTier = iota
+ PremiumTier1
+ PremiumTier2
+ PremiumTier3
+)
+
+// A Guild holds all data related to a specific Discord Guild. Guilds are also
+// sometimes referred to as Servers in the Discord client.
+type Guild struct {
+ // The ID of the guild.
+ ID string `json:"id"`
+
+ // The name of the guild. (2–100 characters)
+ Name string `json:"name"`
+
+ // The hash of the guild's icon. Use Session.GuildIcon
+ // to retrieve the icon itself.
+ Icon string `json:"icon"`
+
+ // The voice region of the guild.
+ Region string `json:"region"`
+
+ // The ID of the AFK voice channel.
+ AfkChannelID string `json:"afk_channel_id"`
+
+ // The ID of the embed channel ID, used for embed widgets.
+ EmbedChannelID string `json:"embed_channel_id"`
+
+ // The user ID of the owner of the guild.
+ OwnerID string `json:"owner_id"`
+
+ // The time at which the current user joined the guild.
+ // This field is only present in GUILD_CREATE events and websocket
+ // update events, and thus is only present in state-cached guilds.
+ JoinedAt Timestamp `json:"joined_at"`
+
+ // The hash of the guild's splash.
+ Splash string `json:"splash"`
+
+ // The timeout, in seconds, before a user is considered AFK in voice.
+ AfkTimeout int `json:"afk_timeout"`
+
+ // The number of members in the guild.
+ // This field is only present in GUILD_CREATE events and websocket
+ // update events, and thus is only present in state-cached guilds.
+ MemberCount int `json:"member_count"`
+
+ // The verification level required for the guild.
+ VerificationLevel VerificationLevel `json:"verification_level"`
+
+ // Whether the guild has embedding enabled.
+ EmbedEnabled bool `json:"embed_enabled"`
+
+ // Whether the guild is considered large. This is
+ // determined by a member threshold in the identify packet,
+ // and is currently hard-coded at 250 members in the library.
+ Large bool `json:"large"`
+
+ // The default message notification setting for the guild.
+ // 0 == all messages, 1 == mentions only.
+ DefaultMessageNotifications int `json:"default_message_notifications"`
+
+ // A list of roles in the guild.
+ Roles []*Role `json:"roles"`
+
+ // A list of the custom emojis present in the guild.
+ Emojis []*Emoji `json:"emojis"`
+
+ // A list of the members in the guild.
+ // This field is only present in GUILD_CREATE events and websocket
+ // update events, and thus is only present in state-cached guilds.
+ Members []*Member `json:"members"`
+
+ // A list of partial presence objects for members in the guild.
+ // This field is only present in GUILD_CREATE events and websocket
+ // update events, and thus is only present in state-cached guilds.
+ Presences []*Presence `json:"presences"`
+
+ // A list of channels in the guild.
+ // This field is only present in GUILD_CREATE events and websocket
+ // update events, and thus is only present in state-cached guilds.
+ Channels []*Channel `json:"channels"`
+
+ // A list of voice states for the guild.
+ // This field is only present in GUILD_CREATE events and websocket
+ // update events, and thus is only present in state-cached guilds.
+ VoiceStates []*VoiceState `json:"voice_states"`
+
+ // Whether this guild is currently unavailable (most likely due to outage).
+ // This field is only present in GUILD_CREATE events and websocket
+ // update events, and thus is only present in state-cached guilds.
+ Unavailable bool `json:"unavailable"`
+
+ // The explicit content filter level
+ ExplicitContentFilter ExplicitContentFilterLevel `json:"explicit_content_filter"`
+
+ // The list of enabled guild features
+ Features []string `json:"features"`
+
+ // Required MFA level for the guild
+ MfaLevel MfaLevel `json:"mfa_level"`
+
+ // Whether or not the Server Widget is enabled
+ WidgetEnabled bool `json:"widget_enabled"`
+
+ // The Channel ID for the Server Widget
+ WidgetChannelID string `json:"widget_channel_id"`
+
+ // The Channel ID to which system messages are sent (eg join and leave messages)
+ SystemChannelID string `json:"system_channel_id"`
+
+ // the vanity url code for the guild
+ VanityURLCode string `json:"vanity_url_code"`
+
+ // the description for the guild
+ Description string `json:"description"`
+
+ // The hash of the guild's banner
+ Banner string `json:"banner"`
+
+ // The premium tier of the guild
+ PremiumTier PremiumTier `json:"premium_tier"`
+
+ // The total number of users currently boosting this server
+ PremiumSubscriptionCount int `json:"premium_subscription_count"`
+}
+
+// IconURL returns a URL to the guild's icon.
+func (g *Guild) IconURL() string {
+ if g.Icon == "" {
+ return ""
+ }
+
+ if strings.HasPrefix(g.Icon, "a_") {
+ return EndpointGuildIconAnimated(g.ID, g.Icon)
+ }
+
+ return EndpointGuildIcon(g.ID, g.Icon)
+}
+
+// A UserGuild holds a brief version of a Guild
+type UserGuild struct {
+ ID string `json:"id"`
+ Name string `json:"name"`
+ Icon string `json:"icon"`
+ Owner bool `json:"owner"`
+ Permissions int `json:"permissions"`
+}
+
+// A GuildParams stores all the data needed to update discord guild settings
+type GuildParams struct {
+ Name string `json:"name,omitempty"`
+ Region string `json:"region,omitempty"`
+ VerificationLevel *VerificationLevel `json:"verification_level,omitempty"`
+ DefaultMessageNotifications int `json:"default_message_notifications,omitempty"` // TODO: Separate type?
+ AfkChannelID string `json:"afk_channel_id,omitempty"`
+ AfkTimeout int `json:"afk_timeout,omitempty"`
+ Icon string `json:"icon,omitempty"`
+ OwnerID string `json:"owner_id,omitempty"`
+ Splash string `json:"splash,omitempty"`
+}
+
+// A Role stores information about Discord guild member roles.
+type Role struct {
+ // The ID of the role.
+ ID string `json:"id"`
+
+ // The name of the role.
+ Name string `json:"name"`
+
+ // Whether this role is managed by an integration, and
+ // thus cannot be manually added to, or taken from, members.
+ Managed bool `json:"managed"`
+
+ // Whether this role is mentionable.
+ Mentionable bool `json:"mentionable"`
+
+ // Whether this role is hoisted (shows up separately in member list).
+ Hoist bool `json:"hoist"`
+
+ // The hex color of this role.
+ Color int `json:"color"`
+
+ // The position of this role in the guild's role hierarchy.
+ Position int `json:"position"`
+
+ // The permissions of the role on the guild (doesn't include channel overrides).
+ // This is a combination of bit masks; the presence of a certain permission can
+ // be checked by performing a bitwise AND between this int and the permission.
+ Permissions int `json:"permissions"`
+}
+
+// Mention returns a string which mentions the role
+func (r *Role) Mention() string {
+ return fmt.Sprintf("<@&%s>", r.ID)
+}
+
+// Roles are a collection of Role
+type Roles []*Role
+
+func (r Roles) Len() int {
+ return len(r)
+}
+
+func (r Roles) Less(i, j int) bool {
+ return r[i].Position > r[j].Position
+}
+
+func (r Roles) Swap(i, j int) {
+ r[i], r[j] = r[j], r[i]
+}
+
+// A VoiceState stores the voice states of Guilds
+type VoiceState struct {
+ UserID string `json:"user_id"`
+ SessionID string `json:"session_id"`
+ ChannelID string `json:"channel_id"`
+ GuildID string `json:"guild_id"`
+ Suppress bool `json:"suppress"`
+ SelfMute bool `json:"self_mute"`
+ SelfDeaf bool `json:"self_deaf"`
+ Mute bool `json:"mute"`
+ Deaf bool `json:"deaf"`
+}
+
+// A Presence stores the online, offline, or idle and game status of Guild members.
+type Presence struct {
+ User *User `json:"user"`
+ Status Status `json:"status"`
+ Game *Game `json:"game"`
+ Nick string `json:"nick"`
+ Roles []string `json:"roles"`
+ Since *int `json:"since"`
+}
+
+// GameType is the type of "game" (see GameType* consts) in the Game struct
+type GameType int
+
+// Valid GameType values
+const (
+ GameTypeGame GameType = iota
+ GameTypeStreaming
+ GameTypeListening
+ GameTypeWatching
+)
+
+// A Game struct holds the name of the "playing .." game for a user
+type Game struct {
+ Name string `json:"name"`
+ Type GameType `json:"type"`
+ URL string `json:"url,omitempty"`
+ Details string `json:"details,omitempty"`
+ State string `json:"state,omitempty"`
+ TimeStamps TimeStamps `json:"timestamps,omitempty"`
+ Assets Assets `json:"assets,omitempty"`
+ ApplicationID string `json:"application_id,omitempty"`
+ Instance int8 `json:"instance,omitempty"`
+ // TODO: Party and Secrets (unknown structure)
+}
+
+// A TimeStamps struct contains start and end times used in the rich presence "playing .." Game
+type TimeStamps struct {
+ EndTimestamp int64 `json:"end,omitempty"`
+ StartTimestamp int64 `json:"start,omitempty"`
+}
+
+// UnmarshalJSON unmarshals JSON into TimeStamps struct
+func (t *TimeStamps) UnmarshalJSON(b []byte) error {
+ temp := struct {
+ End float64 `json:"end,omitempty"`
+ Start float64 `json:"start,omitempty"`
+ }{}
+ err := json.Unmarshal(b, &temp)
+ if err != nil {
+ return err
+ }
+ t.EndTimestamp = int64(temp.End)
+ t.StartTimestamp = int64(temp.Start)
+ return nil
+}
+
+// An Assets struct contains assets and labels used in the rich presence "playing .." Game
+type Assets struct {
+ LargeImageID string `json:"large_image,omitempty"`
+ SmallImageID string `json:"small_image,omitempty"`
+ LargeText string `json:"large_text,omitempty"`
+ SmallText string `json:"small_text,omitempty"`
+}
+
+// A Member stores user information for Guild members. A guild
+// member represents a certain user's presence in a guild.
+type Member struct {
+ // The guild ID on which the member exists.
+ GuildID string `json:"guild_id"`
+
+ // The time at which the member joined the guild, in ISO8601.
+ JoinedAt Timestamp `json:"joined_at"`
+
+ // The nickname of the member, if they have one.
+ Nick string `json:"nick"`
+
+ // Whether the member is deafened at a guild level.
+ Deaf bool `json:"deaf"`
+
+ // Whether the member is muted at a guild level.
+ Mute bool `json:"mute"`
+
+ // The underlying user on which the member is based.
+ User *User `json:"user"`
+
+ // A list of IDs of the roles which are possessed by the member.
+ Roles []string `json:"roles"`
+
+ // When the user used their Nitro boost on the server
+ PremiumSince Timestamp `json:"premium_since"`
+}
+
+// Mention creates a member mention
+func (m *Member) Mention() string {
+ return "<@!" + m.User.ID + ">"
+}
+
+// A Settings stores data for a specific users Discord client settings.
+type Settings struct {
+ RenderEmbeds bool `json:"render_embeds"`
+ InlineEmbedMedia bool `json:"inline_embed_media"`
+ InlineAttachmentMedia bool `json:"inline_attachment_media"`
+ EnableTtsCommand bool `json:"enable_tts_command"`
+ MessageDisplayCompact bool `json:"message_display_compact"`
+ ShowCurrentGame bool `json:"show_current_game"`
+ ConvertEmoticons bool `json:"convert_emoticons"`
+ Locale string `json:"locale"`
+ Theme string `json:"theme"`
+ GuildPositions []string `json:"guild_positions"`
+ RestrictedGuilds []string `json:"restricted_guilds"`
+ FriendSourceFlags *FriendSourceFlags `json:"friend_source_flags"`
+ Status Status `json:"status"`
+ DetectPlatformAccounts bool `json:"detect_platform_accounts"`
+ DeveloperMode bool `json:"developer_mode"`
+}
+
+// Status type definition
+type Status string
+
+// Constants for Status with the different current available status
+const (
+ StatusOnline Status = "online"
+ StatusIdle Status = "idle"
+ StatusDoNotDisturb Status = "dnd"
+ StatusInvisible Status = "invisible"
+ StatusOffline Status = "offline"
+)
+
+// FriendSourceFlags stores ... TODO :)
+type FriendSourceFlags struct {
+ All bool `json:"all"`
+ MutualGuilds bool `json:"mutual_guilds"`
+ MutualFriends bool `json:"mutual_friends"`
+}
+
+// A Relationship between the logged in user and Relationship.User
+type Relationship struct {
+ User *User `json:"user"`
+ Type int `json:"type"` // 1 = friend, 2 = blocked, 3 = incoming friend req, 4 = sent friend req
+ ID string `json:"id"`
+}
+
+// A TooManyRequests struct holds information received from Discord
+// when receiving a HTTP 429 response.
+type TooManyRequests struct {
+ Bucket string `json:"bucket"`
+ Message string `json:"message"`
+ RetryAfter time.Duration `json:"retry_after"`
+}
+
+// A ReadState stores data on the read state of channels.
+type ReadState struct {
+ MentionCount int `json:"mention_count"`
+ LastMessageID string `json:"last_message_id"`
+ ID string `json:"id"`
+}
+
+// An Ack is used to ack messages
+type Ack struct {
+ Token string `json:"token"`
+}
+
+// A GuildRole stores data for guild roles.
+type GuildRole struct {
+ Role *Role `json:"role"`
+ GuildID string `json:"guild_id"`
+}
+
+// A GuildBan stores data for a guild ban.
+type GuildBan struct {
+ Reason string `json:"reason"`
+ User *User `json:"user"`
+}
+
+// A GuildEmbed stores data for a guild embed.
+type GuildEmbed struct {
+ Enabled bool `json:"enabled"`
+ ChannelID string `json:"channel_id"`
+}
+
+// A GuildAuditLog stores data for a guild audit log.
+type GuildAuditLog struct {
+ Webhooks []struct {
+ ChannelID string `json:"channel_id"`
+ GuildID string `json:"guild_id"`
+ ID string `json:"id"`
+ Avatar string `json:"avatar"`
+ Name string `json:"name"`
+ } `json:"webhooks,omitempty"`
+ Users []struct {
+ Username string `json:"username"`
+ Discriminator string `json:"discriminator"`
+ Bot bool `json:"bot"`
+ ID string `json:"id"`
+ Avatar string `json:"avatar"`
+ } `json:"users,omitempty"`
+ AuditLogEntries []struct {
+ TargetID string `json:"target_id"`
+ Changes []struct {
+ NewValue interface{} `json:"new_value"`
+ OldValue interface{} `json:"old_value"`
+ Key string `json:"key"`
+ } `json:"changes,omitempty"`
+ UserID string `json:"user_id"`
+ ID string `json:"id"`
+ ActionType int `json:"action_type"`
+ Options struct {
+ DeleteMembersDay string `json:"delete_member_days"`
+ MembersRemoved string `json:"members_removed"`
+ ChannelID string `json:"channel_id"`
+ Count string `json:"count"`
+ ID string `json:"id"`
+ Type string `json:"type"`
+ RoleName string `json:"role_name"`
+ } `json:"options,omitempty"`
+ Reason string `json:"reason"`
+ } `json:"audit_log_entries"`
+}
+
+// Block contains Discord Audit Log Action Types
+const (
+ AuditLogActionGuildUpdate = 1
+
+ AuditLogActionChannelCreate = 10
+ AuditLogActionChannelUpdate = 11
+ AuditLogActionChannelDelete = 12
+ AuditLogActionChannelOverwriteCreate = 13
+ AuditLogActionChannelOverwriteUpdate = 14
+ AuditLogActionChannelOverwriteDelete = 15
+
+ AuditLogActionMemberKick = 20
+ AuditLogActionMemberPrune = 21
+ AuditLogActionMemberBanAdd = 22
+ AuditLogActionMemberBanRemove = 23
+ AuditLogActionMemberUpdate = 24
+ AuditLogActionMemberRoleUpdate = 25
+
+ AuditLogActionRoleCreate = 30
+ AuditLogActionRoleUpdate = 31
+ AuditLogActionRoleDelete = 32
+
+ AuditLogActionInviteCreate = 40
+ AuditLogActionInviteUpdate = 41
+ AuditLogActionInviteDelete = 42
+
+ AuditLogActionWebhookCreate = 50
+ AuditLogActionWebhookUpdate = 51
+ AuditLogActionWebhookDelete = 52
+
+ AuditLogActionEmojiCreate = 60
+ AuditLogActionEmojiUpdate = 61
+ AuditLogActionEmojiDelete = 62
+
+ AuditLogActionMessageDelete = 72
+)
+
+// A UserGuildSettingsChannelOverride stores data for a channel override for a users guild settings.
+type UserGuildSettingsChannelOverride struct {
+ Muted bool `json:"muted"`
+ MessageNotifications int `json:"message_notifications"`
+ ChannelID string `json:"channel_id"`
+}
+
+// A UserGuildSettings stores data for a users guild settings.
+type UserGuildSettings struct {
+ SupressEveryone bool `json:"suppress_everyone"`
+ Muted bool `json:"muted"`
+ MobilePush bool `json:"mobile_push"`
+ MessageNotifications int `json:"message_notifications"`
+ GuildID string `json:"guild_id"`
+ ChannelOverrides []*UserGuildSettingsChannelOverride `json:"channel_overrides"`
+}
+
+// A UserGuildSettingsEdit stores data for editing UserGuildSettings
+type UserGuildSettingsEdit struct {
+ SupressEveryone bool `json:"suppress_everyone"`
+ Muted bool `json:"muted"`
+ MobilePush bool `json:"mobile_push"`
+ MessageNotifications int `json:"message_notifications"`
+ ChannelOverrides map[string]*UserGuildSettingsChannelOverride `json:"channel_overrides"`
+}
+
+// An APIErrorMessage is an api error message returned from discord
+type APIErrorMessage struct {
+ Code int `json:"code"`
+ Message string `json:"message"`
+}
+
+// Webhook stores the data for a webhook.
+type Webhook struct {
+ ID string `json:"id"`
+ GuildID string `json:"guild_id"`
+ ChannelID string `json:"channel_id"`
+ User *User `json:"user"`
+ Name string `json:"name"`
+ Avatar string `json:"avatar"`
+ Token string `json:"token"`
+}
+
+// WebhookParams is a struct for webhook params, used in the WebhookExecute command.
+type WebhookParams struct {
+ Content string `json:"content,omitempty"`
+ Username string `json:"username,omitempty"`
+ AvatarURL string `json:"avatar_url,omitempty"`
+ TTS bool `json:"tts,omitempty"`
+ File *File `json:"-"`
+ Embeds []*MessageEmbed `json:"embeds,omitempty"`
+}
+
+// MessageReaction stores the data for a message reaction.
+type MessageReaction struct {
+ UserID string `json:"user_id"`
+ MessageID string `json:"message_id"`
+ Emoji Emoji `json:"emoji"`
+ ChannelID string `json:"channel_id"`
+ GuildID string `json:"guild_id,omitempty"`
+}
+
+// GatewayBotResponse stores the data for the gateway/bot response
+type GatewayBotResponse struct {
+ URL string `json:"url"`
+ Shards int `json:"shards"`
+}
+
+// Constants for the different bit offsets of text channel permissions
+const (
+ PermissionReadMessages = 1 << (iota + 10)
+ PermissionSendMessages
+ PermissionSendTTSMessages
+ PermissionManageMessages
+ PermissionEmbedLinks
+ PermissionAttachFiles
+ PermissionReadMessageHistory
+ PermissionMentionEveryone
+ PermissionUseExternalEmojis
+)
+
+// Constants for the different bit offsets of voice permissions
+const (
+ PermissionVoiceConnect = 1 << (iota + 20)
+ PermissionVoiceSpeak
+ PermissionVoiceMuteMembers
+ PermissionVoiceDeafenMembers
+ PermissionVoiceMoveMembers
+ PermissionVoiceUseVAD
+ PermissionVoicePrioritySpeaker = 1 << (iota + 2)
+)
+
+// Constants for general management.
+const (
+ PermissionChangeNickname = 1 << (iota + 26)
+ PermissionManageNicknames
+ PermissionManageRoles
+ PermissionManageWebhooks
+ PermissionManageEmojis
+)
+
+// Constants for the different bit offsets of general permissions
+const (
+ PermissionCreateInstantInvite = 1 << iota
+ PermissionKickMembers
+ PermissionBanMembers
+ PermissionAdministrator
+ PermissionManageChannels
+ PermissionManageServer
+ PermissionAddReactions
+ PermissionViewAuditLogs
+
+ PermissionAllText = PermissionReadMessages |
+ PermissionSendMessages |
+ PermissionSendTTSMessages |
+ PermissionManageMessages |
+ PermissionEmbedLinks |
+ PermissionAttachFiles |
+ PermissionReadMessageHistory |
+ PermissionMentionEveryone
+ PermissionAllVoice = PermissionVoiceConnect |
+ PermissionVoiceSpeak |
+ PermissionVoiceMuteMembers |
+ PermissionVoiceDeafenMembers |
+ PermissionVoiceMoveMembers |
+ PermissionVoiceUseVAD |
+ PermissionVoicePrioritySpeaker
+ PermissionAllChannel = PermissionAllText |
+ PermissionAllVoice |
+ PermissionCreateInstantInvite |
+ PermissionManageRoles |
+ PermissionManageChannels |
+ PermissionAddReactions |
+ PermissionViewAuditLogs
+ PermissionAll = PermissionAllChannel |
+ PermissionKickMembers |
+ PermissionBanMembers |
+ PermissionManageServer |
+ PermissionAdministrator |
+ PermissionManageWebhooks |
+ PermissionManageEmojis
+)
+
+// Block contains Discord JSON Error Response codes
+const (
+ ErrCodeUnknownAccount = 10001
+ ErrCodeUnknownApplication = 10002
+ ErrCodeUnknownChannel = 10003
+ ErrCodeUnknownGuild = 10004
+ ErrCodeUnknownIntegration = 10005
+ ErrCodeUnknownInvite = 10006
+ ErrCodeUnknownMember = 10007
+ ErrCodeUnknownMessage = 10008
+ ErrCodeUnknownOverwrite = 10009
+ ErrCodeUnknownProvider = 10010
+ ErrCodeUnknownRole = 10011
+ ErrCodeUnknownToken = 10012
+ ErrCodeUnknownUser = 10013
+ ErrCodeUnknownEmoji = 10014
+ ErrCodeUnknownWebhook = 10015
+
+ ErrCodeBotsCannotUseEndpoint = 20001
+ ErrCodeOnlyBotsCanUseEndpoint = 20002
+
+ ErrCodeMaximumGuildsReached = 30001
+ ErrCodeMaximumFriendsReached = 30002
+ ErrCodeMaximumPinsReached = 30003
+ ErrCodeMaximumGuildRolesReached = 30005
+ ErrCodeTooManyReactions = 30010
+
+ ErrCodeUnauthorized = 40001
+
+ ErrCodeMissingAccess = 50001
+ ErrCodeInvalidAccountType = 50002
+ ErrCodeCannotExecuteActionOnDMChannel = 50003
+ ErrCodeEmbedDisabled = 50004
+ ErrCodeCannotEditFromAnotherUser = 50005
+ ErrCodeCannotSendEmptyMessage = 50006
+ ErrCodeCannotSendMessagesToThisUser = 50007
+ ErrCodeCannotSendMessagesInVoiceChannel = 50008
+ ErrCodeChannelVerificationLevelTooHigh = 50009
+ ErrCodeOAuth2ApplicationDoesNotHaveBot = 50010
+ ErrCodeOAuth2ApplicationLimitReached = 50011
+ ErrCodeInvalidOAuthState = 50012
+ ErrCodeMissingPermissions = 50013
+ ErrCodeInvalidAuthenticationToken = 50014
+ ErrCodeNoteTooLong = 50015
+ ErrCodeTooFewOrTooManyMessagesToDelete = 50016
+ ErrCodeCanOnlyPinMessageToOriginatingChannel = 50019
+ ErrCodeCannotExecuteActionOnSystemMessage = 50021
+ ErrCodeMessageProvidedTooOldForBulkDelete = 50034
+ ErrCodeInvalidFormBody = 50035
+ ErrCodeInviteAcceptedToGuildApplicationsBotNotIn = 50036
+
+ ErrCodeReactionBlocked = 90001
+)
diff --git a/vendor/github.com/matterbridge/discordgo/types.go b/vendor/github.com/matterbridge/discordgo/types.go
new file mode 100644
index 00000000..c0ce0131
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/types.go
@@ -0,0 +1,57 @@
+// Discordgo - Discord bindings for Go
+// Available at https://github.com/bwmarrin/discordgo
+
+// Copyright 2015-2016 Bruce Marriner <bruce@sqls.net>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file contains custom types, currently only a timestamp wrapper.
+
+package discordgo
+
+import (
+ "encoding/json"
+ "net/http"
+ "time"
+)
+
+// Timestamp stores a timestamp, as sent by the Discord API.
+type Timestamp string
+
+// Parse parses a timestamp string into a time.Time object.
+// The only time this can fail is if Discord changes their timestamp format.
+func (t Timestamp) Parse() (time.Time, error) {
+ return time.Parse(time.RFC3339, string(t))
+}
+
+// RESTError stores error information about a request with a bad response code.
+// Message is not always present, there are cases where api calls can fail
+// without returning a json message.
+type RESTError struct {
+ Request *http.Request
+ Response *http.Response
+ ResponseBody []byte
+
+ Message *APIErrorMessage // Message may be nil.
+}
+
+func newRestError(req *http.Request, resp *http.Response, body []byte) *RESTError {
+ restErr := &RESTError{
+ Request: req,
+ Response: resp,
+ ResponseBody: body,
+ }
+
+ // Attempt to decode the error and assume no message was provided if it fails
+ var msg *APIErrorMessage
+ err := json.Unmarshal(body, &msg)
+ if err == nil {
+ restErr.Message = msg
+ }
+
+ return restErr
+}
+
+func (r RESTError) Error() string {
+ return "HTTP " + r.Response.Status + ", " + string(r.ResponseBody)
+}
diff --git a/vendor/github.com/matterbridge/discordgo/user.go b/vendor/github.com/matterbridge/discordgo/user.go
new file mode 100644
index 00000000..a9af31a9
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/user.go
@@ -0,0 +1,69 @@
+package discordgo
+
+import "strings"
+
+// A User stores all data for an individual Discord user.
+type User struct {
+ // The ID of the user.
+ ID string `json:"id"`
+
+ // The email of the user. This is only present when
+ // the application possesses the email scope for the user.
+ Email string `json:"email"`
+
+ // The user's username.
+ Username string `json:"username"`
+
+ // The hash of the user's avatar. Use Session.UserAvatar
+ // to retrieve the avatar itself.
+ Avatar string `json:"avatar"`
+
+ // The user's chosen language option.
+ Locale string `json:"locale"`
+
+ // The discriminator of the user (4 numbers after name).
+ Discriminator string `json:"discriminator"`
+
+ // The token of the user. This is only present for
+ // the user represented by the current session.
+ Token string `json:"token"`
+
+ // Whether the user's email is verified.
+ Verified bool `json:"verified"`
+
+ // Whether the user has multi-factor authentication enabled.
+ MFAEnabled bool `json:"mfa_enabled"`
+
+ // Whether the user is a bot.
+ Bot bool `json:"bot"`
+}
+
+// String returns a unique identifier of the form username#discriminator
+func (u *User) String() string {
+ return u.Username + "#" + u.Discriminator
+}
+
+// Mention return a string which mentions the user
+func (u *User) Mention() string {
+ return "<@" + u.ID + ">"
+}
+
+// AvatarURL returns a URL to the user's avatar.
+// size: The size of the user's avatar as a power of two
+// if size is an empty string, no size parameter will
+// be added to the URL.
+func (u *User) AvatarURL(size string) string {
+ var URL string
+ if u.Avatar == "" {
+ URL = EndpointDefaultUserAvatar(u.Discriminator)
+ } else if strings.HasPrefix(u.Avatar, "a_") {
+ URL = EndpointUserAvatarAnimated(u.ID, u.Avatar)
+ } else {
+ URL = EndpointUserAvatar(u.ID, u.Avatar)
+ }
+
+ if size != "" {
+ return URL + "?size=" + size
+ }
+ return URL
+}
diff --git a/vendor/github.com/matterbridge/discordgo/util.go b/vendor/github.com/matterbridge/discordgo/util.go
new file mode 100644
index 00000000..02443ca1
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/util.go
@@ -0,0 +1,17 @@
+package discordgo
+
+import (
+ "strconv"
+ "time"
+)
+
+// SnowflakeTimestamp returns the creation time of a Snowflake ID relative to the creation of Discord.
+func SnowflakeTimestamp(ID string) (t time.Time, err error) {
+ i, err := strconv.ParseInt(ID, 10, 64)
+ if err != nil {
+ return
+ }
+ timestamp := (i >> 22) + 1420070400000
+ t = time.Unix(timestamp/1000, 0)
+ return
+}
diff --git a/vendor/github.com/matterbridge/discordgo/voice.go b/vendor/github.com/matterbridge/discordgo/voice.go
new file mode 100644
index 00000000..51ac16c8
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/voice.go
@@ -0,0 +1,887 @@
+// Discordgo - Discord bindings for Go
+// Available at https://github.com/bwmarrin/discordgo
+
+// Copyright 2015-2016 Bruce Marriner <bruce@sqls.net>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file contains code related to Discord voice suppport
+
+package discordgo
+
+import (
+ "encoding/binary"
+ "encoding/json"
+ "fmt"
+ "net"
+ "strconv"
+ "strings"
+ "sync"
+ "time"
+
+ "github.com/gorilla/websocket"
+ "golang.org/x/crypto/nacl/secretbox"
+)
+
+// ------------------------------------------------------------------------------------------------
+// Code related to both VoiceConnection Websocket and UDP connections.
+// ------------------------------------------------------------------------------------------------
+
+// A VoiceConnection struct holds all the data and functions related to a Discord Voice Connection.
+type VoiceConnection struct {
+ sync.RWMutex
+
+ Debug bool // If true, print extra logging -- DEPRECATED
+ LogLevel int
+ Ready bool // If true, voice is ready to send/receive audio
+ UserID string
+ GuildID string
+ ChannelID string
+ deaf bool
+ mute bool
+ speaking bool
+ reconnecting bool // If true, voice connection is trying to reconnect
+
+ OpusSend chan []byte // Chan for sending opus audio
+ OpusRecv chan *Packet // Chan for receiving opus audio
+
+ wsConn *websocket.Conn
+ wsMutex sync.Mutex
+ udpConn *net.UDPConn
+ session *Session
+
+ sessionID string
+ token string
+ endpoint string
+
+ // Used to send a close signal to goroutines
+ close chan struct{}
+
+ // Used to allow blocking until connected
+ connected chan bool
+
+ // Used to pass the sessionid from onVoiceStateUpdate
+ // sessionRecv chan string UNUSED ATM
+
+ op4 voiceOP4
+ op2 voiceOP2
+
+ voiceSpeakingUpdateHandlers []VoiceSpeakingUpdateHandler
+}
+
+// VoiceSpeakingUpdateHandler type provides a function definition for the
+// VoiceSpeakingUpdate event
+type VoiceSpeakingUpdateHandler func(vc *VoiceConnection, vs *VoiceSpeakingUpdate)
+
+// Speaking sends a speaking notification to Discord over the voice websocket.
+// This must be sent as true prior to sending audio and should be set to false
+// once finished sending audio.
+// b : Send true if speaking, false if not.
+func (v *VoiceConnection) Speaking(b bool) (err error) {
+
+ v.log(LogDebug, "called (%t)", b)
+
+ type voiceSpeakingData struct {
+ Speaking bool `json:"speaking"`
+ Delay int `json:"delay"`
+ }
+
+ type voiceSpeakingOp struct {
+ Op int `json:"op"` // Always 5
+ Data voiceSpeakingData `json:"d"`
+ }
+
+ if v.wsConn == nil {
+ return fmt.Errorf("no VoiceConnection websocket")
+ }
+
+ data := voiceSpeakingOp{5, voiceSpeakingData{b, 0}}
+ v.wsMutex.Lock()
+ err = v.wsConn.WriteJSON(data)
+ v.wsMutex.Unlock()
+
+ v.Lock()
+ defer v.Unlock()
+ if err != nil {
+ v.speaking = false
+ v.log(LogError, "Speaking() write json error, %s", err)
+ return
+ }
+
+ v.speaking = b
+
+ return
+}
+
+// ChangeChannel sends Discord a request to change channels within a Guild
+// !!! NOTE !!! This function may be removed in favour of just using ChannelVoiceJoin
+func (v *VoiceConnection) ChangeChannel(channelID string, mute, deaf bool) (err error) {
+
+ v.log(LogInformational, "called")
+
+ data := voiceChannelJoinOp{4, voiceChannelJoinData{&v.GuildID, &channelID, mute, deaf}}
+ v.wsMutex.Lock()
+ err = v.session.wsConn.WriteJSON(data)
+ v.wsMutex.Unlock()
+ if err != nil {
+ return
+ }
+ v.ChannelID = channelID
+ v.deaf = deaf
+ v.mute = mute
+ v.speaking = false
+
+ return
+}
+
+// Disconnect disconnects from this voice channel and closes the websocket
+// and udp connections to Discord.
+func (v *VoiceConnection) Disconnect() (err error) {
+
+ // Send a OP4 with a nil channel to disconnect
+ if v.sessionID != "" {
+ data := voiceChannelJoinOp{4, voiceChannelJoinData{&v.GuildID, nil, true, true}}
+ v.session.wsMutex.Lock()
+ err = v.session.wsConn.WriteJSON(data)
+ v.session.wsMutex.Unlock()
+ v.sessionID = ""
+ }
+
+ // Close websocket and udp connections
+ v.Close()
+
+ v.log(LogInformational, "Deleting VoiceConnection %s", v.GuildID)
+
+ v.session.Lock()
+ delete(v.session.VoiceConnections, v.GuildID)
+ v.session.Unlock()
+
+ return
+}
+
+// Close closes the voice ws and udp connections
+func (v *VoiceConnection) Close() {
+
+ v.log(LogInformational, "called")
+
+ v.Lock()
+ defer v.Unlock()
+
+ v.Ready = false
+ v.speaking = false
+
+ if v.close != nil {
+ v.log(LogInformational, "closing v.close")
+ close(v.close)
+ v.close = nil
+ }
+
+ if v.udpConn != nil {
+ v.log(LogInformational, "closing udp")
+ err := v.udpConn.Close()
+ if err != nil {
+ v.log(LogError, "error closing udp connection, %s", err)
+ }
+ v.udpConn = nil
+ }
+
+ if v.wsConn != nil {
+ v.log(LogInformational, "sending close frame")
+
+ // To cleanly close a connection, a client should send a close
+ // frame and wait for the server to close the connection.
+ v.wsMutex.Lock()
+ err := v.wsConn.WriteMessage(websocket.CloseMessage, websocket.FormatCloseMessage(websocket.CloseNormalClosure, ""))
+ v.wsMutex.Unlock()
+ if err != nil {
+ v.log(LogError, "error closing websocket, %s", err)
+ }
+
+ // TODO: Wait for Discord to actually close the connection.
+ time.Sleep(1 * time.Second)
+
+ v.log(LogInformational, "closing websocket")
+ err = v.wsConn.Close()
+ if err != nil {
+ v.log(LogError, "error closing websocket, %s", err)
+ }
+
+ v.wsConn = nil
+ }
+}
+
+// AddHandler adds a Handler for VoiceSpeakingUpdate events.
+func (v *VoiceConnection) AddHandler(h VoiceSpeakingUpdateHandler) {
+ v.Lock()
+ defer v.Unlock()
+
+ v.voiceSpeakingUpdateHandlers = append(v.voiceSpeakingUpdateHandlers, h)
+}
+
+// VoiceSpeakingUpdate is a struct for a VoiceSpeakingUpdate event.
+type VoiceSpeakingUpdate struct {
+ UserID string `json:"user_id"`
+ SSRC int `json:"ssrc"`
+ Speaking bool `json:"speaking"`
+}
+
+// ------------------------------------------------------------------------------------------------
+// Unexported Internal Functions Below.
+// ------------------------------------------------------------------------------------------------
+
+// A voiceOP4 stores the data for the voice operation 4 websocket event
+// which provides us with the NaCl SecretBox encryption key
+type voiceOP4 struct {
+ SecretKey [32]byte `json:"secret_key"`
+ Mode string `json:"mode"`
+}
+
+// A voiceOP2 stores the data for the voice operation 2 websocket event
+// which is sort of like the voice READY packet
+type voiceOP2 struct {
+ SSRC uint32 `json:"ssrc"`
+ Port int `json:"port"`
+ Modes []string `json:"modes"`
+ HeartbeatInterval time.Duration `json:"heartbeat_interval"`
+ IP string `json:"ip"`
+}
+
+// WaitUntilConnected waits for the Voice Connection to
+// become ready, if it does not become ready it returns an err
+func (v *VoiceConnection) waitUntilConnected() error {
+
+ v.log(LogInformational, "called")
+
+ i := 0
+ for {
+ v.RLock()
+ ready := v.Ready
+ v.RUnlock()
+ if ready {
+ return nil
+ }
+
+ if i > 10 {
+ return fmt.Errorf("timeout waiting for voice")
+ }
+
+ time.Sleep(1 * time.Second)
+ i++
+ }
+}
+
+// Open opens a voice connection. This should be called
+// after VoiceChannelJoin is used and the data VOICE websocket events
+// are captured.
+func (v *VoiceConnection) open() (err error) {
+
+ v.log(LogInformational, "called")
+
+ v.Lock()
+ defer v.Unlock()
+
+ // Don't open a websocket if one is already open
+ if v.wsConn != nil {
+ v.log(LogWarning, "refusing to overwrite non-nil websocket")
+ return
+ }
+
+ // TODO temp? loop to wait for the SessionID
+ i := 0
+ for {
+ if v.sessionID != "" {
+ break
+ }
+ if i > 20 { // only loop for up to 1 second total
+ return fmt.Errorf("did not receive voice Session ID in time")
+ }
+ time.Sleep(50 * time.Millisecond)
+ i++
+ }
+
+ // Connect to VoiceConnection Websocket
+ vg := "wss://" + strings.TrimSuffix(v.endpoint, ":80")
+ v.log(LogInformational, "connecting to voice endpoint %s", vg)
+ v.wsConn, _, err = websocket.DefaultDialer.Dial(vg, nil)
+ if err != nil {
+ v.log(LogWarning, "error connecting to voice endpoint %s, %s", vg, err)
+ v.log(LogDebug, "voice struct: %#v\n", v)
+ return
+ }
+
+ type voiceHandshakeData struct {
+ ServerID string `json:"server_id"`
+ UserID string `json:"user_id"`
+ SessionID string `json:"session_id"`
+ Token string `json:"token"`
+ }
+ type voiceHandshakeOp struct {
+ Op int `json:"op"` // Always 0
+ Data voiceHandshakeData `json:"d"`
+ }
+ data := voiceHandshakeOp{0, voiceHandshakeData{v.GuildID, v.UserID, v.sessionID, v.token}}
+
+ err = v.wsConn.WriteJSON(data)
+ if err != nil {
+ v.log(LogWarning, "error sending init packet, %s", err)
+ return
+ }
+
+ v.close = make(chan struct{})
+ go v.wsListen(v.wsConn, v.close)
+
+ // add loop/check for Ready bool here?
+ // then return false if not ready?
+ // but then wsListen will also err.
+
+ return
+}
+
+// wsListen listens on the voice websocket for messages and passes them
+// to the voice event handler. This is automatically called by the Open func
+func (v *VoiceConnection) wsListen(wsConn *websocket.Conn, close <-chan struct{}) {
+
+ v.log(LogInformational, "called")
+
+ for {
+ _, message, err := v.wsConn.ReadMessage()
+ if err != nil {
+ // Detect if we have been closed manually. If a Close() has already
+ // happened, the websocket we are listening on will be different to the
+ // current session.
+ v.RLock()
+ sameConnection := v.wsConn == wsConn
+ v.RUnlock()
+ if sameConnection {
+
+ v.log(LogError, "voice endpoint %s websocket closed unexpectantly, %s", v.endpoint, err)
+
+ // Start reconnect goroutine then exit.
+ go v.reconnect()
+ }
+ return
+ }
+
+ // Pass received message to voice event handler
+ select {
+ case <-close:
+ return
+ default:
+ go v.onEvent(message)
+ }
+ }
+}
+
+// wsEvent handles any voice websocket events. This is only called by the
+// wsListen() function.
+func (v *VoiceConnection) onEvent(message []byte) {
+
+ v.log(LogDebug, "received: %s", string(message))
+
+ var e Event
+ if err := json.Unmarshal(message, &e); err != nil {
+ v.log(LogError, "unmarshall error, %s", err)
+ return
+ }
+
+ switch e.Operation {
+
+ case 2: // READY
+
+ if err := json.Unmarshal(e.RawData, &v.op2); err != nil {
+ v.log(LogError, "OP2 unmarshall error, %s, %s", err, string(e.RawData))
+ return
+ }
+
+ // Start the voice websocket heartbeat to keep the connection alive
+ go v.wsHeartbeat(v.wsConn, v.close, v.op2.HeartbeatInterval)
+ // TODO monitor a chan/bool to verify this was successful
+
+ // Start the UDP connection
+ err := v.udpOpen()
+ if err != nil {
+ v.log(LogError, "error opening udp connection, %s", err)
+ return
+ }
+
+ // Start the opusSender.
+ // TODO: Should we allow 48000/960 values to be user defined?
+ if v.OpusSend == nil {
+ v.OpusSend = make(chan []byte, 2)
+ }
+ go v.opusSender(v.udpConn, v.close, v.OpusSend, 48000, 960)
+
+ // Start the opusReceiver
+ if !v.deaf {
+ if v.OpusRecv == nil {
+ v.OpusRecv = make(chan *Packet, 2)
+ }
+
+ go v.opusReceiver(v.udpConn, v.close, v.OpusRecv)
+ }
+
+ return
+
+ case 3: // HEARTBEAT response
+ // add code to use this to track latency?
+ return
+
+ case 4: // udp encryption secret key
+ v.Lock()
+ defer v.Unlock()
+
+ v.op4 = voiceOP4{}
+ if err := json.Unmarshal(e.RawData, &v.op4); err != nil {
+ v.log(LogError, "OP4 unmarshall error, %s, %s", err, string(e.RawData))
+ return
+ }
+ return
+
+ case 5:
+ if len(v.voiceSpeakingUpdateHandlers) == 0 {
+ return
+ }
+
+ voiceSpeakingUpdate := &VoiceSpeakingUpdate{}
+ if err := json.Unmarshal(e.RawData, voiceSpeakingUpdate); err != nil {
+ v.log(LogError, "OP5 unmarshall error, %s, %s", err, string(e.RawData))
+ return
+ }
+
+ for _, h := range v.voiceSpeakingUpdateHandlers {
+ h(v, voiceSpeakingUpdate)
+ }
+
+ default:
+ v.log(LogDebug, "unknown voice operation, %d, %s", e.Operation, string(e.RawData))
+ }
+
+ return
+}
+
+type voiceHeartbeatOp struct {
+ Op int `json:"op"` // Always 3
+ Data int `json:"d"`
+}
+
+// NOTE :: When a guild voice server changes how do we shut this down
+// properly, so a new connection can be setup without fuss?
+//
+// wsHeartbeat sends regular heartbeats to voice Discord so it knows the client
+// is still connected. If you do not send these heartbeats Discord will
+// disconnect the websocket connection after a few seconds.
+func (v *VoiceConnection) wsHeartbeat(wsConn *websocket.Conn, close <-chan struct{}, i time.Duration) {
+
+ if close == nil || wsConn == nil {
+ return
+ }
+
+ var err error
+ ticker := time.NewTicker(i * time.Millisecond)
+ defer ticker.Stop()
+ for {
+ v.log(LogDebug, "sending heartbeat packet")
+ v.wsMutex.Lock()
+ err = wsConn.WriteJSON(voiceHeartbeatOp{3, int(time.Now().Unix())})
+ v.wsMutex.Unlock()
+ if err != nil {
+ v.log(LogError, "error sending heartbeat to voice endpoint %s, %s", v.endpoint, err)
+ return
+ }
+
+ select {
+ case <-ticker.C:
+ // continue loop and send heartbeat
+ case <-close:
+ return
+ }
+ }
+}
+
+// ------------------------------------------------------------------------------------------------
+// Code related to the VoiceConnection UDP connection
+// ------------------------------------------------------------------------------------------------
+
+type voiceUDPData struct {
+ Address string `json:"address"` // Public IP of machine running this code
+ Port uint16 `json:"port"` // UDP Port of machine running this code
+ Mode string `json:"mode"` // always "xsalsa20_poly1305"
+}
+
+type voiceUDPD struct {
+ Protocol string `json:"protocol"` // Always "udp" ?
+ Data voiceUDPData `json:"data"`
+}
+
+type voiceUDPOp struct {
+ Op int `json:"op"` // Always 1
+ Data voiceUDPD `json:"d"`
+}
+
+// udpOpen opens a UDP connection to the voice server and completes the
+// initial required handshake. This connection is left open in the session
+// and can be used to send or receive audio. This should only be called
+// from voice.wsEvent OP2
+func (v *VoiceConnection) udpOpen() (err error) {
+
+ v.Lock()
+ defer v.Unlock()
+
+ if v.wsConn == nil {
+ return fmt.Errorf("nil voice websocket")
+ }
+
+ if v.udpConn != nil {
+ return fmt.Errorf("udp connection already open")
+ }
+
+ if v.close == nil {
+ return fmt.Errorf("nil close channel")
+ }
+
+ if v.endpoint == "" {
+ return fmt.Errorf("empty endpoint")
+ }
+
+ host := v.op2.IP + ":" + strconv.Itoa(v.op2.Port)
+ addr, err := net.ResolveUDPAddr("udp", host)
+ if err != nil {
+ v.log(LogWarning, "error resolving udp host %s, %s", host, err)
+ return
+ }
+
+ v.log(LogInformational, "connecting to udp addr %s", addr.String())
+ v.udpConn, err = net.DialUDP("udp", nil, addr)
+ if err != nil {
+ v.log(LogWarning, "error connecting to udp addr %s, %s", addr.String(), err)
+ return
+ }
+
+ // Create a 70 byte array and put the SSRC code from the Op 2 VoiceConnection event
+ // into it. Then send that over the UDP connection to Discord
+ sb := make([]byte, 70)
+ binary.BigEndian.PutUint32(sb, v.op2.SSRC)
+ _, err = v.udpConn.Write(sb)
+ if err != nil {
+ v.log(LogWarning, "udp write error to %s, %s", addr.String(), err)
+ return
+ }
+
+ // Create a 70 byte array and listen for the initial handshake response
+ // from Discord. Once we get it parse the IP and PORT information out
+ // of the response. This should be our public IP and PORT as Discord
+ // saw us.
+ rb := make([]byte, 70)
+ rlen, _, err := v.udpConn.ReadFromUDP(rb)
+ if err != nil {
+ v.log(LogWarning, "udp read error, %s, %s", addr.String(), err)
+ return
+ }
+
+ if rlen < 70 {
+ v.log(LogWarning, "received udp packet too small")
+ return fmt.Errorf("received udp packet too small")
+ }
+
+ // Loop over position 4 through 20 to grab the IP address
+ // Should never be beyond position 20.
+ var ip string
+ for i := 4; i < 20; i++ {
+ if rb[i] == 0 {
+ break
+ }
+ ip += string(rb[i])
+ }
+
+ // Grab port from position 68 and 69
+ port := binary.BigEndian.Uint16(rb[68:70])
+
+ // Take the data from above and send it back to Discord to finalize
+ // the UDP connection handshake.
+ data := voiceUDPOp{1, voiceUDPD{"udp", voiceUDPData{ip, port, "xsalsa20_poly1305"}}}
+
+ v.wsMutex.Lock()
+ err = v.wsConn.WriteJSON(data)
+ v.wsMutex.Unlock()
+ if err != nil {
+ v.log(LogWarning, "udp write error, %#v, %s", data, err)
+ return
+ }
+
+ // start udpKeepAlive
+ go v.udpKeepAlive(v.udpConn, v.close, 5*time.Second)
+ // TODO: find a way to check that it fired off okay
+
+ return
+}
+
+// udpKeepAlive sends a udp packet to keep the udp connection open
+// This is still a bit of a "proof of concept"
+func (v *VoiceConnection) udpKeepAlive(udpConn *net.UDPConn, close <-chan struct{}, i time.Duration) {
+
+ if udpConn == nil || close == nil {
+ return
+ }
+
+ var err error
+ var sequence uint64
+
+ packet := make([]byte, 8)
+
+ ticker := time.NewTicker(i)
+ defer ticker.Stop()
+ for {
+
+ binary.LittleEndian.PutUint64(packet, sequence)
+ sequence++
+
+ _, err = udpConn.Write(packet)
+ if err != nil {
+ v.log(LogError, "write error, %s", err)
+ return
+ }
+
+ select {
+ case <-ticker.C:
+ // continue loop and send keepalive
+ case <-close:
+ return
+ }
+ }
+}
+
+// opusSender will listen on the given channel and send any
+// pre-encoded opus audio to Discord. Supposedly.
+func (v *VoiceConnection) opusSender(udpConn *net.UDPConn, close <-chan struct{}, opus <-chan []byte, rate, size int) {
+
+ if udpConn == nil || close == nil {
+ return
+ }
+
+ // VoiceConnection is now ready to receive audio packets
+ // TODO: this needs reviewed as I think there must be a better way.
+ v.Lock()
+ v.Ready = true
+ v.Unlock()
+ defer func() {
+ v.Lock()
+ v.Ready = false
+ v.Unlock()
+ }()
+
+ var sequence uint16
+ var timestamp uint32
+ var recvbuf []byte
+ var ok bool
+ udpHeader := make([]byte, 12)
+ var nonce [24]byte
+
+ // build the parts that don't change in the udpHeader
+ udpHeader[0] = 0x80
+ udpHeader[1] = 0x78
+ binary.BigEndian.PutUint32(udpHeader[8:], v.op2.SSRC)
+
+ // start a send loop that loops until buf chan is closed
+ ticker := time.NewTicker(time.Millisecond * time.Duration(size/(rate/1000)))
+ defer ticker.Stop()
+ for {
+
+ // Get data from chan. If chan is closed, return.
+ select {
+ case <-close:
+ return
+ case recvbuf, ok = <-opus:
+ if !ok {
+ return
+ }
+ // else, continue loop
+ }
+
+ v.RLock()
+ speaking := v.speaking
+ v.RUnlock()
+ if !speaking {
+ err := v.Speaking(true)
+ if err != nil {
+ v.log(LogError, "error sending speaking packet, %s", err)
+ }
+ }
+
+ // Add sequence and timestamp to udpPacket
+ binary.BigEndian.PutUint16(udpHeader[2:], sequence)
+ binary.BigEndian.PutUint32(udpHeader[4:], timestamp)
+
+ // encrypt the opus data
+ copy(nonce[:], udpHeader)
+ v.RLock()
+ sendbuf := secretbox.Seal(udpHeader, recvbuf, &nonce, &v.op4.SecretKey)
+ v.RUnlock()
+
+ // block here until we're exactly at the right time :)
+ // Then send rtp audio packet to Discord over UDP
+ select {
+ case <-close:
+ return
+ case <-ticker.C:
+ // continue
+ }
+ _, err := udpConn.Write(sendbuf)
+
+ if err != nil {
+ v.log(LogError, "udp write error, %s", err)
+ v.log(LogDebug, "voice struct: %#v\n", v)
+ return
+ }
+
+ if (sequence) == 0xFFFF {
+ sequence = 0
+ } else {
+ sequence++
+ }
+
+ if (timestamp + uint32(size)) >= 0xFFFFFFFF {
+ timestamp = 0
+ } else {
+ timestamp += uint32(size)
+ }
+ }
+}
+
+// A Packet contains the headers and content of a received voice packet.
+type Packet struct {
+ SSRC uint32
+ Sequence uint16
+ Timestamp uint32
+ Type []byte
+ Opus []byte
+ PCM []int16
+}
+
+// opusReceiver listens on the UDP socket for incoming packets
+// and sends them across the given channel
+// NOTE :: This function may change names later.
+func (v *VoiceConnection) opusReceiver(udpConn *net.UDPConn, close <-chan struct{}, c chan *Packet) {
+
+ if udpConn == nil || close == nil {
+ return
+ }
+
+ recvbuf := make([]byte, 1024)
+ var nonce [24]byte
+
+ for {
+ rlen, err := udpConn.Read(recvbuf)
+ if err != nil {
+ // Detect if we have been closed manually. If a Close() has already
+ // happened, the udp connection we are listening on will be different
+ // to the current session.
+ v.RLock()
+ sameConnection := v.udpConn == udpConn
+ v.RUnlock()
+ if sameConnection {
+
+ v.log(LogError, "udp read error, %s, %s", v.endpoint, err)
+ v.log(LogDebug, "voice struct: %#v\n", v)
+
+ go v.reconnect()
+ }
+ return
+ }
+
+ select {
+ case <-close:
+ return
+ default:
+ // continue loop
+ }
+
+ // For now, skip anything except audio.
+ if rlen < 12 || (recvbuf[0] != 0x80 && recvbuf[0] != 0x90) {
+ continue
+ }
+
+ // build a audio packet struct
+ p := Packet{}
+ p.Type = recvbuf[0:2]
+ p.Sequence = binary.BigEndian.Uint16(recvbuf[2:4])
+ p.Timestamp = binary.BigEndian.Uint32(recvbuf[4:8])
+ p.SSRC = binary.BigEndian.Uint32(recvbuf[8:12])
+ // decrypt opus data
+ copy(nonce[:], recvbuf[0:12])
+ p.Opus, _ = secretbox.Open(nil, recvbuf[12:rlen], &nonce, &v.op4.SecretKey)
+
+ if len(p.Opus) > 8 && recvbuf[0] == 0x90 {
+ // Extension bit is set, first 8 bytes is the extended header
+ p.Opus = p.Opus[8:]
+ }
+
+ if c != nil {
+ select {
+ case c <- &p:
+ case <-close:
+ return
+ }
+ }
+ }
+}
+
+// Reconnect will close down a voice connection then immediately try to
+// reconnect to that session.
+// NOTE : This func is messy and a WIP while I find what works.
+// It will be cleaned up once a proven stable option is flushed out.
+// aka: this is ugly shit code, please don't judge too harshly.
+func (v *VoiceConnection) reconnect() {
+
+ v.log(LogInformational, "called")
+
+ v.Lock()
+ if v.reconnecting {
+ v.log(LogInformational, "already reconnecting to channel %s, exiting", v.ChannelID)
+ v.Unlock()
+ return
+ }
+ v.reconnecting = true
+ v.Unlock()
+
+ defer func() { v.reconnecting = false }()
+
+ // Close any currently open connections
+ v.Close()
+
+ wait := time.Duration(1)
+ for {
+
+ <-time.After(wait * time.Second)
+ wait *= 2
+ if wait > 600 {
+ wait = 600
+ }
+
+ if v.session.DataReady == false || v.session.wsConn == nil {
+ v.log(LogInformational, "cannot reconnect to channel %s with unready session", v.ChannelID)
+ continue
+ }
+
+ v.log(LogInformational, "trying to reconnect to channel %s", v.ChannelID)
+
+ _, err := v.session.ChannelVoiceJoin(v.GuildID, v.ChannelID, v.mute, v.deaf)
+ if err == nil {
+ v.log(LogInformational, "successfully reconnected to channel %s", v.ChannelID)
+ return
+ }
+
+ v.log(LogInformational, "error reconnecting to channel %s, %s", v.ChannelID, err)
+
+ // if the reconnect above didn't work lets just send a disconnect
+ // packet to reset things.
+ // Send a OP4 with a nil channel to disconnect
+ data := voiceChannelJoinOp{4, voiceChannelJoinData{&v.GuildID, nil, true, true}}
+ v.session.wsMutex.Lock()
+ err = v.session.wsConn.WriteJSON(data)
+ v.session.wsMutex.Unlock()
+ if err != nil {
+ v.log(LogError, "error sending disconnect packet, %s", err)
+ }
+
+ }
+}
diff --git a/vendor/github.com/matterbridge/discordgo/wsapi.go b/vendor/github.com/matterbridge/discordgo/wsapi.go
new file mode 100644
index 00000000..eccbb9f4
--- /dev/null
+++ b/vendor/github.com/matterbridge/discordgo/wsapi.go
@@ -0,0 +1,884 @@
+// Discordgo - Discord bindings for Go
+// Available at https://github.com/bwmarrin/discordgo
+
+// Copyright 2015-2016 Bruce Marriner <bruce@sqls.net>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file contains low level functions for interacting with the Discord
+// data websocket interface.
+
+package discordgo
+
+import (
+ "bytes"
+ "compress/zlib"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "net/http"
+ "runtime"
+ "sync/atomic"
+ "time"
+
+ "github.com/gorilla/websocket"
+)
+
+// ErrWSAlreadyOpen is thrown when you attempt to open
+// a websocket that already is open.
+var ErrWSAlreadyOpen = errors.New("web socket already opened")
+
+// ErrWSNotFound is thrown when you attempt to use a websocket
+// that doesn't exist
+var ErrWSNotFound = errors.New("no websocket connection exists")
+
+// ErrWSShardBounds is thrown when you try to use a shard ID that is
+// less than the total shard count
+var ErrWSShardBounds = errors.New("ShardID must be less than ShardCount")
+
+type resumePacket struct {
+ Op int `json:"op"`
+ Data struct {
+ Token string `json:"token"`
+ SessionID string `json:"session_id"`
+ Sequence int64 `json:"seq"`
+ } `json:"d"`
+}
+
+// Open creates a websocket connection to Discord.
+// See: https://discordapp.com/developers/docs/topics/gateway#connecting
+func (s *Session) Open() error {
+ s.log(LogInformational, "called")
+
+ var err error
+
+ // Prevent Open or other major Session functions from
+ // being called while Open is still running.
+ s.Lock()
+ defer s.Unlock()
+
+ // If the websock is already open, bail out here.
+ if s.wsConn != nil {
+ return ErrWSAlreadyOpen
+ }
+
+ // Get the gateway to use for the Websocket connection
+ if s.gateway == "" {
+ s.gateway, err = s.Gateway()
+ if err != nil {
+ return err
+ }
+
+ // Add the version and encoding to the URL
+ s.gateway = s.gateway + "?v=" + APIVersion + "&encoding=json"
+ }
+
+ // Connect to the Gateway
+ s.log(LogInformational, "connecting to gateway %s", s.gateway)
+ header := http.Header{}
+ header.Add("accept-encoding", "zlib")
+ s.wsConn, _, err = websocket.DefaultDialer.Dial(s.gateway, header)
+ if err != nil {
+ s.log(LogWarning, "error connecting to gateway %s, %s", s.gateway, err)
+ s.gateway = "" // clear cached gateway
+ s.wsConn = nil // Just to be safe.
+ return err
+ }
+
+ s.wsConn.SetCloseHandler(func(code int, text string) error {
+ return nil
+ })
+
+ defer func() {
+ // because of this, all code below must set err to the error
+ // when exiting with an error :) Maybe someone has a better
+ // way :)
+ if err != nil {
+ s.wsConn.Close()
+ s.wsConn = nil
+ }
+ }()
+
+ // The first response from Discord should be an Op 10 (Hello) Packet.
+ // When processed by onEvent the heartbeat goroutine will be started.
+ mt, m, err := s.wsConn.ReadMessage()
+ if err != nil {
+ return err
+ }
+ e, err := s.onEvent(mt, m)
+ if err != nil {
+ return err
+ }
+ if e.Operation != 10 {
+ err = fmt.Errorf("expecting Op 10, got Op %d instead", e.Operation)
+ return err
+ }
+ s.log(LogInformational, "Op 10 Hello Packet received from Discord")
+ s.LastHeartbeatAck = time.Now().UTC()
+ var h helloOp
+ if err = json.Unmarshal(e.RawData, &h); err != nil {
+ err = fmt.Errorf("error unmarshalling helloOp, %s", err)
+ return err
+ }
+
+ // Now we send either an Op 2 Identity if this is a brand new
+ // connection or Op 6 Resume if we are resuming an existing connection.
+ sequence := atomic.LoadInt64(s.sequence)
+ if s.sessionID == "" && sequence == 0 {
+
+ // Send Op 2 Identity Packet
+ err = s.identify()
+ if err != nil {
+ err = fmt.Errorf("error sending identify packet to gateway, %s, %s", s.gateway, err)
+ return err
+ }
+
+ } else {
+
+ // Send Op 6 Resume Packet
+ p := resumePacket{}
+ p.Op = 6
+ p.Data.Token = s.Token
+ p.Data.SessionID = s.sessionID
+ p.Data.Sequence = sequence
+
+ s.log(LogInformational, "sending resume packet to gateway")
+ s.wsMutex.Lock()
+ err = s.wsConn.WriteJSON(p)
+ s.wsMutex.Unlock()
+ if err != nil {
+ err = fmt.Errorf("error sending gateway resume packet, %s, %s", s.gateway, err)
+ return err
+ }
+
+ }
+
+ // A basic state is a hard requirement for Voice.
+ // We create it here so the below READY/RESUMED packet can populate
+ // the state :)
+ // XXX: Move to New() func?
+ if s.State == nil {
+ state := NewState()
+ state.TrackChannels = false
+ state.TrackEmojis = false
+ state.TrackMembers = false
+ state.TrackRoles = false
+ state.TrackVoice = false
+ s.State = state
+ }
+
+ // Now Discord should send us a READY or RESUMED packet.
+ mt, m, err = s.wsConn.ReadMessage()
+ if err != nil {
+ return err
+ }
+ e, err = s.onEvent(mt, m)
+ if err != nil {
+ return err
+ }
+ if e.Type != `READY` && e.Type != `RESUMED` {
+ // This is not fatal, but it does not follow their API documentation.
+ s.log(LogWarning, "Expected READY/RESUMED, instead got:\n%#v\n", e)
+ }
+ s.log(LogInformational, "First Packet:\n%#v\n", e)
+
+ s.log(LogInformational, "We are now connected to Discord, emitting connect event")
+ s.handleEvent(connectEventType, &Connect{})
+
+ // A VoiceConnections map is a hard requirement for Voice.
+ // XXX: can this be moved to when opening a voice connection?
+ if s.VoiceConnections == nil {
+ s.log(LogInformational, "creating new VoiceConnections map")
+ s.VoiceConnections = make(map[string]*VoiceConnection)
+ }
+
+ // Create listening chan outside of listen, as it needs to happen inside the
+ // mutex lock and needs to exist before calling heartbeat and listen
+ // go rountines.
+ s.listening = make(chan interface{})
+
+ // Start sending heartbeats and reading messages from Discord.
+ go s.heartbeat(s.wsConn, s.listening, h.HeartbeatInterval)
+ go s.listen(s.wsConn, s.listening)
+
+ s.log(LogInformational, "exiting")
+ return nil
+}
+
+// listen polls the websocket connection for events, it will stop when the
+// listening channel is closed, or an error occurs.
+func (s *Session) listen(wsConn *websocket.Conn, listening <-chan interface{}) {
+
+ s.log(LogInformational, "called")
+
+ for {
+
+ messageType, message, err := wsConn.ReadMessage()
+
+ if err != nil {
+
+ // Detect if we have been closed manually. If a Close() has already
+ // happened, the websocket we are listening on will be different to
+ // the current session.
+ s.RLock()
+ sameConnection := s.wsConn == wsConn
+ s.RUnlock()
+
+ if sameConnection {
+
+ s.log(LogWarning, "error reading from gateway %s websocket, %s", s.gateway, err)
+ // There has been an error reading, close the websocket so that
+ // OnDisconnect event is emitted.
+ err := s.Close()
+ if err != nil {
+ s.log(LogWarning, "error closing session connection, %s", err)
+ }
+
+ s.log(LogInformational, "calling reconnect() now")
+ s.reconnect()
+ }
+
+ return
+ }
+
+ select {
+
+ case <-listening:
+ return
+
+ default:
+ s.onEvent(messageType, message)
+
+ }
+ }
+}
+
+type heartbeatOp struct {
+ Op int `json:"op"`
+ Data int64 `json:"d"`
+}
+
+type helloOp struct {
+ HeartbeatInterval time.Duration `json:"heartbeat_interval"`
+}
+
+// FailedHeartbeatAcks is the Number of heartbeat intervals to wait until forcing a connection restart.
+const FailedHeartbeatAcks time.Duration = 5 * time.Millisecond
+
+// HeartbeatLatency returns the latency between heartbeat acknowledgement and heartbeat send.
+func (s *Session) HeartbeatLatency() time.Duration {
+
+ return s.LastHeartbeatAck.Sub(s.LastHeartbeatSent)
+
+}
+
+// heartbeat sends regular heartbeats to Discord so it knows the client
+// is still connected. If you do not send these heartbeats Discord will
+// disconnect the websocket connection after a few seconds.
+func (s *Session) heartbeat(wsConn *websocket.Conn, listening <-chan interface{}, heartbeatIntervalMsec time.Duration) {
+
+ s.log(LogInformational, "called")
+
+ if listening == nil || wsConn == nil {
+ return
+ }
+
+ var err error
+ ticker := time.NewTicker(heartbeatIntervalMsec * time.Millisecond)
+ defer ticker.Stop()
+
+ for {
+ s.RLock()
+ last := s.LastHeartbeatAck
+ s.RUnlock()
+ sequence := atomic.LoadInt64(s.sequence)
+ s.log(LogDebug, "sending gateway websocket heartbeat seq %d", sequence)
+ s.wsMutex.Lock()
+ s.LastHeartbeatSent = time.Now().UTC()
+ err = wsConn.WriteJSON(heartbeatOp{1, sequence})
+ s.wsMutex.Unlock()
+ if err != nil || time.Now().UTC().Sub(last) > (heartbeatIntervalMsec*FailedHeartbeatAcks) {
+ if err != nil {
+ s.log(LogError, "error sending heartbeat to gateway %s, %s", s.gateway, err)
+ } else {
+ s.log(LogError, "haven't gotten a heartbeat ACK in %v, triggering a reconnection", time.Now().UTC().Sub(last))
+ }
+ s.Close()
+ s.reconnect()
+ return
+ }
+ s.Lock()
+ s.DataReady = true
+ s.Unlock()
+
+ select {
+ case <-ticker.C:
+ // continue loop and send heartbeat
+ case <-listening:
+ return
+ }
+ }
+}
+
+// UpdateStatusData ia provided to UpdateStatusComplex()
+type UpdateStatusData struct {
+ IdleSince *int `json:"since"`
+ Game *Game `json:"game"`
+ AFK bool `json:"afk"`
+ Status string `json:"status"`
+}
+
+type updateStatusOp struct {
+ Op int `json:"op"`
+ Data UpdateStatusData `json:"d"`
+}
+
+func newUpdateStatusData(idle int, gameType GameType, game, url string) *UpdateStatusData {
+ usd := &UpdateStatusData{
+ Status: "online",
+ }
+
+ if idle > 0 {
+ usd.IdleSince = &idle
+ }
+
+ if game != "" {
+ usd.Game = &Game{
+ Name: game,
+ Type: gameType,
+ URL: url,
+ }
+ }
+
+ return usd
+}
+
+// UpdateStatus is used to update the user's status.
+// If idle>0 then set status to idle.
+// If game!="" then set game.
+// if otherwise, set status to active, and no game.
+func (s *Session) UpdateStatus(idle int, game string) (err error) {
+ return s.UpdateStatusComplex(*newUpdateStatusData(idle, GameTypeGame, game, ""))
+}
+
+// UpdateStreamingStatus is used to update the user's streaming status.
+// If idle>0 then set status to idle.
+// If game!="" then set game.
+// If game!="" and url!="" then set the status type to streaming with the URL set.
+// if otherwise, set status to active, and no game.
+func (s *Session) UpdateStreamingStatus(idle int, game string, url string) (err error) {
+ gameType := GameTypeGame
+ if url != "" {
+ gameType = GameTypeStreaming
+ }
+ return s.UpdateStatusComplex(*newUpdateStatusData(idle, gameType, game, url))
+}
+
+// UpdateListeningStatus is used to set the user to "Listening to..."
+// If game!="" then set to what user is listening to
+// Else, set user to active and no game.
+func (s *Session) UpdateListeningStatus(game string) (err error) {
+ return s.UpdateStatusComplex(*newUpdateStatusData(0, GameTypeListening, game, ""))
+}
+
+// UpdateStatusComplex allows for sending the raw status update data untouched by discordgo.
+func (s *Session) UpdateStatusComplex(usd UpdateStatusData) (err error) {
+
+ s.RLock()
+ defer s.RUnlock()
+ if s.wsConn == nil {
+ return ErrWSNotFound
+ }
+
+ s.wsMutex.Lock()
+ err = s.wsConn.WriteJSON(updateStatusOp{3, usd})
+ s.wsMutex.Unlock()
+
+ return
+}
+
+type requestGuildMembersData struct {
+ GuildID string `json:"guild_id"`
+ Query string `json:"query"`
+ Limit int `json:"limit"`
+}
+
+type requestGuildMembersOp struct {
+ Op int `json:"op"`
+ Data requestGuildMembersData `json:"d"`
+}
+
+// RequestGuildMembers requests guild members from the gateway
+// The gateway responds with GuildMembersChunk events
+// guildID : The ID of the guild to request members of
+// query : String that username starts with, leave empty to return all members
+// limit : Max number of items to return, or 0 to request all members matched
+func (s *Session) RequestGuildMembers(guildID, query string, limit int) (err error) {
+ s.log(LogInformational, "called")
+
+ s.RLock()
+ defer s.RUnlock()
+ if s.wsConn == nil {
+ return ErrWSNotFound
+ }
+
+ data := requestGuildMembersData{
+ GuildID: guildID,
+ Query: query,
+ Limit: limit,
+ }
+
+ s.wsMutex.Lock()
+ err = s.wsConn.WriteJSON(requestGuildMembersOp{8, data})
+ s.wsMutex.Unlock()
+
+ return
+}
+
+// onEvent is the "event handler" for all messages received on the
+// Discord Gateway API websocket connection.
+//
+// If you use the AddHandler() function to register a handler for a
+// specific event this function will pass the event along to that handler.
+//
+// If you use the AddHandler() function to register a handler for the
+// "OnEvent" event then all events will be passed to that handler.
+func (s *Session) onEvent(messageType int, message []byte) (*Event, error) {
+
+ var err error
+ var reader io.Reader
+ reader = bytes.NewBuffer(message)
+
+ // If this is a compressed message, uncompress it.
+ if messageType == websocket.BinaryMessage {
+
+ z, err2 := zlib.NewReader(reader)
+ if err2 != nil {
+ s.log(LogError, "error uncompressing websocket message, %s", err)
+ return nil, err2
+ }
+
+ defer func() {
+ err3 := z.Close()
+ if err3 != nil {
+ s.log(LogWarning, "error closing zlib, %s", err)
+ }
+ }()
+
+ reader = z
+ }
+
+ // Decode the event into an Event struct.
+ var e *Event
+ decoder := json.NewDecoder(reader)
+ if err = decoder.Decode(&e); err != nil {
+ s.log(LogError, "error decoding websocket message, %s", err)
+ return e, err
+ }
+
+ s.log(LogDebug, "Op: %d, Seq: %d, Type: %s, Data: %s\n\n", e.Operation, e.Sequence, e.Type, string(e.RawData))
+
+ // Ping request.
+ // Must respond with a heartbeat packet within 5 seconds
+ if e.Operation == 1 {
+ s.log(LogInformational, "sending heartbeat in response to Op1")
+ s.wsMutex.Lock()
+ err = s.wsConn.WriteJSON(heartbeatOp{1, atomic.LoadInt64(s.sequence)})
+ s.wsMutex.Unlock()
+ if err != nil {
+ s.log(LogError, "error sending heartbeat in response to Op1")
+ return e, err
+ }
+
+ return e, nil
+ }
+
+ // Reconnect
+ // Must immediately disconnect from gateway and reconnect to new gateway.
+ if e.Operation == 7 {
+ s.log(LogInformational, "Closing and reconnecting in response to Op7")
+ s.Close()
+ s.reconnect()
+ return e, nil
+ }
+
+ // Invalid Session
+ // Must respond with a Identify packet.
+ if e.Operation == 9 {
+
+ s.log(LogInformational, "sending identify packet to gateway in response to Op9")
+
+ err = s.identify()
+ if err != nil {
+ s.log(LogWarning, "error sending gateway identify packet, %s, %s", s.gateway, err)
+ return e, err
+ }
+
+ return e, nil
+ }
+
+ if e.Operation == 10 {
+ // Op10 is handled by Open()
+ return e, nil
+ }
+
+ if e.Operation == 11 {
+ s.Lock()
+ s.LastHeartbeatAck = time.Now().UTC()
+ s.Unlock()
+ s.log(LogDebug, "got heartbeat ACK")
+ return e, nil
+ }
+
+ // Do not try to Dispatch a non-Dispatch Message
+ if e.Operation != 0 {
+ // But we probably should be doing something with them.
+ // TEMP
+ s.log(LogWarning, "unknown Op: %d, Seq: %d, Type: %s, Data: %s, message: %s", e.Operation, e.Sequence, e.Type, string(e.RawData), string(message))
+ return e, nil
+ }
+
+ // Store the message sequence
+ atomic.StoreInt64(s.sequence, e.Sequence)
+
+ // Map event to registered event handlers and pass it along to any registered handlers.
+ if eh, ok := registeredInterfaceProviders[e.Type]; ok {
+ e.Struct = eh.New()
+
+ // Attempt to unmarshal our event.
+ if err = json.Unmarshal(e.RawData, e.Struct); err != nil {
+ s.log(LogError, "error unmarshalling %s event, %s", e.Type, err)
+ }
+
+ // Send event to any registered event handlers for it's type.
+ // Because the above doesn't cancel this, in case of an error
+ // the struct could be partially populated or at default values.
+ // However, most errors are due to a single field and I feel
+ // it's better to pass along what we received than nothing at all.
+ // TODO: Think about that decision :)
+ // Either way, READY events must fire, even with errors.
+ s.handleEvent(e.Type, e.Struct)
+ } else {
+ s.log(LogWarning, "unknown event: Op: %d, Seq: %d, Type: %s, Data: %s", e.Operation, e.Sequence, e.Type, string(e.RawData))
+ }
+
+ // For legacy reasons, we send the raw event also, this could be useful for handling unknown events.
+ s.handleEvent(eventEventType, e)
+
+ return e, nil
+}
+
+// ------------------------------------------------------------------------------------------------
+// Code related to voice connections that initiate over the data websocket
+// ------------------------------------------------------------------------------------------------
+
+type voiceChannelJoinData struct {
+ GuildID *string `json:"guild_id"`
+ ChannelID *string `json:"channel_id"`
+ SelfMute bool `json:"self_mute"`
+ SelfDeaf bool `json:"self_deaf"`
+}
+
+type voiceChannelJoinOp struct {
+ Op int `json:"op"`
+ Data voiceChannelJoinData `json:"d"`
+}
+
+// ChannelVoiceJoin joins the session user to a voice channel.
+//
+// gID : Guild ID of the channel to join.
+// cID : Channel ID of the channel to join.
+// mute : If true, you will be set to muted upon joining.
+// deaf : If true, you will be set to deafened upon joining.
+func (s *Session) ChannelVoiceJoin(gID, cID string, mute, deaf bool) (voice *VoiceConnection, err error) {
+
+ s.log(LogInformational, "called")
+
+ s.RLock()
+ voice, _ = s.VoiceConnections[gID]
+ s.RUnlock()
+
+ if voice == nil {
+ voice = &VoiceConnection{}
+ s.Lock()
+ s.VoiceConnections[gID] = voice
+ s.Unlock()
+ }
+
+ voice.Lock()
+ voice.GuildID = gID
+ voice.ChannelID = cID
+ voice.deaf = deaf
+ voice.mute = mute
+ voice.session = s
+ voice.Unlock()
+
+ err = s.ChannelVoiceJoinManual(gID, cID, mute, deaf)
+ if err != nil {
+ return
+ }
+
+ // doesn't exactly work perfect yet.. TODO
+ err = voice.waitUntilConnected()
+ if err != nil {
+ s.log(LogWarning, "error waiting for voice to connect, %s", err)
+ voice.Close()
+ return
+ }
+
+ return
+}
+
+// ChannelVoiceJoinManual initiates a voice session to a voice channel, but does not complete it.
+//
+// This should only be used when the VoiceServerUpdate will be intercepted and used elsewhere.
+//
+// gID : Guild ID of the channel to join.
+// cID : Channel ID of the channel to join, leave empty to disconnect.
+// mute : If true, you will be set to muted upon joining.
+// deaf : If true, you will be set to deafened upon joining.
+func (s *Session) ChannelVoiceJoinManual(gID, cID string, mute, deaf bool) (err error) {
+
+ s.log(LogInformational, "called")
+
+ var channelID *string
+ if cID == "" {
+ channelID = nil
+ } else {
+ channelID = &cID
+ }
+
+ // Send the request to Discord that we want to join the voice channel
+ data := voiceChannelJoinOp{4, voiceChannelJoinData{&gID, channelID, mute, deaf}}
+ s.wsMutex.Lock()
+ err = s.wsConn.WriteJSON(data)
+ s.wsMutex.Unlock()
+ return
+}
+
+// onVoiceStateUpdate handles Voice State Update events on the data websocket.
+func (s *Session) onVoiceStateUpdate(st *VoiceStateUpdate) {
+
+ // If we don't have a connection for the channel, don't bother
+ if st.ChannelID == "" {
+ return
+ }
+
+ // Check if we have a voice connection to update
+ s.RLock()
+ voice, exists := s.VoiceConnections[st.GuildID]
+ s.RUnlock()
+ if !exists {
+ return
+ }
+
+ // We only care about events that are about us.
+ if s.State.User.ID != st.UserID {
+ return
+ }
+
+ // Store the SessionID for later use.
+ voice.Lock()
+ voice.UserID = st.UserID
+ voice.sessionID = st.SessionID
+ voice.ChannelID = st.ChannelID
+ voice.Unlock()
+}
+
+// onVoiceServerUpdate handles the Voice Server Update data websocket event.
+//
+// This is also fired if the Guild's voice region changes while connected
+// to a voice channel. In that case, need to re-establish connection to
+// the new region endpoint.
+func (s *Session) onVoiceServerUpdate(st *VoiceServerUpdate) {
+
+ s.log(LogInformational, "called")
+
+ s.RLock()
+ voice, exists := s.VoiceConnections[st.GuildID]
+ s.RUnlock()
+
+ // If no VoiceConnection exists, just skip this
+ if !exists {
+ return
+ }
+
+ // If currently connected to voice ws/udp, then disconnect.
+ // Has no effect if not connected.
+ voice.Close()
+
+ // Store values for later use
+ voice.Lock()
+ voice.token = st.Token
+ voice.endpoint = st.Endpoint
+ voice.GuildID = st.GuildID
+ voice.Unlock()
+
+ // Open a connection to the voice server
+ err := voice.open()
+ if err != nil {
+ s.log(LogError, "onVoiceServerUpdate voice.open, %s", err)
+ }
+}
+
+type identifyProperties struct {
+ OS string `json:"$os"`
+ Browser string `json:"$browser"`
+ Device string `json:"$device"`
+ Referer string `json:"$referer"`
+ ReferringDomain string `json:"$referring_domain"`
+}
+
+type identifyData struct {
+ Token string `json:"token"`
+ Properties identifyProperties `json:"properties"`
+ LargeThreshold int `json:"large_threshold"`
+ Compress bool `json:"compress"`
+ Shard *[2]int `json:"shard,omitempty"`
+}
+
+type identifyOp struct {
+ Op int `json:"op"`
+ Data identifyData `json:"d"`
+}
+
+// identify sends the identify packet to the gateway
+func (s *Session) identify() error {
+
+ properties := identifyProperties{runtime.GOOS,
+ "Discordgo v" + VERSION,
+ "",
+ "",
+ "",
+ }
+
+ data := identifyData{s.Token,
+ properties,
+ 250,
+ s.Compress,
+ nil,
+ }
+
+ if s.ShardCount > 1 {
+
+ if s.ShardID >= s.ShardCount {
+ return ErrWSShardBounds
+ }
+
+ data.Shard = &[2]int{s.ShardID, s.ShardCount}
+ }
+
+ op := identifyOp{2, data}
+
+ s.wsMutex.Lock()
+ err := s.wsConn.WriteJSON(op)
+ s.wsMutex.Unlock()
+
+ return err
+}
+
+func (s *Session) reconnect() {
+
+ s.log(LogInformational, "called")
+
+ var err error
+
+ if s.ShouldReconnectOnError {
+
+ wait := time.Duration(1)
+
+ for {
+ s.log(LogInformational, "trying to reconnect to gateway")
+
+ err = s.Open()
+ if err == nil {
+ s.log(LogInformational, "successfully reconnected to gateway")
+
+ // I'm not sure if this is actually needed.
+ // if the gw reconnect works properly, voice should stay alive
+ // However, there seems to be cases where something "weird"
+ // happens. So we're doing this for now just to improve
+ // stability in those edge cases.
+ s.RLock()
+ defer s.RUnlock()
+ for _, v := range s.VoiceConnections {
+
+ s.log(LogInformational, "reconnecting voice connection to guild %s", v.GuildID)
+ go v.reconnect()
+
+ // This is here just to prevent violently spamming the
+ // voice reconnects
+ time.Sleep(1 * time.Second)
+
+ }
+ return
+ }
+
+ // Certain race conditions can call reconnect() twice. If this happens, we
+ // just break out of the reconnect loop
+ if err == ErrWSAlreadyOpen {
+ s.log(LogInformational, "Websocket already exists, no need to reconnect")
+ return
+ }
+
+ s.log(LogError, "error reconnecting to gateway, %s", err)
+
+ <-time.After(wait * time.Second)
+ wait *= 2
+ if wait > 600 {
+ wait = 600
+ }
+ }
+ }
+}
+
+// Close closes a websocket and stops all listening/heartbeat goroutines.
+// TODO: Add support for Voice WS/UDP connections
+func (s *Session) Close() (err error) {
+
+ s.log(LogInformational, "called")
+ s.Lock()
+
+ s.DataReady = false
+
+ if s.listening != nil {
+ s.log(LogInformational, "closing listening channel")
+ close(s.listening)
+ s.listening = nil
+ }
+
+ // TODO: Close all active Voice Connections too
+ // this should force stop any reconnecting voice channels too
+
+ if s.wsConn != nil {
+
+ s.log(LogInformational, "sending close frame")
+ // To cleanly close a connection, a client should send a close
+ // frame and wait for the server to close the connection.
+ s.wsMutex.Lock()
+ err := s.wsConn.WriteMessage(websocket.CloseMessage, websocket.FormatCloseMessage(websocket.CloseNormalClosure, ""))
+ s.wsMutex.Unlock()
+ if err != nil {
+ s.log(LogInformational, "error closing websocket, %s", err)
+ }
+
+ // TODO: Wait for Discord to actually close the connection.
+ time.Sleep(1 * time.Second)
+
+ s.log(LogInformational, "closing gateway websocket")
+ err = s.wsConn.Close()
+ if err != nil {
+ s.log(LogInformational, "error closing websocket, %s", err)
+ }
+
+ s.wsConn = nil
+ }
+
+ s.Unlock()
+
+ s.log(LogInformational, "emit disconnect event")
+ s.handleEvent(disconnectEventType, &Disconnect{})
+
+ return
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/LICENSE b/vendor/github.com/matterbridge/msgraph.go/LICENSE
new file mode 100644
index 00000000..261eeb9e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ACLModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ACLModel.go
new file mode 100644
index 00000000..5b8d85d4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ACLModel.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/matterbridge/msgraph.go/beta/ACLTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ACLTypeEnum.go
new file mode 100644
index 00000000..8fbbb779
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ACLTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ACLType undocumented
+type ACLType int
+
+const (
+ // ACLTypeVUser undocumented
+ ACLTypeVUser ACLType = 1
+ // ACLTypeVGroup undocumented
+ ACLTypeVGroup ACLType = 2
+ // ACLTypeVEveryone undocumented
+ ACLTypeVEveryone ACLType = 3
+ // ACLTypeVEveryoneExceptGuests undocumented
+ ACLTypeVEveryoneExceptGuests ACLType = 4
+)
+
+// ACLTypePUser returns a pointer to ACLTypeVUser
+func ACLTypePUser() *ACLType {
+ v := ACLTypeVUser
+ return &v
+}
+
+// ACLTypePGroup returns a pointer to ACLTypeVGroup
+func ACLTypePGroup() *ACLType {
+ v := ACLTypeVGroup
+ return &v
+}
+
+// ACLTypePEveryone returns a pointer to ACLTypeVEveryone
+func ACLTypePEveryone() *ACLType {
+ v := ACLTypeVEveryone
+ return &v
+}
+
+// ACLTypePEveryoneExceptGuests returns a pointer to ACLTypeVEveryoneExceptGuests
+func ACLTypePEveryoneExceptGuests() *ACLType {
+ v := ACLTypeVEveryoneExceptGuests
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/APIApplicationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/APIApplicationModel.go
new file mode 100644
index 00000000..c0e379cd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/APIApplicationModel.go
@@ -0,0 +1,19 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/APIServicePrincipalModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/APIServicePrincipalModel.go
new file mode 100644
index 00000000..509cb4ca
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/APIServicePrincipalModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AadUserConversationMemberModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AadUserConversationMemberModel.go
new file mode 100644
index 00000000..0ea6c88e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AadUserConversationMemberModel.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/matterbridge/msgraph.go/beta/AadUserConversationMemberRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AadUserConversationMemberRequest.go
new file mode 100644
index 00000000..336954e0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AadUserConversationMemberRequest.go
@@ -0,0 +1,45 @@
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/AccessActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessActionModel.go
new file mode 100644
index 00000000..3edb6007
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessActionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessAction undocumented
+type AccessAction struct {
+ // Object is the base model of AccessAction
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessLevelEnum.go
new file mode 100644
index 00000000..89b0a98e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessLevelEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessLevel undocumented
+type AccessLevel int
+
+const (
+ // AccessLevelVEveryone undocumented
+ AccessLevelVEveryone AccessLevel = 0
+ // AccessLevelVInvited undocumented
+ AccessLevelVInvited AccessLevel = 1
+ // AccessLevelVLocked undocumented
+ AccessLevelVLocked AccessLevel = 2
+ // AccessLevelVSameEnterprise undocumented
+ AccessLevelVSameEnterprise AccessLevel = 3
+ // AccessLevelVSameEnterpriseAndFederated undocumented
+ AccessLevelVSameEnterpriseAndFederated AccessLevel = 4
+)
+
+// AccessLevelPEveryone returns a pointer to AccessLevelVEveryone
+func AccessLevelPEveryone() *AccessLevel {
+ v := AccessLevelVEveryone
+ return &v
+}
+
+// AccessLevelPInvited returns a pointer to AccessLevelVInvited
+func AccessLevelPInvited() *AccessLevel {
+ v := AccessLevelVInvited
+ return &v
+}
+
+// AccessLevelPLocked returns a pointer to AccessLevelVLocked
+func AccessLevelPLocked() *AccessLevel {
+ v := AccessLevelVLocked
+ return &v
+}
+
+// AccessLevelPSameEnterprise returns a pointer to AccessLevelVSameEnterprise
+func AccessLevelPSameEnterprise() *AccessLevel {
+ v := AccessLevelVSameEnterprise
+ return &v
+}
+
+// AccessLevelPSameEnterpriseAndFederated returns a pointer to AccessLevelVSameEnterpriseAndFederated
+func AccessLevelPSameEnterpriseAndFederated() *AccessLevel {
+ v := AccessLevelVSameEnterpriseAndFederated
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentModel.go
new file mode 100644
index 00000000..f214be9d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyModel.go
new file mode 100644
index 00000000..f944844f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyRequest.go
new file mode 100644
index 00000000..65f23f37
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequest.go
new file mode 100644
index 00000000..58823cd4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentRequestObject collection
+func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentResourceRole collection
+func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentResourceRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectAction.go
new file mode 100644
index 00000000..8c1edaee
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccessPackageAssignmentRequestObjectCancelRequestParameter undocumented
+type AccessPackageAssignmentRequestObjectCancelRequestParameter struct {
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectModel.go
new file mode 100644
index 00000000..57aef4f8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectRequest.go
new file mode 100644
index 00000000..e9be8160
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectRequest.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentResourceRoleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentResourceRoleModel.go
new file mode 100644
index 00000000..bf4cac48
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentResourceRoleModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentResourceRoleRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentResourceRoleRequest.go
new file mode 100644
index 00000000..5e4b1845
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentResourceRoleRequest.go
@@ -0,0 +1,160 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignment collection
+func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogModel.go
new file mode 100644
index 00000000..c56d718b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogRequest.go
new file mode 100644
index 00000000..d41075ff
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogRequest.go
@@ -0,0 +1,421 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceRole collection
+func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceScope collection
+func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceScope, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResource collection
+func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackage collection
+func (r *AccessPackageCatalogAccessPackagesCollectionRequest) Get(ctx context.Context) ([]AccessPackage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageModel.go
new file mode 100644
index 00000000..7164d2a1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageRequest.go
new file mode 100644
index 00000000..5b42ccb0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentPolicy collection
+func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceRoleScope collection
+func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRoleScope, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceModel.go
new file mode 100644
index 00000000..dcd9fb10
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequest.go
new file mode 100644
index 00000000..709deb83
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceRole collection
+func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceScope collection
+func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceScope, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequestObjectModel.go
new file mode 100644
index 00000000..8f2fa971
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequestObjectModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequestObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequestObjectRequest.go
new file mode 100644
index 00000000..20c75bae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequestObjectRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleModel.go
new file mode 100644
index 00000000..eebdd213
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleRequest.go
new file mode 100644
index 00000000..65a6bf90
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// AccessPackageResource is navigation property
+func (b *AccessPackageResourceRoleRequestBuilder) AccessPackageResource() *AccessPackageResourceRequestBuilder {
+ bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResource"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeModel.go
new file mode 100644
index 00000000..7da8949e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeRequest.go
new file mode 100644
index 00000000..583e5027
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeModel.go
new file mode 100644
index 00000000..e7067bb9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeRequest.go
new file mode 100644
index 00000000..6ca35647
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// AccessPackageResource is navigation property
+func (b *AccessPackageResourceScopeRequestBuilder) AccessPackageResource() *AccessPackageResourceRequestBuilder {
+ bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResource"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectModel.go
new file mode 100644
index 00000000..2b55bc3b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectRequest.go
new file mode 100644
index 00000000..b1507ab1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewAction.go
new file mode 100644
index 00000000..fac16218
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewAction.go
@@ -0,0 +1,125 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccessReviewStopRequestParameter undocumented
+type AccessReviewStopRequestParameter struct {
+}
+
+// AccessReviewSendReminderRequestParameter undocumented
+type AccessReviewSendReminderRequestParameter struct {
+}
+
+// AccessReviewResetDecisionsRequestParameter undocumented
+type AccessReviewResetDecisionsRequestParameter struct {
+}
+
+// AccessReviewApplyDecisionsRequestParameter undocumented
+type AccessReviewApplyDecisionsRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/AccessReviewDecisionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewDecisionModel.go
new file mode 100644
index 00000000..5f8f8045
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewDecisionModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewDecisionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewDecisionRequest.go
new file mode 100644
index 00000000..df3309c5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewDecisionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewModel.go
new file mode 100644
index 00000000..0c19d40c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRecurrenceSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRecurrenceSettingsModel.go
new file mode 100644
index 00000000..a7663fac
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRecurrenceSettingsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRequest.go
new file mode 100644
index 00000000..efa97564
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRequest.go
@@ -0,0 +1,421 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReviewDecision collection
+func (r *AccessReviewDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReview collection
+func (r *AccessReviewInstancesCollectionRequest) Get(ctx context.Context) ([]AccessReview, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReviewDecision collection
+func (r *AccessReviewMyDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReviewReviewer collection
+func (r *AccessReviewReviewersCollectionRequest) Get(ctx context.Context) ([]AccessReviewReviewer, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/AccessReviewReviewerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewReviewerModel.go
new file mode 100644
index 00000000..e461bb63
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewReviewerModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewReviewerRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewReviewerRequest.go
new file mode 100644
index 00000000..a98827ed
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewReviewerRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewSettingsModel.go
new file mode 100644
index 00000000..ac42c59a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewSettingsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AccessScopeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessScopeEnum.go
new file mode 100644
index 00000000..39e7e972
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessScopeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessScope undocumented
+type AccessScope int
+
+const (
+ // AccessScopeVInOrganization undocumented
+ AccessScopeVInOrganization AccessScope = 0
+ // AccessScopeVNotInOrganization undocumented
+ AccessScopeVNotInOrganization AccessScope = 1
+)
+
+// AccessScopePInOrganization returns a pointer to AccessScopeVInOrganization
+func AccessScopePInOrganization() *AccessScope {
+ v := AccessScopeVInOrganization
+ return &v
+}
+
+// AccessScopePNotInOrganization returns a pointer to AccessScopeVNotInOrganization
+func AccessScopePNotInOrganization() *AccessScope {
+ v := AccessScopeVNotInOrganization
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccessTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccessTypeEnum.go
new file mode 100644
index 00000000..7095434b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccessTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessType undocumented
+type AccessType int
+
+const (
+ // AccessTypeVGrant undocumented
+ AccessTypeVGrant AccessType = 1
+ // AccessTypeVDeny undocumented
+ AccessTypeVDeny AccessType = 2
+)
+
+// AccessTypePGrant returns a pointer to AccessTypeVGrant
+func AccessTypePGrant() *AccessType {
+ v := AccessTypeVGrant
+ return &v
+}
+
+// AccessTypePDeny returns a pointer to AccessTypeVDeny
+func AccessTypePDeny() *AccessType {
+ v := AccessTypeVDeny
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccountAliasModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccountAliasModel.go
new file mode 100644
index 00000000..93061477
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccountAliasModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AccountModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccountModel.go
new file mode 100644
index 00000000..535a6e27
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccountModel.go
@@ -0,0 +1,23 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccountRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccountRequest.go
new file mode 100644
index 00000000..8dcf76f6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccountRequest.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/matterbridge/msgraph.go/beta/AccountStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccountStatusEnum.go
new file mode 100644
index 00000000..9f1f8696
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AccountStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccountStatus undocumented
+type AccountStatus int
+
+const (
+ // AccountStatusVUnknown undocumented
+ AccountStatusVUnknown AccountStatus = 0
+ // AccountStatusVStaged undocumented
+ AccountStatusVStaged AccountStatus = 1
+ // AccountStatusVActive undocumented
+ AccountStatusVActive AccountStatus = 2
+ // AccountStatusVSuspended undocumented
+ AccountStatusVSuspended AccountStatus = 3
+ // AccountStatusVDeleted undocumented
+ AccountStatusVDeleted AccountStatus = 4
+ // AccountStatusVUnknownFutureValue undocumented
+ AccountStatusVUnknownFutureValue AccountStatus = 127
+)
+
+// AccountStatusPUnknown returns a pointer to AccountStatusVUnknown
+func AccountStatusPUnknown() *AccountStatus {
+ v := AccountStatusVUnknown
+ return &v
+}
+
+// AccountStatusPStaged returns a pointer to AccountStatusVStaged
+func AccountStatusPStaged() *AccountStatus {
+ v := AccountStatusVStaged
+ return &v
+}
+
+// AccountStatusPActive returns a pointer to AccountStatusVActive
+func AccountStatusPActive() *AccountStatus {
+ v := AccountStatusVActive
+ return &v
+}
+
+// AccountStatusPSuspended returns a pointer to AccountStatusVSuspended
+func AccountStatusPSuspended() *AccountStatus {
+ v := AccountStatusVSuspended
+ return &v
+}
+
+// AccountStatusPDeleted returns a pointer to AccountStatusVDeleted
+func AccountStatusPDeleted() *AccountStatus {
+ v := AccountStatusVDeleted
+ return &v
+}
+
+// AccountStatusPUnknownFutureValue returns a pointer to AccountStatusVUnknownFutureValue
+func AccountStatusPUnknownFutureValue() *AccountStatus {
+ v := AccountStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ActionSourceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ActionSourceEnum.go
new file mode 100644
index 00000000..c086893c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ActionSourceEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ActionSource undocumented
+type ActionSource int
+
+const (
+ // ActionSourceVManual undocumented
+ ActionSourceVManual ActionSource = 0
+ // ActionSourceVAutomatic undocumented
+ ActionSourceVAutomatic ActionSource = 1
+ // ActionSourceVRecommended undocumented
+ ActionSourceVRecommended ActionSource = 2
+ // ActionSourceVDefault undocumented
+ ActionSourceVDefault ActionSource = 3
+)
+
+// ActionSourcePManual returns a pointer to ActionSourceVManual
+func ActionSourcePManual() *ActionSource {
+ v := ActionSourceVManual
+ return &v
+}
+
+// ActionSourcePAutomatic returns a pointer to ActionSourceVAutomatic
+func ActionSourcePAutomatic() *ActionSource {
+ v := ActionSourceVAutomatic
+ return &v
+}
+
+// ActionSourcePRecommended returns a pointer to ActionSourceVRecommended
+func ActionSourcePRecommended() *ActionSource {
+ v := ActionSourceVRecommended
+ return &v
+}
+
+// ActionSourcePDefault returns a pointer to ActionSourceVDefault
+func ActionSourcePDefault() *ActionSource {
+ v := ActionSourceVDefault
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ActionStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ActionStateEnum.go
new file mode 100644
index 00000000..6ecda429
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ActionStateEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ActionState undocumented
+type ActionState int
+
+const (
+ // ActionStateVNone undocumented
+ ActionStateVNone ActionState = 0
+ // ActionStateVPending undocumented
+ ActionStateVPending ActionState = 1
+ // ActionStateVCanceled undocumented
+ ActionStateVCanceled ActionState = 2
+ // ActionStateVActive undocumented
+ ActionStateVActive ActionState = 3
+ // ActionStateVDone undocumented
+ ActionStateVDone ActionState = 4
+ // ActionStateVFailed undocumented
+ ActionStateVFailed ActionState = 5
+ // ActionStateVNotSupported undocumented
+ ActionStateVNotSupported ActionState = 6
+)
+
+// ActionStatePNone returns a pointer to ActionStateVNone
+func ActionStatePNone() *ActionState {
+ v := ActionStateVNone
+ return &v
+}
+
+// ActionStatePPending returns a pointer to ActionStateVPending
+func ActionStatePPending() *ActionState {
+ v := ActionStateVPending
+ return &v
+}
+
+// ActionStatePCanceled returns a pointer to ActionStateVCanceled
+func ActionStatePCanceled() *ActionState {
+ v := ActionStateVCanceled
+ return &v
+}
+
+// ActionStatePActive returns a pointer to ActionStateVActive
+func ActionStatePActive() *ActionState {
+ v := ActionStateVActive
+ return &v
+}
+
+// ActionStatePDone returns a pointer to ActionStateVDone
+func ActionStatePDone() *ActionState {
+ v := ActionStateVDone
+ return &v
+}
+
+// ActionStatePFailed returns a pointer to ActionStateVFailed
+func ActionStatePFailed() *ActionState {
+ v := ActionStateVFailed
+ return &v
+}
+
+// ActionStatePNotSupported returns a pointer to ActionStateVNotSupported
+func ActionStatePNotSupported() *ActionState {
+ v := ActionStateVNotSupported
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileModel.go
new file mode 100644
index 00000000..d0358053
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileModel.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/matterbridge/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileRequest.go
new file mode 100644
index 00000000..568da822
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileRequest.go
@@ -0,0 +1,45 @@
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/ActivityDomainEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ActivityDomainEnum.go
new file mode 100644
index 00000000..349244fb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ActivityDomainEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ActivityDomain undocumented
+type ActivityDomain int
+
+const (
+ // ActivityDomainVUnknown undocumented
+ ActivityDomainVUnknown ActivityDomain = 0
+ // ActivityDomainVWork undocumented
+ ActivityDomainVWork ActivityDomain = 1
+ // ActivityDomainVPersonal undocumented
+ ActivityDomainVPersonal ActivityDomain = 2
+ // ActivityDomainVUnrestricted undocumented
+ ActivityDomainVUnrestricted ActivityDomain = 3
+)
+
+// ActivityDomainPUnknown returns a pointer to ActivityDomainVUnknown
+func ActivityDomainPUnknown() *ActivityDomain {
+ v := ActivityDomainVUnknown
+ return &v
+}
+
+// ActivityDomainPWork returns a pointer to ActivityDomainVWork
+func ActivityDomainPWork() *ActivityDomain {
+ v := ActivityDomainVWork
+ return &v
+}
+
+// ActivityDomainPPersonal returns a pointer to ActivityDomainVPersonal
+func ActivityDomainPPersonal() *ActivityDomain {
+ v := ActivityDomainVPersonal
+ return &v
+}
+
+// ActivityDomainPUnrestricted returns a pointer to ActivityDomainVUnrestricted
+func ActivityDomainPUnrestricted() *ActivityDomain {
+ v := ActivityDomainVUnrestricted
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemModel.go
new file mode 100644
index 00000000..78560a89
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemModel.go
@@ -0,0 +1,29 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemRequest.go
new file mode 100644
index 00000000..0590acdd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemRequest.go
@@ -0,0 +1,45 @@
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/ActivityStatisticsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ActivityStatisticsModel.go
new file mode 100644
index 00000000..76e83ae9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ActivityStatisticsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ActivityStatistics undocumented
+type ActivityStatistics struct {
+ // Entity is the base model of ActivityStatistics
+ Entity
+ // Activity undocumented
+ Activity *AnalyticsActivityType `json:"activity,omitempty"`
+ // StartDate undocumented
+ StartDate *time.Time `json:"startDate,omitempty"`
+ // EndDate undocumented
+ EndDate *time.Time `json:"endDate,omitempty"`
+ // TimeZoneUsed undocumented
+ TimeZoneUsed *string `json:"timeZoneUsed,omitempty"`
+ // Duration undocumented
+ Duration *time.Duration `json:"duration,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ActivityStatisticsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ActivityStatisticsRequest.go
new file mode 100644
index 00000000..5dcbe600
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ActivityStatisticsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/ActivityTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ActivityTypeEnum.go
new file mode 100644
index 00000000..4601c1ec
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ActivityTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ActivityType undocumented
+type ActivityType int
+
+const (
+ // ActivityTypeVSignin undocumented
+ ActivityTypeVSignin ActivityType = 0
+ // ActivityTypeVUser undocumented
+ ActivityTypeVUser ActivityType = 1
+ // ActivityTypeVUnknownFutureValue undocumented
+ ActivityTypeVUnknownFutureValue ActivityType = 2
+)
+
+// ActivityTypePSignin returns a pointer to ActivityTypeVSignin
+func ActivityTypePSignin() *ActivityType {
+ v := ActivityTypeVSignin
+ return &v
+}
+
+// ActivityTypePUser returns a pointer to ActivityTypeVUser
+func ActivityTypePUser() *ActivityType {
+ v := ActivityTypeVUser
+ return &v
+}
+
+// ActivityTypePUnknownFutureValue returns a pointer to ActivityTypeVUnknownFutureValue
+func ActivityTypePUnknownFutureValue() *ActivityType {
+ v := ActivityTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AddContentFooterActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AddContentFooterActionModel.go
new file mode 100644
index 00000000..9b1d1eec
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AddContentFooterActionModel.go
@@ -0,0 +1,23 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AddContentHeaderActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AddContentHeaderActionModel.go
new file mode 100644
index 00000000..982db1ca
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AddContentHeaderActionModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AddFooterModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AddFooterModel.go
new file mode 100644
index 00000000..4e56be3f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AddFooterModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AddHeaderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AddHeaderModel.go
new file mode 100644
index 00000000..7e08b8cf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AddHeaderModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AddInModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AddInModel.go
new file mode 100644
index 00000000..94cae21d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AddInModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AddWatermarkActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AddWatermarkActionModel.go
new file mode 100644
index 00000000..869560fb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AddWatermarkActionModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AddWatermarkModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AddWatermarkModel.go
new file mode 100644
index 00000000..f79de2a8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AddWatermarkModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AddWatermark undocumented
+type AddWatermark struct {
+ // MarkContent is the base model of AddWatermark
+ MarkContent
+ // Orientation undocumented
+ Orientation *PageOrientation `json:"orientation,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AdminConsentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AdminConsentModel.go
new file mode 100644
index 00000000..10e968fa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AdminConsentModel.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/matterbridge/msgraph.go/beta/AdminConsentStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AdminConsentStateEnum.go
new file mode 100644
index 00000000..dabb3ceb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AdminConsentStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AdminConsentState undocumented
+type AdminConsentState int
+
+const (
+ // AdminConsentStateVNotConfigured undocumented
+ AdminConsentStateVNotConfigured AdminConsentState = 0
+ // AdminConsentStateVGranted undocumented
+ AdminConsentStateVGranted AdminConsentState = 1
+ // AdminConsentStateVNotGranted undocumented
+ AdminConsentStateVNotGranted AdminConsentState = 2
+)
+
+// AdminConsentStatePNotConfigured returns a pointer to AdminConsentStateVNotConfigured
+func AdminConsentStatePNotConfigured() *AdminConsentState {
+ v := AdminConsentStateVNotConfigured
+ return &v
+}
+
+// AdminConsentStatePGranted returns a pointer to AdminConsentStateVGranted
+func AdminConsentStatePGranted() *AdminConsentState {
+ v := AdminConsentStateVGranted
+ return &v
+}
+
+// AdminConsentStatePNotGranted returns a pointer to AdminConsentStateVNotGranted
+func AdminConsentStatePNotGranted() *AdminConsentState {
+ v := AdminConsentStateVNotGranted
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AdministrativeUnitModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AdministrativeUnitModel.go
new file mode 100644
index 00000000..8e9d3ec2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AdministrativeUnitModel.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/matterbridge/msgraph.go/beta/AdministrativeUnitRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AdministrativeUnitRequest.go
new file mode 100644
index 00000000..b3c4909e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AdministrativeUnitRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *AdministrativeUnitExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *AdministrativeUnitMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ScopedRoleMembership collection
+func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/AdministratorConfiguredDeviceComplianceStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AdministratorConfiguredDeviceComplianceStateEnum.go
new file mode 100644
index 00000000..3823caa0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AdministratorConfiguredDeviceComplianceStateEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AdministratorConfiguredDeviceComplianceState undocumented
+type AdministratorConfiguredDeviceComplianceState int
+
+const (
+ // AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy undocumented
+ AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy AdministratorConfiguredDeviceComplianceState = 0
+ // AdministratorConfiguredDeviceComplianceStateVNonCompliant undocumented
+ AdministratorConfiguredDeviceComplianceStateVNonCompliant AdministratorConfiguredDeviceComplianceState = 1
+)
+
+// AdministratorConfiguredDeviceComplianceStatePBasedOnDeviceCompliancePolicy returns a pointer to AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy
+func AdministratorConfiguredDeviceComplianceStatePBasedOnDeviceCompliancePolicy() *AdministratorConfiguredDeviceComplianceState {
+ v := AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy
+ return &v
+}
+
+// AdministratorConfiguredDeviceComplianceStatePNonCompliant returns a pointer to AdministratorConfiguredDeviceComplianceStateVNonCompliant
+func AdministratorConfiguredDeviceComplianceStatePNonCompliant() *AdministratorConfiguredDeviceComplianceState {
+ v := AdministratorConfiguredDeviceComplianceStateVNonCompliant
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedBitLockerStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedBitLockerStateEnum.go
new file mode 100644
index 00000000..fcea170c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedBitLockerStateEnum.go
@@ -0,0 +1,145 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AdvancedBitLockerState undocumented
+type AdvancedBitLockerState int
+
+const (
+ // AdvancedBitLockerStateVSuccess undocumented
+ AdvancedBitLockerStateVSuccess AdvancedBitLockerState = 0
+ // AdvancedBitLockerStateVNoUserConsent undocumented
+ AdvancedBitLockerStateVNoUserConsent AdvancedBitLockerState = 1
+ // AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch undocumented
+ AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch AdvancedBitLockerState = 2
+ // AdvancedBitLockerStateVOsVolumeTpmRequired undocumented
+ AdvancedBitLockerStateVOsVolumeTpmRequired AdvancedBitLockerState = 4
+ // AdvancedBitLockerStateVOsVolumeTpmOnlyRequired undocumented
+ AdvancedBitLockerStateVOsVolumeTpmOnlyRequired AdvancedBitLockerState = 8
+ // AdvancedBitLockerStateVOsVolumeTpmPinRequired undocumented
+ AdvancedBitLockerStateVOsVolumeTpmPinRequired AdvancedBitLockerState = 16
+ // AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired undocumented
+ AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired AdvancedBitLockerState = 32
+ // AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired undocumented
+ AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired AdvancedBitLockerState = 64
+ // AdvancedBitLockerStateVOsVolumeUnprotected undocumented
+ AdvancedBitLockerStateVOsVolumeUnprotected AdvancedBitLockerState = 128
+ // AdvancedBitLockerStateVRecoveryKeyBackupFailed undocumented
+ AdvancedBitLockerStateVRecoveryKeyBackupFailed AdvancedBitLockerState = 256
+ // AdvancedBitLockerStateVFixedDriveNotEncrypted undocumented
+ AdvancedBitLockerStateVFixedDriveNotEncrypted AdvancedBitLockerState = 512
+ // AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch undocumented
+ AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch AdvancedBitLockerState = 1024
+ // AdvancedBitLockerStateVLoggedOnUserNonAdmin undocumented
+ AdvancedBitLockerStateVLoggedOnUserNonAdmin AdvancedBitLockerState = 2048
+ // AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured undocumented
+ AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured AdvancedBitLockerState = 4096
+ // AdvancedBitLockerStateVTpmNotAvailable undocumented
+ AdvancedBitLockerStateVTpmNotAvailable AdvancedBitLockerState = 8192
+ // AdvancedBitLockerStateVTpmNotReady undocumented
+ AdvancedBitLockerStateVTpmNotReady AdvancedBitLockerState = 16384
+ // AdvancedBitLockerStateVNetworkError undocumented
+ AdvancedBitLockerStateVNetworkError AdvancedBitLockerState = 32768
+)
+
+// AdvancedBitLockerStatePSuccess returns a pointer to AdvancedBitLockerStateVSuccess
+func AdvancedBitLockerStatePSuccess() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVSuccess
+ return &v
+}
+
+// AdvancedBitLockerStatePNoUserConsent returns a pointer to AdvancedBitLockerStateVNoUserConsent
+func AdvancedBitLockerStatePNoUserConsent() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVNoUserConsent
+ return &v
+}
+
+// AdvancedBitLockerStatePOsVolumeEncryptionMethodMismatch returns a pointer to AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch
+func AdvancedBitLockerStatePOsVolumeEncryptionMethodMismatch() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch
+ return &v
+}
+
+// AdvancedBitLockerStatePOsVolumeTpmRequired returns a pointer to AdvancedBitLockerStateVOsVolumeTpmRequired
+func AdvancedBitLockerStatePOsVolumeTpmRequired() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVOsVolumeTpmRequired
+ return &v
+}
+
+// AdvancedBitLockerStatePOsVolumeTpmOnlyRequired returns a pointer to AdvancedBitLockerStateVOsVolumeTpmOnlyRequired
+func AdvancedBitLockerStatePOsVolumeTpmOnlyRequired() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVOsVolumeTpmOnlyRequired
+ return &v
+}
+
+// AdvancedBitLockerStatePOsVolumeTpmPinRequired returns a pointer to AdvancedBitLockerStateVOsVolumeTpmPinRequired
+func AdvancedBitLockerStatePOsVolumeTpmPinRequired() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVOsVolumeTpmPinRequired
+ return &v
+}
+
+// AdvancedBitLockerStatePOsVolumeTpmStartupKeyRequired returns a pointer to AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired
+func AdvancedBitLockerStatePOsVolumeTpmStartupKeyRequired() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired
+ return &v
+}
+
+// AdvancedBitLockerStatePOsVolumeTpmPinStartupKeyRequired returns a pointer to AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired
+func AdvancedBitLockerStatePOsVolumeTpmPinStartupKeyRequired() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired
+ return &v
+}
+
+// AdvancedBitLockerStatePOsVolumeUnprotected returns a pointer to AdvancedBitLockerStateVOsVolumeUnprotected
+func AdvancedBitLockerStatePOsVolumeUnprotected() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVOsVolumeUnprotected
+ return &v
+}
+
+// AdvancedBitLockerStatePRecoveryKeyBackupFailed returns a pointer to AdvancedBitLockerStateVRecoveryKeyBackupFailed
+func AdvancedBitLockerStatePRecoveryKeyBackupFailed() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVRecoveryKeyBackupFailed
+ return &v
+}
+
+// AdvancedBitLockerStatePFixedDriveNotEncrypted returns a pointer to AdvancedBitLockerStateVFixedDriveNotEncrypted
+func AdvancedBitLockerStatePFixedDriveNotEncrypted() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVFixedDriveNotEncrypted
+ return &v
+}
+
+// AdvancedBitLockerStatePFixedDriveEncryptionMethodMismatch returns a pointer to AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch
+func AdvancedBitLockerStatePFixedDriveEncryptionMethodMismatch() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch
+ return &v
+}
+
+// AdvancedBitLockerStatePLoggedOnUserNonAdmin returns a pointer to AdvancedBitLockerStateVLoggedOnUserNonAdmin
+func AdvancedBitLockerStatePLoggedOnUserNonAdmin() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVLoggedOnUserNonAdmin
+ return &v
+}
+
+// AdvancedBitLockerStatePWindowsRecoveryEnvironmentNotConfigured returns a pointer to AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured
+func AdvancedBitLockerStatePWindowsRecoveryEnvironmentNotConfigured() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured
+ return &v
+}
+
+// AdvancedBitLockerStatePTpmNotAvailable returns a pointer to AdvancedBitLockerStateVTpmNotAvailable
+func AdvancedBitLockerStatePTpmNotAvailable() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVTpmNotAvailable
+ return &v
+}
+
+// AdvancedBitLockerStatePTpmNotReady returns a pointer to AdvancedBitLockerStateVTpmNotReady
+func AdvancedBitLockerStatePTpmNotReady() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVTpmNotReady
+ return &v
+}
+
+// AdvancedBitLockerStatePNetworkError returns a pointer to AdvancedBitLockerStateVNetworkError
+func AdvancedBitLockerStatePNetworkError() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVNetworkError
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateModel.go
new file mode 100644
index 00000000..f42f45e5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateModel.go
@@ -0,0 +1,35 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateRequest.go
new file mode 100644
index 00000000..d5ef7288
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryModel.go
new file mode 100644
index 00000000..2f5d464b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryRequest.go
new file mode 100644
index 00000000..e728cbbb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AdvancedThreatProtectionOnboardingDeviceSettingState collection
+func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest) Get(ctx context.Context) ([]AdvancedThreatProtectionOnboardingDeviceSettingState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/AgedAccountsPayableModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsPayableModel.go
new file mode 100644
index 00000000..af0615c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsPayableModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"agedAsOfDate,omitempty"`
+ // PeriodLengthFilter undocumented
+ PeriodLengthFilter *string `json:"periodLengthFilter,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsPayableRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsPayableRequest.go
new file mode 100644
index 00000000..b31f3be1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsPayableRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableModel.go
new file mode 100644
index 00000000..1124bef3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"agedAsOfDate,omitempty"`
+ // PeriodLengthFilter undocumented
+ PeriodLengthFilter *string `json:"periodLengthFilter,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableRequest.go
new file mode 100644
index 00000000..38f5bd81
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/AgentStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AgentStatusEnum.go
new file mode 100644
index 00000000..687bf26f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AgentStatusEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AgentStatus undocumented
+type AgentStatus int
+
+const (
+ // AgentStatusVActive undocumented
+ AgentStatusVActive AgentStatus = 0
+ // AgentStatusVInactive undocumented
+ AgentStatusVInactive AgentStatus = 1
+)
+
+// AgentStatusPActive returns a pointer to AgentStatusVActive
+func AgentStatusPActive() *AgentStatus {
+ v := AgentStatusVActive
+ return &v
+}
+
+// AgentStatusPInactive returns a pointer to AgentStatusVInactive
+func AgentStatusPInactive() *AgentStatus {
+ v := AgentStatusVInactive
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceModel.go
new file mode 100644
index 00000000..b82a1b74
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceRequest.go
new file mode 100644
index 00000000..b84f4e42
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceStateEnum.go
new file mode 100644
index 00000000..368c4cc8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceStateEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AgreementAcceptanceState undocumented
+type AgreementAcceptanceState int
+
+const (
+ // AgreementAcceptanceStateVAccepted undocumented
+ AgreementAcceptanceStateVAccepted AgreementAcceptanceState = 2
+ // AgreementAcceptanceStateVDeclined undocumented
+ AgreementAcceptanceStateVDeclined AgreementAcceptanceState = 3
+)
+
+// AgreementAcceptanceStatePAccepted returns a pointer to AgreementAcceptanceStateVAccepted
+func AgreementAcceptanceStatePAccepted() *AgreementAcceptanceState {
+ v := AgreementAcceptanceStateVAccepted
+ return &v
+}
+
+// AgreementAcceptanceStatePDeclined returns a pointer to AgreementAcceptanceStateVDeclined
+func AgreementAcceptanceStatePDeclined() *AgreementAcceptanceState {
+ v := AgreementAcceptanceStateVDeclined
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileDataModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileDataModel.go
new file mode 100644
index 00000000..f238e25a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileDataModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AgreementFileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileModel.go
new file mode 100644
index 00000000..7e020509
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileRequest.go
new file mode 100644
index 00000000..dec4ffb9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/AgreementModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementModel.go
new file mode 100644
index 00000000..486d6c47
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AgreementRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementRequest.go
new file mode 100644
index 00000000..b62cc18e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AgreementRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AgreementFile collection
+func (r *AgreementFilesCollectionRequest) Get(ctx context.Context) ([]AgreementFile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/AirPrintDestinationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AirPrintDestinationModel.go
new file mode 100644
index 00000000..f8f9b2eb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AirPrintDestinationModel.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/matterbridge/msgraph.go/beta/AlbumModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AlbumModel.go
new file mode 100644
index 00000000..fb0f47b3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AlbumModel.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/matterbridge/msgraph.go/beta/AlertAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/AlertAction.go
new file mode 100644
index 00000000..68dc1ebd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AlertAction.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// AlertCollectionUpdateAlertsRequestParameter undocumented
+type AlertCollectionUpdateAlertsRequestParameter struct {
+ // Value undocumented
+ Value []Alert `json:"value,omitempty"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]Alert, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AlertFeedbackEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AlertFeedbackEnum.go
new file mode 100644
index 00000000..a61fedaf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AlertFeedbackEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AlertFeedback undocumented
+type AlertFeedback int
+
+const (
+ // AlertFeedbackVUnknown undocumented
+ AlertFeedbackVUnknown AlertFeedback = 0
+ // AlertFeedbackVTruePositive undocumented
+ AlertFeedbackVTruePositive AlertFeedback = 1
+ // AlertFeedbackVFalsePositive undocumented
+ AlertFeedbackVFalsePositive AlertFeedback = 2
+ // AlertFeedbackVBenignPositive undocumented
+ AlertFeedbackVBenignPositive AlertFeedback = 3
+ // AlertFeedbackVUnknownFutureValue undocumented
+ AlertFeedbackVUnknownFutureValue AlertFeedback = 127
+)
+
+// AlertFeedbackPUnknown returns a pointer to AlertFeedbackVUnknown
+func AlertFeedbackPUnknown() *AlertFeedback {
+ v := AlertFeedbackVUnknown
+ return &v
+}
+
+// AlertFeedbackPTruePositive returns a pointer to AlertFeedbackVTruePositive
+func AlertFeedbackPTruePositive() *AlertFeedback {
+ v := AlertFeedbackVTruePositive
+ return &v
+}
+
+// AlertFeedbackPFalsePositive returns a pointer to AlertFeedbackVFalsePositive
+func AlertFeedbackPFalsePositive() *AlertFeedback {
+ v := AlertFeedbackVFalsePositive
+ return &v
+}
+
+// AlertFeedbackPBenignPositive returns a pointer to AlertFeedbackVBenignPositive
+func AlertFeedbackPBenignPositive() *AlertFeedback {
+ v := AlertFeedbackVBenignPositive
+ return &v
+}
+
+// AlertFeedbackPUnknownFutureValue returns a pointer to AlertFeedbackVUnknownFutureValue
+func AlertFeedbackPUnknownFutureValue() *AlertFeedback {
+ v := AlertFeedbackVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AlertHistoryStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AlertHistoryStateModel.go
new file mode 100644
index 00000000..00914605
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AlertHistoryStateModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AlertModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AlertModel.go
new file mode 100644
index 00000000..0e5967c5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AlertModel.go
@@ -0,0 +1,75 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AlertRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AlertRequest.go
new file mode 100644
index 00000000..393f6e0a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AlertRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AlertSeverityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AlertSeverityEnum.go
new file mode 100644
index 00000000..0d823b35
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AlertSeverityEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AlertSeverity undocumented
+type AlertSeverity int
+
+const (
+ // AlertSeverityVUnknown undocumented
+ AlertSeverityVUnknown AlertSeverity = 0
+ // AlertSeverityVInformational undocumented
+ AlertSeverityVInformational AlertSeverity = 1
+ // AlertSeverityVLow undocumented
+ AlertSeverityVLow AlertSeverity = 2
+ // AlertSeverityVMedium undocumented
+ AlertSeverityVMedium AlertSeverity = 3
+ // AlertSeverityVHigh undocumented
+ AlertSeverityVHigh AlertSeverity = 4
+ // AlertSeverityVUnknownFutureValue undocumented
+ AlertSeverityVUnknownFutureValue AlertSeverity = 127
+)
+
+// AlertSeverityPUnknown returns a pointer to AlertSeverityVUnknown
+func AlertSeverityPUnknown() *AlertSeverity {
+ v := AlertSeverityVUnknown
+ return &v
+}
+
+// AlertSeverityPInformational returns a pointer to AlertSeverityVInformational
+func AlertSeverityPInformational() *AlertSeverity {
+ v := AlertSeverityVInformational
+ return &v
+}
+
+// AlertSeverityPLow returns a pointer to AlertSeverityVLow
+func AlertSeverityPLow() *AlertSeverity {
+ v := AlertSeverityVLow
+ return &v
+}
+
+// AlertSeverityPMedium returns a pointer to AlertSeverityVMedium
+func AlertSeverityPMedium() *AlertSeverity {
+ v := AlertSeverityVMedium
+ return &v
+}
+
+// AlertSeverityPHigh returns a pointer to AlertSeverityVHigh
+func AlertSeverityPHigh() *AlertSeverity {
+ v := AlertSeverityVHigh
+ return &v
+}
+
+// AlertSeverityPUnknownFutureValue returns a pointer to AlertSeverityVUnknownFutureValue
+func AlertSeverityPUnknownFutureValue() *AlertSeverity {
+ v := AlertSeverityVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AlertStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AlertStatusEnum.go
new file mode 100644
index 00000000..e49ac7ea
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AlertStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AlertStatus undocumented
+type AlertStatus int
+
+const (
+ // AlertStatusVUnknown undocumented
+ AlertStatusVUnknown AlertStatus = 0
+ // AlertStatusVNewAlert undocumented
+ AlertStatusVNewAlert AlertStatus = 1
+ // AlertStatusVInProgress undocumented
+ AlertStatusVInProgress AlertStatus = 2
+ // AlertStatusVResolved undocumented
+ AlertStatusVResolved AlertStatus = 3
+ // AlertStatusVDismissed undocumented
+ AlertStatusVDismissed AlertStatus = 4
+ // AlertStatusVUnknownFutureValue undocumented
+ AlertStatusVUnknownFutureValue AlertStatus = 127
+)
+
+// AlertStatusPUnknown returns a pointer to AlertStatusVUnknown
+func AlertStatusPUnknown() *AlertStatus {
+ v := AlertStatusVUnknown
+ return &v
+}
+
+// AlertStatusPNewAlert returns a pointer to AlertStatusVNewAlert
+func AlertStatusPNewAlert() *AlertStatus {
+ v := AlertStatusVNewAlert
+ return &v
+}
+
+// AlertStatusPInProgress returns a pointer to AlertStatusVInProgress
+func AlertStatusPInProgress() *AlertStatus {
+ v := AlertStatusVInProgress
+ return &v
+}
+
+// AlertStatusPResolved returns a pointer to AlertStatusVResolved
+func AlertStatusPResolved() *AlertStatus {
+ v := AlertStatusVResolved
+ return &v
+}
+
+// AlertStatusPDismissed returns a pointer to AlertStatusVDismissed
+func AlertStatusPDismissed() *AlertStatus {
+ v := AlertStatusVDismissed
+ return &v
+}
+
+// AlertStatusPUnknownFutureValue returns a pointer to AlertStatusVUnknownFutureValue
+func AlertStatusPUnknownFutureValue() *AlertStatus {
+ v := AlertStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AlertTriggerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AlertTriggerModel.go
new file mode 100644
index 00000000..4f8e90a6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AlertTriggerModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AlignmentEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AlignmentEnum.go
new file mode 100644
index 00000000..e807d71f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AlignmentEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Alignment undocumented
+type Alignment int
+
+const (
+ // AlignmentVLeft undocumented
+ AlignmentVLeft Alignment = 0
+ // AlignmentVRight undocumented
+ AlignmentVRight Alignment = 1
+ // AlignmentVCenter undocumented
+ AlignmentVCenter Alignment = 2
+)
+
+// AlignmentPLeft returns a pointer to AlignmentVLeft
+func AlignmentPLeft() *Alignment {
+ v := AlignmentVLeft
+ return &v
+}
+
+// AlignmentPRight returns a pointer to AlignmentVRight
+func AlignmentPRight() *Alignment {
+ v := AlignmentVRight
+ return &v
+}
+
+// AlignmentPCenter returns a pointer to AlignmentVCenter
+func AlignmentPCenter() *Alignment {
+ v := AlignmentVCenter
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AllDevicesAssignmentTargetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AllDevicesAssignmentTargetModel.go
new file mode 100644
index 00000000..9137ae13
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AllDevicesAssignmentTargetModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AllDevicesAssignmentTarget undocumented
+type AllDevicesAssignmentTarget struct {
+ // DeviceAndAppManagementAssignmentTarget is the base model of AllDevicesAssignmentTarget
+ DeviceAndAppManagementAssignmentTarget
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AllLicensedUsersAssignmentTargetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AllLicensedUsersAssignmentTargetModel.go
new file mode 100644
index 00000000..6dca3f76
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AllLicensedUsersAssignmentTargetModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AllLicensedUsersAssignmentTarget undocumented
+type AllLicensedUsersAssignmentTarget struct {
+ // DeviceAndAppManagementAssignmentTarget is the base model of AllLicensedUsersAssignmentTarget
+ DeviceAndAppManagementAssignmentTarget
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AllowedAudiencesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AllowedAudiencesEnum.go
new file mode 100644
index 00000000..6d1bcabd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AllowedAudiencesEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AllowedAudiences undocumented
+type AllowedAudiences int
+
+const (
+ // AllowedAudiencesVMe undocumented
+ AllowedAudiencesVMe AllowedAudiences = 0
+ // AllowedAudiencesVFamily undocumented
+ AllowedAudiencesVFamily AllowedAudiences = 1
+ // AllowedAudiencesVContacts undocumented
+ AllowedAudiencesVContacts AllowedAudiences = 2
+ // AllowedAudiencesVGroupMembers undocumented
+ AllowedAudiencesVGroupMembers AllowedAudiences = 4
+ // AllowedAudiencesVOrganization undocumented
+ AllowedAudiencesVOrganization AllowedAudiences = 8
+ // AllowedAudiencesVFederatedOrganizations undocumented
+ AllowedAudiencesVFederatedOrganizations AllowedAudiences = 16
+ // AllowedAudiencesVEveryone undocumented
+ AllowedAudiencesVEveryone AllowedAudiences = 32
+ // AllowedAudiencesVUnknownFutureValue undocumented
+ AllowedAudiencesVUnknownFutureValue AllowedAudiences = 64
+)
+
+// AllowedAudiencesPMe returns a pointer to AllowedAudiencesVMe
+func AllowedAudiencesPMe() *AllowedAudiences {
+ v := AllowedAudiencesVMe
+ return &v
+}
+
+// AllowedAudiencesPFamily returns a pointer to AllowedAudiencesVFamily
+func AllowedAudiencesPFamily() *AllowedAudiences {
+ v := AllowedAudiencesVFamily
+ return &v
+}
+
+// AllowedAudiencesPContacts returns a pointer to AllowedAudiencesVContacts
+func AllowedAudiencesPContacts() *AllowedAudiences {
+ v := AllowedAudiencesVContacts
+ return &v
+}
+
+// AllowedAudiencesPGroupMembers returns a pointer to AllowedAudiencesVGroupMembers
+func AllowedAudiencesPGroupMembers() *AllowedAudiences {
+ v := AllowedAudiencesVGroupMembers
+ return &v
+}
+
+// AllowedAudiencesPOrganization returns a pointer to AllowedAudiencesVOrganization
+func AllowedAudiencesPOrganization() *AllowedAudiences {
+ v := AllowedAudiencesVOrganization
+ return &v
+}
+
+// AllowedAudiencesPFederatedOrganizations returns a pointer to AllowedAudiencesVFederatedOrganizations
+func AllowedAudiencesPFederatedOrganizations() *AllowedAudiences {
+ v := AllowedAudiencesVFederatedOrganizations
+ return &v
+}
+
+// AllowedAudiencesPEveryone returns a pointer to AllowedAudiencesVEveryone
+func AllowedAudiencesPEveryone() *AllowedAudiences {
+ v := AllowedAudiencesVEveryone
+ return &v
+}
+
+// AllowedAudiencesPUnknownFutureValue returns a pointer to AllowedAudiencesVUnknownFutureValue
+func AllowedAudiencesPUnknownFutureValue() *AllowedAudiences {
+ v := AllowedAudiencesVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationInfoModel.go
new file mode 100644
index 00000000..f716bfee
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationInfoModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AllowedDataLocationInfo undocumented
+type AllowedDataLocationInfo struct {
+ // Object is the base model of AllowedDataLocationInfo
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationModel.go
new file mode 100644
index 00000000..81f69264
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationModel.go
@@ -0,0 +1,17 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationRequest.go
new file mode 100644
index 00000000..ececc01e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationRequest.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/matterbridge/msgraph.go/beta/AlternativeSecurityIDModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AlternativeSecurityIDModel.go
new file mode 100644
index 00000000..19ce9531
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AlternativeSecurityIDModel.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/matterbridge/msgraph.go/beta/AnalyticsActivityTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AnalyticsActivityTypeEnum.go
new file mode 100644
index 00000000..77a1510c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AnalyticsActivityTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AnalyticsActivityType undocumented
+type AnalyticsActivityType int
+
+const (
+ // AnalyticsActivityTypeVEmail undocumented
+ AnalyticsActivityTypeVEmail AnalyticsActivityType = 0
+ // AnalyticsActivityTypeVMeeting undocumented
+ AnalyticsActivityTypeVMeeting AnalyticsActivityType = 1
+ // AnalyticsActivityTypeVFocus undocumented
+ AnalyticsActivityTypeVFocus AnalyticsActivityType = 2
+ // AnalyticsActivityTypeVChat undocumented
+ AnalyticsActivityTypeVChat AnalyticsActivityType = 3
+ // AnalyticsActivityTypeVCall undocumented
+ AnalyticsActivityTypeVCall AnalyticsActivityType = 4
+)
+
+// AnalyticsActivityTypePEmail returns a pointer to AnalyticsActivityTypeVEmail
+func AnalyticsActivityTypePEmail() *AnalyticsActivityType {
+ v := AnalyticsActivityTypeVEmail
+ return &v
+}
+
+// AnalyticsActivityTypePMeeting returns a pointer to AnalyticsActivityTypeVMeeting
+func AnalyticsActivityTypePMeeting() *AnalyticsActivityType {
+ v := AnalyticsActivityTypeVMeeting
+ return &v
+}
+
+// AnalyticsActivityTypePFocus returns a pointer to AnalyticsActivityTypeVFocus
+func AnalyticsActivityTypePFocus() *AnalyticsActivityType {
+ v := AnalyticsActivityTypeVFocus
+ return &v
+}
+
+// AnalyticsActivityTypePChat returns a pointer to AnalyticsActivityTypeVChat
+func AnalyticsActivityTypePChat() *AnalyticsActivityType {
+ v := AnalyticsActivityTypeVChat
+ return &v
+}
+
+// AnalyticsActivityTypePCall returns a pointer to AnalyticsActivityTypeVCall
+func AnalyticsActivityTypePCall() *AnalyticsActivityType {
+ v := AnalyticsActivityTypeVCall
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseModel.go
new file mode 100644
index 00000000..394621f5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseRequest.go
new file mode 100644
index 00000000..4e3d2c0b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// RootCertificate is navigation property
+func (b *AndroidCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidTrustedRootCertificateRequestBuilder {
+ bb := &AndroidTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCompliancePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCompliancePolicyModel.go
new file mode 100644
index 00000000..ee0ebffa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCompliancePolicyModel.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCustomConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCustomConfigurationModel.go
new file mode 100644
index 00000000..9ff27033
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCustomConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionBaseModel.go
new file mode 100644
index 00000000..1765985a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionBaseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceModel.go
new file mode 100644
index 00000000..95fcbf87
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceComplianceLocalActionLockDevice Local Action Lock Device Only Configuration
+type AndroidDeviceComplianceLocalActionLockDevice struct {
+ // AndroidDeviceComplianceLocalActionBase is the base model of AndroidDeviceComplianceLocalActionLockDevice
+ AndroidDeviceComplianceLocalActionBase
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceWithPasscodeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceWithPasscodeModel.go
new file mode 100644
index 00000000..c87ba7f4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceWithPasscodeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerAppAutoUpdatePolicyTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerAppAutoUpdatePolicyTypeEnum.go
new file mode 100644
index 00000000..b88c2e88
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerAppAutoUpdatePolicyTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerAppAutoUpdatePolicyType undocumented
+type AndroidDeviceOwnerAppAutoUpdatePolicyType int
+
+const (
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured undocumented
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured AndroidDeviceOwnerAppAutoUpdatePolicyType = 0
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice undocumented
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice AndroidDeviceOwnerAppAutoUpdatePolicyType = 1
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever undocumented
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever AndroidDeviceOwnerAppAutoUpdatePolicyType = 2
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly undocumented
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly AndroidDeviceOwnerAppAutoUpdatePolicyType = 3
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways undocumented
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways AndroidDeviceOwnerAppAutoUpdatePolicyType = 4
+)
+
+// AndroidDeviceOwnerAppAutoUpdatePolicyTypePNotConfigured returns a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured
+func AndroidDeviceOwnerAppAutoUpdatePolicyTypePNotConfigured() *AndroidDeviceOwnerAppAutoUpdatePolicyType {
+ v := AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured
+ return &v
+}
+
+// AndroidDeviceOwnerAppAutoUpdatePolicyTypePUserChoice returns a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice
+func AndroidDeviceOwnerAppAutoUpdatePolicyTypePUserChoice() *AndroidDeviceOwnerAppAutoUpdatePolicyType {
+ v := AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice
+ return &v
+}
+
+// AndroidDeviceOwnerAppAutoUpdatePolicyTypePNever returns a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever
+func AndroidDeviceOwnerAppAutoUpdatePolicyTypePNever() *AndroidDeviceOwnerAppAutoUpdatePolicyType {
+ v := AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever
+ return &v
+}
+
+// AndroidDeviceOwnerAppAutoUpdatePolicyTypePWiFiOnly returns a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly
+func AndroidDeviceOwnerAppAutoUpdatePolicyTypePWiFiOnly() *AndroidDeviceOwnerAppAutoUpdatePolicyType {
+ v := AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly
+ return &v
+}
+
+// AndroidDeviceOwnerAppAutoUpdatePolicyTypePAlways returns a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways
+func AndroidDeviceOwnerAppAutoUpdatePolicyTypePAlways() *AndroidDeviceOwnerAppAutoUpdatePolicyType {
+ v := AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerBatteryPluggedModeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerBatteryPluggedModeEnum.go
new file mode 100644
index 00000000..3b42ea75
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerBatteryPluggedModeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerBatteryPluggedMode undocumented
+type AndroidDeviceOwnerBatteryPluggedMode int
+
+const (
+ // AndroidDeviceOwnerBatteryPluggedModeVNotConfigured undocumented
+ AndroidDeviceOwnerBatteryPluggedModeVNotConfigured AndroidDeviceOwnerBatteryPluggedMode = 0
+ // AndroidDeviceOwnerBatteryPluggedModeVAc undocumented
+ AndroidDeviceOwnerBatteryPluggedModeVAc AndroidDeviceOwnerBatteryPluggedMode = 1
+ // AndroidDeviceOwnerBatteryPluggedModeVUsb undocumented
+ AndroidDeviceOwnerBatteryPluggedModeVUsb AndroidDeviceOwnerBatteryPluggedMode = 2
+ // AndroidDeviceOwnerBatteryPluggedModeVWireless undocumented
+ AndroidDeviceOwnerBatteryPluggedModeVWireless AndroidDeviceOwnerBatteryPluggedMode = 3
+)
+
+// AndroidDeviceOwnerBatteryPluggedModePNotConfigured returns a pointer to AndroidDeviceOwnerBatteryPluggedModeVNotConfigured
+func AndroidDeviceOwnerBatteryPluggedModePNotConfigured() *AndroidDeviceOwnerBatteryPluggedMode {
+ v := AndroidDeviceOwnerBatteryPluggedModeVNotConfigured
+ return &v
+}
+
+// AndroidDeviceOwnerBatteryPluggedModePAc returns a pointer to AndroidDeviceOwnerBatteryPluggedModeVAc
+func AndroidDeviceOwnerBatteryPluggedModePAc() *AndroidDeviceOwnerBatteryPluggedMode {
+ v := AndroidDeviceOwnerBatteryPluggedModeVAc
+ return &v
+}
+
+// AndroidDeviceOwnerBatteryPluggedModePUsb returns a pointer to AndroidDeviceOwnerBatteryPluggedModeVUsb
+func AndroidDeviceOwnerBatteryPluggedModePUsb() *AndroidDeviceOwnerBatteryPluggedMode {
+ v := AndroidDeviceOwnerBatteryPluggedModeVUsb
+ return &v
+}
+
+// AndroidDeviceOwnerBatteryPluggedModePWireless returns a pointer to AndroidDeviceOwnerBatteryPluggedModeVWireless
+func AndroidDeviceOwnerBatteryPluggedModePWireless() *AndroidDeviceOwnerBatteryPluggedMode {
+ v := AndroidDeviceOwnerBatteryPluggedModeVWireless
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseModel.go
new file mode 100644
index 00000000..a2b0ab72
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseRequest.go
new file mode 100644
index 00000000..dc59494a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// RootCertificate is navigation property
+func (b *AndroidDeviceOwnerCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidDeviceOwnerTrustedRootCertificateRequestBuilder {
+ bb := &AndroidDeviceOwnerTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCompliancePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCompliancePolicyModel.go
new file mode 100644
index 00000000..a93ab8db
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCompliancePolicyModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerDefaultAppPermissionPolicyTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerDefaultAppPermissionPolicyTypeEnum.go
new file mode 100644
index 00000000..47ed7c2e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerDefaultAppPermissionPolicyTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerDefaultAppPermissionPolicyType undocumented
+type AndroidDeviceOwnerDefaultAppPermissionPolicyType int
+
+const (
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault undocumented
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault AndroidDeviceOwnerDefaultAppPermissionPolicyType = 0
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt undocumented
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt AndroidDeviceOwnerDefaultAppPermissionPolicyType = 1
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant undocumented
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant AndroidDeviceOwnerDefaultAppPermissionPolicyType = 2
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny undocumented
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny AndroidDeviceOwnerDefaultAppPermissionPolicyType = 3
+)
+
+// AndroidDeviceOwnerDefaultAppPermissionPolicyTypePDeviceDefault returns a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault
+func AndroidDeviceOwnerDefaultAppPermissionPolicyTypePDeviceDefault() *AndroidDeviceOwnerDefaultAppPermissionPolicyType {
+ v := AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault
+ return &v
+}
+
+// AndroidDeviceOwnerDefaultAppPermissionPolicyTypePPrompt returns a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt
+func AndroidDeviceOwnerDefaultAppPermissionPolicyTypePPrompt() *AndroidDeviceOwnerDefaultAppPermissionPolicyType {
+ v := AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt
+ return &v
+}
+
+// AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoGrant returns a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant
+func AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoGrant() *AndroidDeviceOwnerDefaultAppPermissionPolicyType {
+ v := AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant
+ return &v
+}
+
+// AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoDeny returns a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny
+func AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoDeny() *AndroidDeviceOwnerDefaultAppPermissionPolicyType {
+ v := AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileAction.go
new file mode 100644
index 00000000..b180719c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileAction.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestParameter undocumented
+type AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestParameter struct {
+}
+
+// AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestParameter undocumented
+type AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestParameter struct {
+ // TokenValidityInSeconds undocumented
+ TokenValidityInSeconds *int `json:"tokenValidityInSeconds,omitempty"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileModel.go
new file mode 100644
index 00000000..a342919d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileRequest.go
new file mode 100644
index 00000000..6699185a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationModel.go
new file mode 100644
index 00000000..62cd5053
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest.go
new file mode 100644
index 00000000..db75b6ad
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGeneralDeviceConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGeneralDeviceConfigurationModel.go
new file mode 100644
index 00000000..c8b2efa7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGeneralDeviceConfigurationModel.go
@@ -0,0 +1,143 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyAutoConfigModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyAutoConfigModel.go
new file mode 100644
index 00000000..161b9bb0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyAutoConfigModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerGlobalProxyAutoConfig undocumented
+type AndroidDeviceOwnerGlobalProxyAutoConfig struct {
+ // AndroidDeviceOwnerGlobalProxy is the base model of AndroidDeviceOwnerGlobalProxyAutoConfig
+ AndroidDeviceOwnerGlobalProxy
+ // ProxyAutoConfigURL The proxy auto-config URL
+ ProxyAutoConfigURL *string `json:"proxyAutoConfigURL,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyDirectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyDirectModel.go
new file mode 100644
index 00000000..e3c00276
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyDirectModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyModel.go
new file mode 100644
index 00000000..fe5331c9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerGlobalProxy undocumented
+type AndroidDeviceOwnerGlobalProxy struct {
+ // Object is the base model of AndroidDeviceOwnerGlobalProxy
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerPlayStoreModeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerPlayStoreModeEnum.go
new file mode 100644
index 00000000..143eca86
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerPlayStoreModeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerPlayStoreMode undocumented
+type AndroidDeviceOwnerPlayStoreMode int
+
+const (
+ // AndroidDeviceOwnerPlayStoreModeVNotConfigured undocumented
+ AndroidDeviceOwnerPlayStoreModeVNotConfigured AndroidDeviceOwnerPlayStoreMode = 0
+ // AndroidDeviceOwnerPlayStoreModeVAllowList undocumented
+ AndroidDeviceOwnerPlayStoreModeVAllowList AndroidDeviceOwnerPlayStoreMode = 1
+ // AndroidDeviceOwnerPlayStoreModeVBlockList undocumented
+ AndroidDeviceOwnerPlayStoreModeVBlockList AndroidDeviceOwnerPlayStoreMode = 2
+)
+
+// AndroidDeviceOwnerPlayStoreModePNotConfigured returns a pointer to AndroidDeviceOwnerPlayStoreModeVNotConfigured
+func AndroidDeviceOwnerPlayStoreModePNotConfigured() *AndroidDeviceOwnerPlayStoreMode {
+ v := AndroidDeviceOwnerPlayStoreModeVNotConfigured
+ return &v
+}
+
+// AndroidDeviceOwnerPlayStoreModePAllowList returns a pointer to AndroidDeviceOwnerPlayStoreModeVAllowList
+func AndroidDeviceOwnerPlayStoreModePAllowList() *AndroidDeviceOwnerPlayStoreMode {
+ v := AndroidDeviceOwnerPlayStoreModeVAllowList
+ return &v
+}
+
+// AndroidDeviceOwnerPlayStoreModePBlockList returns a pointer to AndroidDeviceOwnerPlayStoreModeVBlockList
+func AndroidDeviceOwnerPlayStoreModePBlockList() *AndroidDeviceOwnerPlayStoreMode {
+ v := AndroidDeviceOwnerPlayStoreModeVBlockList
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerRequiredPasswordTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerRequiredPasswordTypeEnum.go
new file mode 100644
index 00000000..17620819
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerRequiredPasswordTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerRequiredPasswordType undocumented
+type AndroidDeviceOwnerRequiredPasswordType int
+
+const (
+ // AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault AndroidDeviceOwnerRequiredPasswordType = 0
+ // AndroidDeviceOwnerRequiredPasswordTypeVRequired undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVRequired AndroidDeviceOwnerRequiredPasswordType = 1
+ // AndroidDeviceOwnerRequiredPasswordTypeVNumeric undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVNumeric AndroidDeviceOwnerRequiredPasswordType = 2
+ // AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex AndroidDeviceOwnerRequiredPasswordType = 3
+ // AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic AndroidDeviceOwnerRequiredPasswordType = 4
+ // AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric AndroidDeviceOwnerRequiredPasswordType = 5
+ // AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols AndroidDeviceOwnerRequiredPasswordType = 6
+ // AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric AndroidDeviceOwnerRequiredPasswordType = 7
+ // AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword AndroidDeviceOwnerRequiredPasswordType = 8
+)
+
+// AndroidDeviceOwnerRequiredPasswordTypePDeviceDefault returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault
+func AndroidDeviceOwnerRequiredPasswordTypePDeviceDefault() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePRequired returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVRequired
+func AndroidDeviceOwnerRequiredPasswordTypePRequired() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVRequired
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePNumeric returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVNumeric
+func AndroidDeviceOwnerRequiredPasswordTypePNumeric() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVNumeric
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePNumericComplex returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex
+func AndroidDeviceOwnerRequiredPasswordTypePNumericComplex() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePAlphabetic returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic
+func AndroidDeviceOwnerRequiredPasswordTypePAlphabetic() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePAlphanumeric returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric
+func AndroidDeviceOwnerRequiredPasswordTypePAlphanumeric() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePAlphanumericWithSymbols returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols
+func AndroidDeviceOwnerRequiredPasswordTypePAlphanumericWithSymbols() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePLowSecurityBiometric returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric
+func AndroidDeviceOwnerRequiredPasswordTypePLowSecurityBiometric() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePCustomPassword returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword
+func AndroidDeviceOwnerRequiredPasswordTypePCustomPassword() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileModel.go
new file mode 100644
index 00000000..dcf97d08
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileRequest.go
new file mode 100644
index 00000000..282c88ab
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerSystemUpdateInstallTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerSystemUpdateInstallTypeEnum.go
new file mode 100644
index 00000000..cd45254c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerSystemUpdateInstallTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerSystemUpdateInstallType undocumented
+type AndroidDeviceOwnerSystemUpdateInstallType int
+
+const (
+ // AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault undocumented
+ AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault AndroidDeviceOwnerSystemUpdateInstallType = 0
+ // AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone undocumented
+ AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone AndroidDeviceOwnerSystemUpdateInstallType = 1
+ // AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed undocumented
+ AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed AndroidDeviceOwnerSystemUpdateInstallType = 2
+ // AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic undocumented
+ AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic AndroidDeviceOwnerSystemUpdateInstallType = 3
+)
+
+// AndroidDeviceOwnerSystemUpdateInstallTypePDeviceDefault returns a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault
+func AndroidDeviceOwnerSystemUpdateInstallTypePDeviceDefault() *AndroidDeviceOwnerSystemUpdateInstallType {
+ v := AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault
+ return &v
+}
+
+// AndroidDeviceOwnerSystemUpdateInstallTypePPostpone returns a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone
+func AndroidDeviceOwnerSystemUpdateInstallTypePPostpone() *AndroidDeviceOwnerSystemUpdateInstallType {
+ v := AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone
+ return &v
+}
+
+// AndroidDeviceOwnerSystemUpdateInstallTypePWindowed returns a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed
+func AndroidDeviceOwnerSystemUpdateInstallTypePWindowed() *AndroidDeviceOwnerSystemUpdateInstallType {
+ v := AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed
+ return &v
+}
+
+// AndroidDeviceOwnerSystemUpdateInstallTypePAutomatic returns a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic
+func AndroidDeviceOwnerSystemUpdateInstallTypePAutomatic() *AndroidDeviceOwnerSystemUpdateInstallType {
+ v := AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateModel.go
new file mode 100644
index 00000000..50f68fc3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateRequest.go
new file mode 100644
index 00000000..3738d978
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVirtualHomeButtonTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVirtualHomeButtonTypeEnum.go
new file mode 100644
index 00000000..eb9ec408
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVirtualHomeButtonTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerVirtualHomeButtonType undocumented
+type AndroidDeviceOwnerVirtualHomeButtonType int
+
+const (
+ // AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured undocumented
+ AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured AndroidDeviceOwnerVirtualHomeButtonType = 0
+ // AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp undocumented
+ AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp AndroidDeviceOwnerVirtualHomeButtonType = 1
+ // AndroidDeviceOwnerVirtualHomeButtonTypeVFloating undocumented
+ AndroidDeviceOwnerVirtualHomeButtonTypeVFloating AndroidDeviceOwnerVirtualHomeButtonType = 2
+)
+
+// AndroidDeviceOwnerVirtualHomeButtonTypePNotConfigured returns a pointer to AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured
+func AndroidDeviceOwnerVirtualHomeButtonTypePNotConfigured() *AndroidDeviceOwnerVirtualHomeButtonType {
+ v := AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured
+ return &v
+}
+
+// AndroidDeviceOwnerVirtualHomeButtonTypePSwipeUp returns a pointer to AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp
+func AndroidDeviceOwnerVirtualHomeButtonTypePSwipeUp() *AndroidDeviceOwnerVirtualHomeButtonType {
+ v := AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp
+ return &v
+}
+
+// AndroidDeviceOwnerVirtualHomeButtonTypePFloating returns a pointer to AndroidDeviceOwnerVirtualHomeButtonTypeVFloating
+func AndroidDeviceOwnerVirtualHomeButtonTypePFloating() *AndroidDeviceOwnerVirtualHomeButtonType {
+ v := AndroidDeviceOwnerVirtualHomeButtonTypeVFloating
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationModel.go
new file mode 100644
index 00000000..c4b58361
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationRequest.go
new file mode 100644
index 00000000..e194310c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidDeviceOwnerVpnConfigurationRequestBuilder) IdentityCertificate() *AndroidDeviceOwnerCertificateProfileBaseRequestBuilder {
+ bb := &AndroidDeviceOwnerCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerWiFiConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerWiFiConfigurationModel.go
new file mode 100644
index 00000000..1a3794c5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerWiFiConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerWiFiSecurityTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerWiFiSecurityTypeEnum.go
new file mode 100644
index 00000000..8c21afaf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerWiFiSecurityTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerWiFiSecurityType undocumented
+type AndroidDeviceOwnerWiFiSecurityType int
+
+const (
+ // AndroidDeviceOwnerWiFiSecurityTypeVOpen undocumented
+ AndroidDeviceOwnerWiFiSecurityTypeVOpen AndroidDeviceOwnerWiFiSecurityType = 0
+ // AndroidDeviceOwnerWiFiSecurityTypeVWep undocumented
+ AndroidDeviceOwnerWiFiSecurityTypeVWep AndroidDeviceOwnerWiFiSecurityType = 1
+ // AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal undocumented
+ AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal AndroidDeviceOwnerWiFiSecurityType = 2
+ // AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise undocumented
+ AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise AndroidDeviceOwnerWiFiSecurityType = 4
+)
+
+// AndroidDeviceOwnerWiFiSecurityTypePOpen returns a pointer to AndroidDeviceOwnerWiFiSecurityTypeVOpen
+func AndroidDeviceOwnerWiFiSecurityTypePOpen() *AndroidDeviceOwnerWiFiSecurityType {
+ v := AndroidDeviceOwnerWiFiSecurityTypeVOpen
+ return &v
+}
+
+// AndroidDeviceOwnerWiFiSecurityTypePWep returns a pointer to AndroidDeviceOwnerWiFiSecurityTypeVWep
+func AndroidDeviceOwnerWiFiSecurityTypePWep() *AndroidDeviceOwnerWiFiSecurityType {
+ v := AndroidDeviceOwnerWiFiSecurityTypeVWep
+ return &v
+}
+
+// AndroidDeviceOwnerWiFiSecurityTypePWpaPersonal returns a pointer to AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal
+func AndroidDeviceOwnerWiFiSecurityTypePWpaPersonal() *AndroidDeviceOwnerWiFiSecurityType {
+ v := AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal
+ return &v
+}
+
+// AndroidDeviceOwnerWiFiSecurityTypePWpaEnterprise returns a pointer to AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise
+func AndroidDeviceOwnerWiFiSecurityTypePWpaEnterprise() *AndroidDeviceOwnerWiFiSecurityType {
+ v := AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEapTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEapTypeEnum.go
new file mode 100644
index 00000000..e92316a6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEapTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidEapType undocumented
+type AndroidEapType int
+
+const (
+ // AndroidEapTypeVEapTLS undocumented
+ AndroidEapTypeVEapTLS AndroidEapType = 13
+ // AndroidEapTypeVEapTtls undocumented
+ AndroidEapTypeVEapTtls AndroidEapType = 21
+ // AndroidEapTypeVPeap undocumented
+ AndroidEapTypeVPeap AndroidEapType = 25
+)
+
+// AndroidEapTypePEapTLS returns a pointer to AndroidEapTypeVEapTLS
+func AndroidEapTypePEapTLS() *AndroidEapType {
+ v := AndroidEapTypeVEapTLS
+ return &v
+}
+
+// AndroidEapTypePEapTtls returns a pointer to AndroidEapTypeVEapTtls
+func AndroidEapTypePEapTtls() *AndroidEapType {
+ v := AndroidEapTypeVEapTtls
+ return &v
+}
+
+// AndroidEapTypePPeap returns a pointer to AndroidEapTypeVPeap
+func AndroidEapTypePPeap() *AndroidEapType {
+ v := AndroidEapTypeVPeap
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEasEmailProfileConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEasEmailProfileConfigurationModel.go
new file mode 100644
index 00000000..2fd73ab8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEasEmailProfileConfigurationModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEasEmailProfileConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEasEmailProfileConfigurationRequest.go
new file mode 100644
index 00000000..1d6b6be8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEasEmailProfileConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnrollmentCompanyCodeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnrollmentCompanyCodeModel.go
new file mode 100644
index 00000000..026ec221
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnrollmentCompanyCodeModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationModel.go
new file mode 100644
index 00000000..62709875
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationRequest.go
new file mode 100644
index 00000000..66001365
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemDataTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemDataTypeEnum.go
new file mode 100644
index 00000000..274fac75
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemDataTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkAppConfigurationSchemaItemDataType undocumented
+type AndroidForWorkAppConfigurationSchemaItemDataType int
+
+const (
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVBool undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVBool AndroidForWorkAppConfigurationSchemaItemDataType = 0
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger AndroidForWorkAppConfigurationSchemaItemDataType = 1
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVString undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVString AndroidForWorkAppConfigurationSchemaItemDataType = 2
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice AndroidForWorkAppConfigurationSchemaItemDataType = 3
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect AndroidForWorkAppConfigurationSchemaItemDataType = 4
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle AndroidForWorkAppConfigurationSchemaItemDataType = 5
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray AndroidForWorkAppConfigurationSchemaItemDataType = 6
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden AndroidForWorkAppConfigurationSchemaItemDataType = 7
+)
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePBool returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVBool
+func AndroidForWorkAppConfigurationSchemaItemDataTypePBool() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVBool
+ return &v
+}
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePInteger returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger
+func AndroidForWorkAppConfigurationSchemaItemDataTypePInteger() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger
+ return &v
+}
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePString returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVString
+func AndroidForWorkAppConfigurationSchemaItemDataTypePString() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVString
+ return &v
+}
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePChoice returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice
+func AndroidForWorkAppConfigurationSchemaItemDataTypePChoice() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice
+ return &v
+}
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePMultiselect returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect
+func AndroidForWorkAppConfigurationSchemaItemDataTypePMultiselect() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect
+ return &v
+}
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePBundle returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle
+func AndroidForWorkAppConfigurationSchemaItemDataTypePBundle() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle
+ return &v
+}
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePBundleArray returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray
+func AndroidForWorkAppConfigurationSchemaItemDataTypePBundleArray() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray
+ return &v
+}
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePHidden returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden
+func AndroidForWorkAppConfigurationSchemaItemDataTypePHidden() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemModel.go
new file mode 100644
index 00000000..be79762b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaModel.go
new file mode 100644
index 00000000..f8186476
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaRequest.go
new file mode 100644
index 00000000..6683a07c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppModel.go
new file mode 100644
index 00000000..9abb37f7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkBindStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkBindStatusEnum.go
new file mode 100644
index 00000000..2a68c111
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkBindStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkBindStatus undocumented
+type AndroidForWorkBindStatus int
+
+const (
+ // AndroidForWorkBindStatusVNotBound undocumented
+ AndroidForWorkBindStatusVNotBound AndroidForWorkBindStatus = 0
+ // AndroidForWorkBindStatusVBound undocumented
+ AndroidForWorkBindStatusVBound AndroidForWorkBindStatus = 1
+ // AndroidForWorkBindStatusVBoundAndValidated undocumented
+ AndroidForWorkBindStatusVBoundAndValidated AndroidForWorkBindStatus = 2
+ // AndroidForWorkBindStatusVUnbinding undocumented
+ AndroidForWorkBindStatusVUnbinding AndroidForWorkBindStatus = 3
+)
+
+// AndroidForWorkBindStatusPNotBound returns a pointer to AndroidForWorkBindStatusVNotBound
+func AndroidForWorkBindStatusPNotBound() *AndroidForWorkBindStatus {
+ v := AndroidForWorkBindStatusVNotBound
+ return &v
+}
+
+// AndroidForWorkBindStatusPBound returns a pointer to AndroidForWorkBindStatusVBound
+func AndroidForWorkBindStatusPBound() *AndroidForWorkBindStatus {
+ v := AndroidForWorkBindStatusVBound
+ return &v
+}
+
+// AndroidForWorkBindStatusPBoundAndValidated returns a pointer to AndroidForWorkBindStatusVBoundAndValidated
+func AndroidForWorkBindStatusPBoundAndValidated() *AndroidForWorkBindStatus {
+ v := AndroidForWorkBindStatusVBoundAndValidated
+ return &v
+}
+
+// AndroidForWorkBindStatusPUnbinding returns a pointer to AndroidForWorkBindStatusVUnbinding
+func AndroidForWorkBindStatusPUnbinding() *AndroidForWorkBindStatus {
+ v := AndroidForWorkBindStatusVUnbinding
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCertificateProfileBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCertificateProfileBaseModel.go
new file mode 100644
index 00000000..7d9ec301
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCertificateProfileBaseModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCertificateProfileBaseRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCertificateProfileBaseRequest.go
new file mode 100644
index 00000000..996db773
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCertificateProfileBaseRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// RootCertificate is navigation property
+func (b *AndroidForWorkCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidForWorkTrustedRootCertificateRequestBuilder {
+ bb := &AndroidForWorkTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCompliancePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCompliancePolicyModel.go
new file mode 100644
index 00000000..94760046
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCompliancePolicyModel.go
@@ -0,0 +1,53 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCrossProfileDataSharingTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCrossProfileDataSharingTypeEnum.go
new file mode 100644
index 00000000..258a7f77
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCrossProfileDataSharingTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkCrossProfileDataSharingType undocumented
+type AndroidForWorkCrossProfileDataSharingType int
+
+const (
+ // AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault undocumented
+ AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault AndroidForWorkCrossProfileDataSharingType = 0
+ // AndroidForWorkCrossProfileDataSharingTypeVPreventAny undocumented
+ AndroidForWorkCrossProfileDataSharingTypeVPreventAny AndroidForWorkCrossProfileDataSharingType = 1
+ // AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork undocumented
+ AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork AndroidForWorkCrossProfileDataSharingType = 2
+ // AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions undocumented
+ AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions AndroidForWorkCrossProfileDataSharingType = 3
+)
+
+// AndroidForWorkCrossProfileDataSharingTypePDeviceDefault returns a pointer to AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault
+func AndroidForWorkCrossProfileDataSharingTypePDeviceDefault() *AndroidForWorkCrossProfileDataSharingType {
+ v := AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault
+ return &v
+}
+
+// AndroidForWorkCrossProfileDataSharingTypePPreventAny returns a pointer to AndroidForWorkCrossProfileDataSharingTypeVPreventAny
+func AndroidForWorkCrossProfileDataSharingTypePPreventAny() *AndroidForWorkCrossProfileDataSharingType {
+ v := AndroidForWorkCrossProfileDataSharingTypeVPreventAny
+ return &v
+}
+
+// AndroidForWorkCrossProfileDataSharingTypePAllowPersonalToWork returns a pointer to AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork
+func AndroidForWorkCrossProfileDataSharingTypePAllowPersonalToWork() *AndroidForWorkCrossProfileDataSharingType {
+ v := AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork
+ return &v
+}
+
+// AndroidForWorkCrossProfileDataSharingTypePNoRestrictions returns a pointer to AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions
+func AndroidForWorkCrossProfileDataSharingTypePNoRestrictions() *AndroidForWorkCrossProfileDataSharingType {
+ v := AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCustomConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCustomConfigurationModel.go
new file mode 100644
index 00000000..3ba4109d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCustomConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkDefaultAppPermissionPolicyTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkDefaultAppPermissionPolicyTypeEnum.go
new file mode 100644
index 00000000..f983621a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkDefaultAppPermissionPolicyTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkDefaultAppPermissionPolicyType undocumented
+type AndroidForWorkDefaultAppPermissionPolicyType int
+
+const (
+ // AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault undocumented
+ AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault AndroidForWorkDefaultAppPermissionPolicyType = 0
+ // AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt undocumented
+ AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt AndroidForWorkDefaultAppPermissionPolicyType = 1
+ // AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant undocumented
+ AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant AndroidForWorkDefaultAppPermissionPolicyType = 2
+ // AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny undocumented
+ AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny AndroidForWorkDefaultAppPermissionPolicyType = 3
+)
+
+// AndroidForWorkDefaultAppPermissionPolicyTypePDeviceDefault returns a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault
+func AndroidForWorkDefaultAppPermissionPolicyTypePDeviceDefault() *AndroidForWorkDefaultAppPermissionPolicyType {
+ v := AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault
+ return &v
+}
+
+// AndroidForWorkDefaultAppPermissionPolicyTypePPrompt returns a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt
+func AndroidForWorkDefaultAppPermissionPolicyTypePPrompt() *AndroidForWorkDefaultAppPermissionPolicyType {
+ v := AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt
+ return &v
+}
+
+// AndroidForWorkDefaultAppPermissionPolicyTypePAutoGrant returns a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant
+func AndroidForWorkDefaultAppPermissionPolicyTypePAutoGrant() *AndroidForWorkDefaultAppPermissionPolicyType {
+ v := AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant
+ return &v
+}
+
+// AndroidForWorkDefaultAppPermissionPolicyTypePAutoDeny returns a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny
+func AndroidForWorkDefaultAppPermissionPolicyTypePAutoDeny() *AndroidForWorkDefaultAppPermissionPolicyType {
+ v := AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseModel.go
new file mode 100644
index 00000000..490a4166
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseRequest.go
new file mode 100644
index 00000000..930a56f8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidForWorkEasEmailProfileBaseRequestBuilder) IdentityCertificate() *AndroidForWorkCertificateProfileBaseRequestBuilder {
+ bb := &AndroidForWorkCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileAction.go
new file mode 100644
index 00000000..2d6829b4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileAction.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidForWorkEnrollmentProfileRevokeTokenRequestParameter undocumented
+type AndroidForWorkEnrollmentProfileRevokeTokenRequestParameter struct {
+}
+
+// AndroidForWorkEnrollmentProfileCreateTokenRequestParameter undocumented
+type AndroidForWorkEnrollmentProfileCreateTokenRequestParameter struct {
+ // TokenValidityInSeconds undocumented
+ TokenValidityInSeconds *int `json:"tokenValidityInSeconds,omitempty"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileModel.go
new file mode 100644
index 00000000..e2f05232
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileRequest.go
new file mode 100644
index 00000000..7a5da684
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentTargetEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentTargetEnum.go
new file mode 100644
index 00000000..a2654248
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentTargetEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkEnrollmentTarget undocumented
+type AndroidForWorkEnrollmentTarget int
+
+const (
+ // AndroidForWorkEnrollmentTargetVNone undocumented
+ AndroidForWorkEnrollmentTargetVNone AndroidForWorkEnrollmentTarget = 0
+ // AndroidForWorkEnrollmentTargetVAll undocumented
+ AndroidForWorkEnrollmentTargetVAll AndroidForWorkEnrollmentTarget = 1
+ // AndroidForWorkEnrollmentTargetVTargeted undocumented
+ AndroidForWorkEnrollmentTargetVTargeted AndroidForWorkEnrollmentTarget = 2
+ // AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions undocumented
+ AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions AndroidForWorkEnrollmentTarget = 3
+)
+
+// AndroidForWorkEnrollmentTargetPNone returns a pointer to AndroidForWorkEnrollmentTargetVNone
+func AndroidForWorkEnrollmentTargetPNone() *AndroidForWorkEnrollmentTarget {
+ v := AndroidForWorkEnrollmentTargetVNone
+ return &v
+}
+
+// AndroidForWorkEnrollmentTargetPAll returns a pointer to AndroidForWorkEnrollmentTargetVAll
+func AndroidForWorkEnrollmentTargetPAll() *AndroidForWorkEnrollmentTarget {
+ v := AndroidForWorkEnrollmentTargetVAll
+ return &v
+}
+
+// AndroidForWorkEnrollmentTargetPTargeted returns a pointer to AndroidForWorkEnrollmentTargetVTargeted
+func AndroidForWorkEnrollmentTargetPTargeted() *AndroidForWorkEnrollmentTarget {
+ v := AndroidForWorkEnrollmentTargetVTargeted
+ return &v
+}
+
+// AndroidForWorkEnrollmentTargetPTargetedAsEnrollmentRestrictions returns a pointer to AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions
+func AndroidForWorkEnrollmentTargetPTargetedAsEnrollmentRestrictions() *AndroidForWorkEnrollmentTarget {
+ v := AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationModel.go
new file mode 100644
index 00000000..ceb7da41
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationRequest.go
new file mode 100644
index 00000000..cb6b47a4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkGeneralDeviceConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkGeneralDeviceConfigurationModel.go
new file mode 100644
index 00000000..aa6ca0b4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkGeneralDeviceConfigurationModel.go
@@ -0,0 +1,85 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkGmailEasConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkGmailEasConfigurationModel.go
new file mode 100644
index 00000000..3cff6b20
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkGmailEasConfigurationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileModel.go
new file mode 100644
index 00000000..b99f4774
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileRequest.go
new file mode 100644
index 00000000..a8edc1ae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkMobileAppConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkMobileAppConfigurationModel.go
new file mode 100644
index 00000000..37428013
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkMobileAppConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkNineWorkEasConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkNineWorkEasConfigurationModel.go
new file mode 100644
index 00000000..b060e774
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkNineWorkEasConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileModel.go
new file mode 100644
index 00000000..24053c7f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileRequest.go
new file mode 100644
index 00000000..0fc31420
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkRequiredPasswordTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkRequiredPasswordTypeEnum.go
new file mode 100644
index 00000000..102a8bce
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkRequiredPasswordTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkRequiredPasswordType undocumented
+type AndroidForWorkRequiredPasswordType int
+
+const (
+ // AndroidForWorkRequiredPasswordTypeVDeviceDefault undocumented
+ AndroidForWorkRequiredPasswordTypeVDeviceDefault AndroidForWorkRequiredPasswordType = 0
+ // AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric undocumented
+ AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric AndroidForWorkRequiredPasswordType = 1
+ // AndroidForWorkRequiredPasswordTypeVRequired undocumented
+ AndroidForWorkRequiredPasswordTypeVRequired AndroidForWorkRequiredPasswordType = 2
+ // AndroidForWorkRequiredPasswordTypeVAtLeastNumeric undocumented
+ AndroidForWorkRequiredPasswordTypeVAtLeastNumeric AndroidForWorkRequiredPasswordType = 3
+ // AndroidForWorkRequiredPasswordTypeVNumericComplex undocumented
+ AndroidForWorkRequiredPasswordTypeVNumericComplex AndroidForWorkRequiredPasswordType = 4
+ // AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic undocumented
+ AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic AndroidForWorkRequiredPasswordType = 5
+ // AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric undocumented
+ AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric AndroidForWorkRequiredPasswordType = 6
+ // AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols undocumented
+ AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols AndroidForWorkRequiredPasswordType = 7
+)
+
+// AndroidForWorkRequiredPasswordTypePDeviceDefault returns a pointer to AndroidForWorkRequiredPasswordTypeVDeviceDefault
+func AndroidForWorkRequiredPasswordTypePDeviceDefault() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVDeviceDefault
+ return &v
+}
+
+// AndroidForWorkRequiredPasswordTypePLowSecurityBiometric returns a pointer to AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric
+func AndroidForWorkRequiredPasswordTypePLowSecurityBiometric() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric
+ return &v
+}
+
+// AndroidForWorkRequiredPasswordTypePRequired returns a pointer to AndroidForWorkRequiredPasswordTypeVRequired
+func AndroidForWorkRequiredPasswordTypePRequired() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVRequired
+ return &v
+}
+
+// AndroidForWorkRequiredPasswordTypePAtLeastNumeric returns a pointer to AndroidForWorkRequiredPasswordTypeVAtLeastNumeric
+func AndroidForWorkRequiredPasswordTypePAtLeastNumeric() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVAtLeastNumeric
+ return &v
+}
+
+// AndroidForWorkRequiredPasswordTypePNumericComplex returns a pointer to AndroidForWorkRequiredPasswordTypeVNumericComplex
+func AndroidForWorkRequiredPasswordTypePNumericComplex() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVNumericComplex
+ return &v
+}
+
+// AndroidForWorkRequiredPasswordTypePAtLeastAlphabetic returns a pointer to AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic
+func AndroidForWorkRequiredPasswordTypePAtLeastAlphabetic() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic
+ return &v
+}
+
+// AndroidForWorkRequiredPasswordTypePAtLeastAlphanumeric returns a pointer to AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric
+func AndroidForWorkRequiredPasswordTypePAtLeastAlphanumeric() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric
+ return &v
+}
+
+// AndroidForWorkRequiredPasswordTypePAlphanumericWithSymbols returns a pointer to AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols
+func AndroidForWorkRequiredPasswordTypePAlphanumericWithSymbols() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkScepCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkScepCertificateProfileModel.go
new file mode 100644
index 00000000..170d806d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkScepCertificateProfileModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkScepCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkScepCertificateProfileRequest.go
new file mode 100644
index 00000000..ab2a366d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkScepCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsAction.go
new file mode 100644
index 00000000..ef54c6fc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsAction.go
@@ -0,0 +1,130 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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 {
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsModel.go
new file mode 100644
index 00000000..fc349fbe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsRequest.go
new file mode 100644
index 00000000..b6bcbe4f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSyncStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSyncStatusEnum.go
new file mode 100644
index 00000000..80ea37c6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSyncStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkSyncStatus undocumented
+type AndroidForWorkSyncStatus int
+
+const (
+ // AndroidForWorkSyncStatusVSuccess undocumented
+ AndroidForWorkSyncStatusVSuccess AndroidForWorkSyncStatus = 0
+ // AndroidForWorkSyncStatusVCredentialsNotValid undocumented
+ AndroidForWorkSyncStatusVCredentialsNotValid AndroidForWorkSyncStatus = 1
+ // AndroidForWorkSyncStatusVAndroidForWorkAPIError undocumented
+ AndroidForWorkSyncStatusVAndroidForWorkAPIError AndroidForWorkSyncStatus = 2
+ // AndroidForWorkSyncStatusVManagementServiceError undocumented
+ AndroidForWorkSyncStatusVManagementServiceError AndroidForWorkSyncStatus = 3
+ // AndroidForWorkSyncStatusVUnknownError undocumented
+ AndroidForWorkSyncStatusVUnknownError AndroidForWorkSyncStatus = 4
+ // AndroidForWorkSyncStatusVNone undocumented
+ AndroidForWorkSyncStatusVNone AndroidForWorkSyncStatus = 5
+)
+
+// AndroidForWorkSyncStatusPSuccess returns a pointer to AndroidForWorkSyncStatusVSuccess
+func AndroidForWorkSyncStatusPSuccess() *AndroidForWorkSyncStatus {
+ v := AndroidForWorkSyncStatusVSuccess
+ return &v
+}
+
+// AndroidForWorkSyncStatusPCredentialsNotValid returns a pointer to AndroidForWorkSyncStatusVCredentialsNotValid
+func AndroidForWorkSyncStatusPCredentialsNotValid() *AndroidForWorkSyncStatus {
+ v := AndroidForWorkSyncStatusVCredentialsNotValid
+ return &v
+}
+
+// AndroidForWorkSyncStatusPAndroidForWorkAPIError returns a pointer to AndroidForWorkSyncStatusVAndroidForWorkAPIError
+func AndroidForWorkSyncStatusPAndroidForWorkAPIError() *AndroidForWorkSyncStatus {
+ v := AndroidForWorkSyncStatusVAndroidForWorkAPIError
+ return &v
+}
+
+// AndroidForWorkSyncStatusPManagementServiceError returns a pointer to AndroidForWorkSyncStatusVManagementServiceError
+func AndroidForWorkSyncStatusPManagementServiceError() *AndroidForWorkSyncStatus {
+ v := AndroidForWorkSyncStatusVManagementServiceError
+ return &v
+}
+
+// AndroidForWorkSyncStatusPUnknownError returns a pointer to AndroidForWorkSyncStatusVUnknownError
+func AndroidForWorkSyncStatusPUnknownError() *AndroidForWorkSyncStatus {
+ v := AndroidForWorkSyncStatusVUnknownError
+ return &v
+}
+
+// AndroidForWorkSyncStatusPNone returns a pointer to AndroidForWorkSyncStatusVNone
+func AndroidForWorkSyncStatusPNone() *AndroidForWorkSyncStatus {
+ v := AndroidForWorkSyncStatusVNone
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkTrustedRootCertificateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkTrustedRootCertificateModel.go
new file mode 100644
index 00000000..e7c3a687
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkTrustedRootCertificateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkTrustedRootCertificateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkTrustedRootCertificateRequest.go
new file mode 100644
index 00000000..ad716073
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkTrustedRootCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConfigurationModel.go
new file mode 100644
index 00000000..2bd96d38
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConfigurationRequest.go
new file mode 100644
index 00000000..436c2955
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidForWorkVpnConfigurationRequestBuilder) IdentityCertificate() *AndroidForWorkCertificateProfileBaseRequestBuilder {
+ bb := &AndroidForWorkCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConnectionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConnectionTypeEnum.go
new file mode 100644
index 00000000..0b58fd42
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConnectionTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkVpnConnectionType undocumented
+type AndroidForWorkVpnConnectionType int
+
+const (
+ // AndroidForWorkVpnConnectionTypeVCiscoAnyConnect undocumented
+ AndroidForWorkVpnConnectionTypeVCiscoAnyConnect AndroidForWorkVpnConnectionType = 0
+ // AndroidForWorkVpnConnectionTypeVPulseSecure undocumented
+ AndroidForWorkVpnConnectionTypeVPulseSecure AndroidForWorkVpnConnectionType = 1
+ // AndroidForWorkVpnConnectionTypeVF5EdgeClient undocumented
+ AndroidForWorkVpnConnectionTypeVF5EdgeClient AndroidForWorkVpnConnectionType = 2
+ // AndroidForWorkVpnConnectionTypeVDellSonicWallMobileConnect undocumented
+ AndroidForWorkVpnConnectionTypeVDellSonicWallMobileConnect AndroidForWorkVpnConnectionType = 3
+ // AndroidForWorkVpnConnectionTypeVCheckPointCapsuleVpn undocumented
+ AndroidForWorkVpnConnectionTypeVCheckPointCapsuleVpn AndroidForWorkVpnConnectionType = 4
+ // AndroidForWorkVpnConnectionTypeVCitrix undocumented
+ AndroidForWorkVpnConnectionTypeVCitrix AndroidForWorkVpnConnectionType = 5
+)
+
+// AndroidForWorkVpnConnectionTypePCiscoAnyConnect returns a pointer to AndroidForWorkVpnConnectionTypeVCiscoAnyConnect
+func AndroidForWorkVpnConnectionTypePCiscoAnyConnect() *AndroidForWorkVpnConnectionType {
+ v := AndroidForWorkVpnConnectionTypeVCiscoAnyConnect
+ return &v
+}
+
+// AndroidForWorkVpnConnectionTypePPulseSecure returns a pointer to AndroidForWorkVpnConnectionTypeVPulseSecure
+func AndroidForWorkVpnConnectionTypePPulseSecure() *AndroidForWorkVpnConnectionType {
+ v := AndroidForWorkVpnConnectionTypeVPulseSecure
+ return &v
+}
+
+// AndroidForWorkVpnConnectionTypePF5EdgeClient returns a pointer to AndroidForWorkVpnConnectionTypeVF5EdgeClient
+func AndroidForWorkVpnConnectionTypePF5EdgeClient() *AndroidForWorkVpnConnectionType {
+ v := AndroidForWorkVpnConnectionTypeVF5EdgeClient
+ return &v
+}
+
+// AndroidForWorkVpnConnectionTypePDellSonicWallMobileConnect returns a pointer to AndroidForWorkVpnConnectionTypeVDellSonicWallMobileConnect
+func AndroidForWorkVpnConnectionTypePDellSonicWallMobileConnect() *AndroidForWorkVpnConnectionType {
+ v := AndroidForWorkVpnConnectionTypeVDellSonicWallMobileConnect
+ return &v
+}
+
+// AndroidForWorkVpnConnectionTypePCheckPointCapsuleVpn returns a pointer to AndroidForWorkVpnConnectionTypeVCheckPointCapsuleVpn
+func AndroidForWorkVpnConnectionTypePCheckPointCapsuleVpn() *AndroidForWorkVpnConnectionType {
+ v := AndroidForWorkVpnConnectionTypeVCheckPointCapsuleVpn
+ return &v
+}
+
+// AndroidForWorkVpnConnectionTypePCitrix returns a pointer to AndroidForWorkVpnConnectionTypeVCitrix
+func AndroidForWorkVpnConnectionTypePCitrix() *AndroidForWorkVpnConnectionType {
+ v := AndroidForWorkVpnConnectionTypeVCitrix
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkWiFiConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkWiFiConfigurationModel.go
new file mode 100644
index 00000000..8f9af081
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkWiFiConfigurationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidGeneralDeviceConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidGeneralDeviceConfigurationModel.go
new file mode 100644
index 00000000..05348258
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidGeneralDeviceConfigurationModel.go
@@ -0,0 +1,107 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidImportedPFXCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidImportedPFXCertificateProfileModel.go
new file mode 100644
index 00000000..6b9c8f8f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidImportedPFXCertificateProfileModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidImportedPFXCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidImportedPFXCertificateProfileRequest.go
new file mode 100644
index 00000000..3decf105
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidImportedPFXCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidKeyguardFeatureEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidKeyguardFeatureEnum.go
new file mode 100644
index 00000000..9d1262e8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidKeyguardFeatureEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidKeyguardFeature undocumented
+type AndroidKeyguardFeature int
+
+const (
+ // AndroidKeyguardFeatureVNotConfigured undocumented
+ AndroidKeyguardFeatureVNotConfigured AndroidKeyguardFeature = 0
+ // AndroidKeyguardFeatureVCamera undocumented
+ AndroidKeyguardFeatureVCamera AndroidKeyguardFeature = 1
+ // AndroidKeyguardFeatureVNotifications undocumented
+ AndroidKeyguardFeatureVNotifications AndroidKeyguardFeature = 2
+ // AndroidKeyguardFeatureVUnredactedNotifications undocumented
+ AndroidKeyguardFeatureVUnredactedNotifications AndroidKeyguardFeature = 3
+ // AndroidKeyguardFeatureVTrustAgents undocumented
+ AndroidKeyguardFeatureVTrustAgents AndroidKeyguardFeature = 4
+ // AndroidKeyguardFeatureVFingerprint undocumented
+ AndroidKeyguardFeatureVFingerprint AndroidKeyguardFeature = 5
+ // AndroidKeyguardFeatureVRemoteInput undocumented
+ AndroidKeyguardFeatureVRemoteInput AndroidKeyguardFeature = 6
+ // AndroidKeyguardFeatureVAllFeatures undocumented
+ AndroidKeyguardFeatureVAllFeatures AndroidKeyguardFeature = 7
+)
+
+// AndroidKeyguardFeaturePNotConfigured returns a pointer to AndroidKeyguardFeatureVNotConfigured
+func AndroidKeyguardFeaturePNotConfigured() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVNotConfigured
+ return &v
+}
+
+// AndroidKeyguardFeaturePCamera returns a pointer to AndroidKeyguardFeatureVCamera
+func AndroidKeyguardFeaturePCamera() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVCamera
+ return &v
+}
+
+// AndroidKeyguardFeaturePNotifications returns a pointer to AndroidKeyguardFeatureVNotifications
+func AndroidKeyguardFeaturePNotifications() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVNotifications
+ return &v
+}
+
+// AndroidKeyguardFeaturePUnredactedNotifications returns a pointer to AndroidKeyguardFeatureVUnredactedNotifications
+func AndroidKeyguardFeaturePUnredactedNotifications() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVUnredactedNotifications
+ return &v
+}
+
+// AndroidKeyguardFeaturePTrustAgents returns a pointer to AndroidKeyguardFeatureVTrustAgents
+func AndroidKeyguardFeaturePTrustAgents() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVTrustAgents
+ return &v
+}
+
+// AndroidKeyguardFeaturePFingerprint returns a pointer to AndroidKeyguardFeatureVFingerprint
+func AndroidKeyguardFeaturePFingerprint() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVFingerprint
+ return &v
+}
+
+// AndroidKeyguardFeaturePRemoteInput returns a pointer to AndroidKeyguardFeatureVRemoteInput
+func AndroidKeyguardFeaturePRemoteInput() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVRemoteInput
+ return &v
+}
+
+// AndroidKeyguardFeaturePAllFeatures returns a pointer to AndroidKeyguardFeatureVAllFeatures
+func AndroidKeyguardFeaturePAllFeatures() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVAllFeatures
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidLobAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidLobAppModel.go
new file mode 100644
index 00000000..ce4395dd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidLobAppModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionAction.go
new file mode 100644
index 00000000..ad2a962e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionAction.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// AndroidManagedAppProtectionCollectionHasPayloadLinksRequestParameter undocumented
+type AndroidManagedAppProtectionCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionModel.go
new file mode 100644
index 00000000..eca2ced6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionModel.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionRequest.go
new file mode 100644
index 00000000..42861839
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedMobileApp collection
+func (r *AndroidManagedAppProtectionAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppRegistrationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppRegistrationModel.go
new file mode 100644
index 00000000..c651b29c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppRegistrationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppSafetyNetAppsVerificationTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppSafetyNetAppsVerificationTypeEnum.go
new file mode 100644
index 00000000..3af805a9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppSafetyNetAppsVerificationTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedAppSafetyNetAppsVerificationType undocumented
+type AndroidManagedAppSafetyNetAppsVerificationType int
+
+const (
+ // AndroidManagedAppSafetyNetAppsVerificationTypeVNone undocumented
+ AndroidManagedAppSafetyNetAppsVerificationTypeVNone AndroidManagedAppSafetyNetAppsVerificationType = 0
+ // AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled undocumented
+ AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled AndroidManagedAppSafetyNetAppsVerificationType = 1
+)
+
+// AndroidManagedAppSafetyNetAppsVerificationTypePNone returns a pointer to AndroidManagedAppSafetyNetAppsVerificationTypeVNone
+func AndroidManagedAppSafetyNetAppsVerificationTypePNone() *AndroidManagedAppSafetyNetAppsVerificationType {
+ v := AndroidManagedAppSafetyNetAppsVerificationTypeVNone
+ return &v
+}
+
+// AndroidManagedAppSafetyNetAppsVerificationTypePEnabled returns a pointer to AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled
+func AndroidManagedAppSafetyNetAppsVerificationTypePEnabled() *AndroidManagedAppSafetyNetAppsVerificationType {
+ v := AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppSafetyNetDeviceAttestationTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppSafetyNetDeviceAttestationTypeEnum.go
new file mode 100644
index 00000000..288df7d9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppSafetyNetDeviceAttestationTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedAppSafetyNetDeviceAttestationType undocumented
+type AndroidManagedAppSafetyNetDeviceAttestationType int
+
+const (
+ // AndroidManagedAppSafetyNetDeviceAttestationTypeVNone undocumented
+ AndroidManagedAppSafetyNetDeviceAttestationTypeVNone AndroidManagedAppSafetyNetDeviceAttestationType = 0
+ // AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity undocumented
+ AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity AndroidManagedAppSafetyNetDeviceAttestationType = 1
+ // AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification undocumented
+ AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification AndroidManagedAppSafetyNetDeviceAttestationType = 2
+)
+
+// AndroidManagedAppSafetyNetDeviceAttestationTypePNone returns a pointer to AndroidManagedAppSafetyNetDeviceAttestationTypeVNone
+func AndroidManagedAppSafetyNetDeviceAttestationTypePNone() *AndroidManagedAppSafetyNetDeviceAttestationType {
+ v := AndroidManagedAppSafetyNetDeviceAttestationTypeVNone
+ return &v
+}
+
+// AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrity returns a pointer to AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity
+func AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrity() *AndroidManagedAppSafetyNetDeviceAttestationType {
+ v := AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity
+ return &v
+}
+
+// AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrityAndDeviceCertification returns a pointer to AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification
+func AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrityAndDeviceCertification() *AndroidManagedAppSafetyNetDeviceAttestationType {
+ v := AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountAppSyncStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountAppSyncStatusEnum.go
new file mode 100644
index 00000000..b22a2a4a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountAppSyncStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedStoreAccountAppSyncStatus undocumented
+type AndroidManagedStoreAccountAppSyncStatus int
+
+const (
+ // AndroidManagedStoreAccountAppSyncStatusVSuccess undocumented
+ AndroidManagedStoreAccountAppSyncStatusVSuccess AndroidManagedStoreAccountAppSyncStatus = 0
+ // AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid undocumented
+ AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid AndroidManagedStoreAccountAppSyncStatus = 1
+ // AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError undocumented
+ AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError AndroidManagedStoreAccountAppSyncStatus = 2
+ // AndroidManagedStoreAccountAppSyncStatusVManagementServiceError undocumented
+ AndroidManagedStoreAccountAppSyncStatusVManagementServiceError AndroidManagedStoreAccountAppSyncStatus = 3
+ // AndroidManagedStoreAccountAppSyncStatusVUnknownError undocumented
+ AndroidManagedStoreAccountAppSyncStatusVUnknownError AndroidManagedStoreAccountAppSyncStatus = 4
+ // AndroidManagedStoreAccountAppSyncStatusVNone undocumented
+ AndroidManagedStoreAccountAppSyncStatusVNone AndroidManagedStoreAccountAppSyncStatus = 5
+)
+
+// AndroidManagedStoreAccountAppSyncStatusPSuccess returns a pointer to AndroidManagedStoreAccountAppSyncStatusVSuccess
+func AndroidManagedStoreAccountAppSyncStatusPSuccess() *AndroidManagedStoreAccountAppSyncStatus {
+ v := AndroidManagedStoreAccountAppSyncStatusVSuccess
+ return &v
+}
+
+// AndroidManagedStoreAccountAppSyncStatusPCredentialsNotValid returns a pointer to AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid
+func AndroidManagedStoreAccountAppSyncStatusPCredentialsNotValid() *AndroidManagedStoreAccountAppSyncStatus {
+ v := AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid
+ return &v
+}
+
+// AndroidManagedStoreAccountAppSyncStatusPAndroidForWorkAPIError returns a pointer to AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError
+func AndroidManagedStoreAccountAppSyncStatusPAndroidForWorkAPIError() *AndroidManagedStoreAccountAppSyncStatus {
+ v := AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError
+ return &v
+}
+
+// AndroidManagedStoreAccountAppSyncStatusPManagementServiceError returns a pointer to AndroidManagedStoreAccountAppSyncStatusVManagementServiceError
+func AndroidManagedStoreAccountAppSyncStatusPManagementServiceError() *AndroidManagedStoreAccountAppSyncStatus {
+ v := AndroidManagedStoreAccountAppSyncStatusVManagementServiceError
+ return &v
+}
+
+// AndroidManagedStoreAccountAppSyncStatusPUnknownError returns a pointer to AndroidManagedStoreAccountAppSyncStatusVUnknownError
+func AndroidManagedStoreAccountAppSyncStatusPUnknownError() *AndroidManagedStoreAccountAppSyncStatus {
+ v := AndroidManagedStoreAccountAppSyncStatusVUnknownError
+ return &v
+}
+
+// AndroidManagedStoreAccountAppSyncStatusPNone returns a pointer to AndroidManagedStoreAccountAppSyncStatusVNone
+func AndroidManagedStoreAccountAppSyncStatusPNone() *AndroidManagedStoreAccountAppSyncStatus {
+ v := AndroidManagedStoreAccountAppSyncStatusVNone
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountBindStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountBindStatusEnum.go
new file mode 100644
index 00000000..595f8e46
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountBindStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedStoreAccountBindStatus undocumented
+type AndroidManagedStoreAccountBindStatus int
+
+const (
+ // AndroidManagedStoreAccountBindStatusVNotBound undocumented
+ AndroidManagedStoreAccountBindStatusVNotBound AndroidManagedStoreAccountBindStatus = 0
+ // AndroidManagedStoreAccountBindStatusVBound undocumented
+ AndroidManagedStoreAccountBindStatusVBound AndroidManagedStoreAccountBindStatus = 1
+ // AndroidManagedStoreAccountBindStatusVBoundAndValidated undocumented
+ AndroidManagedStoreAccountBindStatusVBoundAndValidated AndroidManagedStoreAccountBindStatus = 2
+ // AndroidManagedStoreAccountBindStatusVUnbinding undocumented
+ AndroidManagedStoreAccountBindStatusVUnbinding AndroidManagedStoreAccountBindStatus = 3
+)
+
+// AndroidManagedStoreAccountBindStatusPNotBound returns a pointer to AndroidManagedStoreAccountBindStatusVNotBound
+func AndroidManagedStoreAccountBindStatusPNotBound() *AndroidManagedStoreAccountBindStatus {
+ v := AndroidManagedStoreAccountBindStatusVNotBound
+ return &v
+}
+
+// AndroidManagedStoreAccountBindStatusPBound returns a pointer to AndroidManagedStoreAccountBindStatusVBound
+func AndroidManagedStoreAccountBindStatusPBound() *AndroidManagedStoreAccountBindStatus {
+ v := AndroidManagedStoreAccountBindStatusVBound
+ return &v
+}
+
+// AndroidManagedStoreAccountBindStatusPBoundAndValidated returns a pointer to AndroidManagedStoreAccountBindStatusVBoundAndValidated
+func AndroidManagedStoreAccountBindStatusPBoundAndValidated() *AndroidManagedStoreAccountBindStatus {
+ v := AndroidManagedStoreAccountBindStatusVBoundAndValidated
+ return &v
+}
+
+// AndroidManagedStoreAccountBindStatusPUnbinding returns a pointer to AndroidManagedStoreAccountBindStatusVUnbinding
+func AndroidManagedStoreAccountBindStatusPUnbinding() *AndroidManagedStoreAccountBindStatus {
+ v := AndroidManagedStoreAccountBindStatusVUnbinding
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnrollmentTargetEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnrollmentTargetEnum.go
new file mode 100644
index 00000000..2ed00dd7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnrollmentTargetEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedStoreAccountEnrollmentTarget undocumented
+type AndroidManagedStoreAccountEnrollmentTarget int
+
+const (
+ // AndroidManagedStoreAccountEnrollmentTargetVNone undocumented
+ AndroidManagedStoreAccountEnrollmentTargetVNone AndroidManagedStoreAccountEnrollmentTarget = 0
+ // AndroidManagedStoreAccountEnrollmentTargetVAll undocumented
+ AndroidManagedStoreAccountEnrollmentTargetVAll AndroidManagedStoreAccountEnrollmentTarget = 1
+ // AndroidManagedStoreAccountEnrollmentTargetVTargeted undocumented
+ AndroidManagedStoreAccountEnrollmentTargetVTargeted AndroidManagedStoreAccountEnrollmentTarget = 2
+ // AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions undocumented
+ AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions AndroidManagedStoreAccountEnrollmentTarget = 3
+)
+
+// AndroidManagedStoreAccountEnrollmentTargetPNone returns a pointer to AndroidManagedStoreAccountEnrollmentTargetVNone
+func AndroidManagedStoreAccountEnrollmentTargetPNone() *AndroidManagedStoreAccountEnrollmentTarget {
+ v := AndroidManagedStoreAccountEnrollmentTargetVNone
+ return &v
+}
+
+// AndroidManagedStoreAccountEnrollmentTargetPAll returns a pointer to AndroidManagedStoreAccountEnrollmentTargetVAll
+func AndroidManagedStoreAccountEnrollmentTargetPAll() *AndroidManagedStoreAccountEnrollmentTarget {
+ v := AndroidManagedStoreAccountEnrollmentTargetVAll
+ return &v
+}
+
+// AndroidManagedStoreAccountEnrollmentTargetPTargeted returns a pointer to AndroidManagedStoreAccountEnrollmentTargetVTargeted
+func AndroidManagedStoreAccountEnrollmentTargetPTargeted() *AndroidManagedStoreAccountEnrollmentTarget {
+ v := AndroidManagedStoreAccountEnrollmentTargetVTargeted
+ return &v
+}
+
+// AndroidManagedStoreAccountEnrollmentTargetPTargetedAsEnrollmentRestrictions returns a pointer to AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions
+func AndroidManagedStoreAccountEnrollmentTargetPTargetedAsEnrollmentRestrictions() *AndroidManagedStoreAccountEnrollmentTarget {
+ v := AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsAction.go
new file mode 100644
index 00000000..3767ace0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsAction.go
@@ -0,0 +1,229 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsModel.go
new file mode 100644
index 00000000..4f8e58c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsRequest.go
new file mode 100644
index 00000000..6bd9cbf4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationModel.go
new file mode 100644
index 00000000..65626716
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemDataTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemDataTypeEnum.go
new file mode 100644
index 00000000..5cde3371
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemDataTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataType undocumented
+type AndroidManagedStoreAppConfigurationSchemaItemDataType int
+
+const (
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool AndroidManagedStoreAppConfigurationSchemaItemDataType = 0
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger AndroidManagedStoreAppConfigurationSchemaItemDataType = 1
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString AndroidManagedStoreAppConfigurationSchemaItemDataType = 2
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice AndroidManagedStoreAppConfigurationSchemaItemDataType = 3
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect AndroidManagedStoreAppConfigurationSchemaItemDataType = 4
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle AndroidManagedStoreAppConfigurationSchemaItemDataType = 5
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray AndroidManagedStoreAppConfigurationSchemaItemDataType = 6
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden AndroidManagedStoreAppConfigurationSchemaItemDataType = 7
+)
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePBool returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePBool() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool
+ return &v
+}
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePInteger returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePInteger() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger
+ return &v
+}
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePString returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePString() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString
+ return &v
+}
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePChoice returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePChoice() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice
+ return &v
+}
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePMultiselect returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePMultiselect() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect
+ return &v
+}
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundle returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundle() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle
+ return &v
+}
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundleArray returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundleArray() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray
+ return &v
+}
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePHidden returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePHidden() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemModel.go
new file mode 100644
index 00000000..6af3da5c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaModel.go
new file mode 100644
index 00000000..58859468
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaRequest.go
new file mode 100644
index 00000000..fd1c01a3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppModel.go
new file mode 100644
index 00000000..bf586ffc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreWebAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreWebAppModel.go
new file mode 100644
index 00000000..7cceffa1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreWebAppModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidMinimumOperatingSystemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidMinimumOperatingSystemModel.go
new file mode 100644
index 00000000..595b7c65
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidMinimumOperatingSystemModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidMobileAppIdentifierModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidMobileAppIdentifierModel.go
new file mode 100644
index 00000000..dbe1239f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidMobileAppIdentifierModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidOMACpConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidOMACpConfigurationModel.go
new file mode 100644
index 00000000..41a41c51
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidOMACpConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPermissionActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPermissionActionModel.go
new file mode 100644
index 00000000..074de608
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPermissionActionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPermissionActionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPermissionActionTypeEnum.go
new file mode 100644
index 00000000..7ff34442
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPermissionActionTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidPermissionActionType undocumented
+type AndroidPermissionActionType int
+
+const (
+ // AndroidPermissionActionTypeVPrompt undocumented
+ AndroidPermissionActionTypeVPrompt AndroidPermissionActionType = 0
+ // AndroidPermissionActionTypeVAutoGrant undocumented
+ AndroidPermissionActionTypeVAutoGrant AndroidPermissionActionType = 1
+ // AndroidPermissionActionTypeVAutoDeny undocumented
+ AndroidPermissionActionTypeVAutoDeny AndroidPermissionActionType = 2
+)
+
+// AndroidPermissionActionTypePPrompt returns a pointer to AndroidPermissionActionTypeVPrompt
+func AndroidPermissionActionTypePPrompt() *AndroidPermissionActionType {
+ v := AndroidPermissionActionTypeVPrompt
+ return &v
+}
+
+// AndroidPermissionActionTypePAutoGrant returns a pointer to AndroidPermissionActionTypeVAutoGrant
+func AndroidPermissionActionTypePAutoGrant() *AndroidPermissionActionType {
+ v := AndroidPermissionActionTypeVAutoGrant
+ return &v
+}
+
+// AndroidPermissionActionTypePAutoDeny returns a pointer to AndroidPermissionActionTypeVAutoDeny
+func AndroidPermissionActionTypePAutoDeny() *AndroidPermissionActionType {
+ v := AndroidPermissionActionTypeVAutoDeny
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPkcsCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPkcsCertificateProfileModel.go
new file mode 100644
index 00000000..7e1e5122
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPkcsCertificateProfileModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPkcsCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPkcsCertificateProfileRequest.go
new file mode 100644
index 00000000..f6a6801e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPkcsCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidRequiredPasswordTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidRequiredPasswordTypeEnum.go
new file mode 100644
index 00000000..ec5653b2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidRequiredPasswordTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidRequiredPasswordType undocumented
+type AndroidRequiredPasswordType int
+
+const (
+ // AndroidRequiredPasswordTypeVDeviceDefault undocumented
+ AndroidRequiredPasswordTypeVDeviceDefault AndroidRequiredPasswordType = 0
+ // AndroidRequiredPasswordTypeVAlphabetic undocumented
+ AndroidRequiredPasswordTypeVAlphabetic AndroidRequiredPasswordType = 1
+ // AndroidRequiredPasswordTypeVAlphanumeric undocumented
+ AndroidRequiredPasswordTypeVAlphanumeric AndroidRequiredPasswordType = 2
+ // AndroidRequiredPasswordTypeVAlphanumericWithSymbols undocumented
+ AndroidRequiredPasswordTypeVAlphanumericWithSymbols AndroidRequiredPasswordType = 3
+ // AndroidRequiredPasswordTypeVLowSecurityBiometric undocumented
+ AndroidRequiredPasswordTypeVLowSecurityBiometric AndroidRequiredPasswordType = 4
+ // AndroidRequiredPasswordTypeVNumeric undocumented
+ AndroidRequiredPasswordTypeVNumeric AndroidRequiredPasswordType = 5
+ // AndroidRequiredPasswordTypeVNumericComplex undocumented
+ AndroidRequiredPasswordTypeVNumericComplex AndroidRequiredPasswordType = 6
+ // AndroidRequiredPasswordTypeVAny undocumented
+ AndroidRequiredPasswordTypeVAny AndroidRequiredPasswordType = 7
+)
+
+// AndroidRequiredPasswordTypePDeviceDefault returns a pointer to AndroidRequiredPasswordTypeVDeviceDefault
+func AndroidRequiredPasswordTypePDeviceDefault() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVDeviceDefault
+ return &v
+}
+
+// AndroidRequiredPasswordTypePAlphabetic returns a pointer to AndroidRequiredPasswordTypeVAlphabetic
+func AndroidRequiredPasswordTypePAlphabetic() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVAlphabetic
+ return &v
+}
+
+// AndroidRequiredPasswordTypePAlphanumeric returns a pointer to AndroidRequiredPasswordTypeVAlphanumeric
+func AndroidRequiredPasswordTypePAlphanumeric() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVAlphanumeric
+ return &v
+}
+
+// AndroidRequiredPasswordTypePAlphanumericWithSymbols returns a pointer to AndroidRequiredPasswordTypeVAlphanumericWithSymbols
+func AndroidRequiredPasswordTypePAlphanumericWithSymbols() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVAlphanumericWithSymbols
+ return &v
+}
+
+// AndroidRequiredPasswordTypePLowSecurityBiometric returns a pointer to AndroidRequiredPasswordTypeVLowSecurityBiometric
+func AndroidRequiredPasswordTypePLowSecurityBiometric() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVLowSecurityBiometric
+ return &v
+}
+
+// AndroidRequiredPasswordTypePNumeric returns a pointer to AndroidRequiredPasswordTypeVNumeric
+func AndroidRequiredPasswordTypePNumeric() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVNumeric
+ return &v
+}
+
+// AndroidRequiredPasswordTypePNumericComplex returns a pointer to AndroidRequiredPasswordTypeVNumericComplex
+func AndroidRequiredPasswordTypePNumericComplex() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVNumericComplex
+ return &v
+}
+
+// AndroidRequiredPasswordTypePAny returns a pointer to AndroidRequiredPasswordTypeVAny
+func AndroidRequiredPasswordTypePAny() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVAny
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidScepCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidScepCertificateProfileModel.go
new file mode 100644
index 00000000..022032a1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidScepCertificateProfileModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidScepCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidScepCertificateProfileRequest.go
new file mode 100644
index 00000000..bbaec745
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidScepCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidStoreAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidStoreAppModel.go
new file mode 100644
index 00000000..2152714f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidStoreAppModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidTrustedRootCertificateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidTrustedRootCertificateModel.go
new file mode 100644
index 00000000..ea587954
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidTrustedRootCertificateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidTrustedRootCertificateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidTrustedRootCertificateRequest.go
new file mode 100644
index 00000000..fb85840f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidTrustedRootCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidUsernameSourceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidUsernameSourceEnum.go
new file mode 100644
index 00000000..fefe6d7c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidUsernameSourceEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidUsernameSource undocumented
+type AndroidUsernameSource int
+
+const (
+ // AndroidUsernameSourceVUsername undocumented
+ AndroidUsernameSourceVUsername AndroidUsernameSource = 0
+ // AndroidUsernameSourceVUserPrincipalName undocumented
+ AndroidUsernameSourceVUserPrincipalName AndroidUsernameSource = 1
+ // AndroidUsernameSourceVSamAccountName undocumented
+ AndroidUsernameSourceVSamAccountName AndroidUsernameSource = 2
+ // AndroidUsernameSourceVPrimarySMTPAddress undocumented
+ AndroidUsernameSourceVPrimarySMTPAddress AndroidUsernameSource = 3
+)
+
+// AndroidUsernameSourcePUsername returns a pointer to AndroidUsernameSourceVUsername
+func AndroidUsernameSourcePUsername() *AndroidUsernameSource {
+ v := AndroidUsernameSourceVUsername
+ return &v
+}
+
+// AndroidUsernameSourcePUserPrincipalName returns a pointer to AndroidUsernameSourceVUserPrincipalName
+func AndroidUsernameSourcePUserPrincipalName() *AndroidUsernameSource {
+ v := AndroidUsernameSourceVUserPrincipalName
+ return &v
+}
+
+// AndroidUsernameSourcePSamAccountName returns a pointer to AndroidUsernameSourceVSamAccountName
+func AndroidUsernameSourcePSamAccountName() *AndroidUsernameSource {
+ v := AndroidUsernameSourceVSamAccountName
+ return &v
+}
+
+// AndroidUsernameSourcePPrimarySMTPAddress returns a pointer to AndroidUsernameSourceVPrimarySMTPAddress
+func AndroidUsernameSourcePPrimarySMTPAddress() *AndroidUsernameSource {
+ v := AndroidUsernameSourceVPrimarySMTPAddress
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConfigurationModel.go
new file mode 100644
index 00000000..78ef6c7b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConfigurationRequest.go
new file mode 100644
index 00000000..4584771f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidVpnConfigurationRequestBuilder) IdentityCertificate() *AndroidCertificateProfileBaseRequestBuilder {
+ bb := &AndroidCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConnectionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConnectionTypeEnum.go
new file mode 100644
index 00000000..0a536957
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConnectionTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidVpnConnectionType undocumented
+type AndroidVpnConnectionType int
+
+const (
+ // AndroidVpnConnectionTypeVCiscoAnyConnect undocumented
+ AndroidVpnConnectionTypeVCiscoAnyConnect AndroidVpnConnectionType = 0
+ // AndroidVpnConnectionTypeVPulseSecure undocumented
+ AndroidVpnConnectionTypeVPulseSecure AndroidVpnConnectionType = 1
+ // AndroidVpnConnectionTypeVF5EdgeClient undocumented
+ AndroidVpnConnectionTypeVF5EdgeClient AndroidVpnConnectionType = 2
+ // AndroidVpnConnectionTypeVDellSonicWallMobileConnect undocumented
+ AndroidVpnConnectionTypeVDellSonicWallMobileConnect AndroidVpnConnectionType = 3
+ // AndroidVpnConnectionTypeVCheckPointCapsuleVpn undocumented
+ AndroidVpnConnectionTypeVCheckPointCapsuleVpn AndroidVpnConnectionType = 4
+ // AndroidVpnConnectionTypeVCitrix undocumented
+ AndroidVpnConnectionTypeVCitrix AndroidVpnConnectionType = 5
+)
+
+// AndroidVpnConnectionTypePCiscoAnyConnect returns a pointer to AndroidVpnConnectionTypeVCiscoAnyConnect
+func AndroidVpnConnectionTypePCiscoAnyConnect() *AndroidVpnConnectionType {
+ v := AndroidVpnConnectionTypeVCiscoAnyConnect
+ return &v
+}
+
+// AndroidVpnConnectionTypePPulseSecure returns a pointer to AndroidVpnConnectionTypeVPulseSecure
+func AndroidVpnConnectionTypePPulseSecure() *AndroidVpnConnectionType {
+ v := AndroidVpnConnectionTypeVPulseSecure
+ return &v
+}
+
+// AndroidVpnConnectionTypePF5EdgeClient returns a pointer to AndroidVpnConnectionTypeVF5EdgeClient
+func AndroidVpnConnectionTypePF5EdgeClient() *AndroidVpnConnectionType {
+ v := AndroidVpnConnectionTypeVF5EdgeClient
+ return &v
+}
+
+// AndroidVpnConnectionTypePDellSonicWallMobileConnect returns a pointer to AndroidVpnConnectionTypeVDellSonicWallMobileConnect
+func AndroidVpnConnectionTypePDellSonicWallMobileConnect() *AndroidVpnConnectionType {
+ v := AndroidVpnConnectionTypeVDellSonicWallMobileConnect
+ return &v
+}
+
+// AndroidVpnConnectionTypePCheckPointCapsuleVpn returns a pointer to AndroidVpnConnectionTypeVCheckPointCapsuleVpn
+func AndroidVpnConnectionTypePCheckPointCapsuleVpn() *AndroidVpnConnectionType {
+ v := AndroidVpnConnectionTypeVCheckPointCapsuleVpn
+ return &v
+}
+
+// AndroidVpnConnectionTypePCitrix returns a pointer to AndroidVpnConnectionTypeVCitrix
+func AndroidVpnConnectionTypePCitrix() *AndroidVpnConnectionType {
+ v := AndroidVpnConnectionTypeVCitrix
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWiFiConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWiFiConfigurationModel.go
new file mode 100644
index 00000000..58ef1ef7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWiFiConfigurationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWiFiSecurityTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWiFiSecurityTypeEnum.go
new file mode 100644
index 00000000..ca5cc336
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWiFiSecurityTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWiFiSecurityType undocumented
+type AndroidWiFiSecurityType int
+
+const (
+ // AndroidWiFiSecurityTypeVOpen undocumented
+ AndroidWiFiSecurityTypeVOpen AndroidWiFiSecurityType = 0
+ // AndroidWiFiSecurityTypeVWpaEnterprise undocumented
+ AndroidWiFiSecurityTypeVWpaEnterprise AndroidWiFiSecurityType = 1
+ // AndroidWiFiSecurityTypeVWpa2Enterprise undocumented
+ AndroidWiFiSecurityTypeVWpa2Enterprise AndroidWiFiSecurityType = 2
+)
+
+// AndroidWiFiSecurityTypePOpen returns a pointer to AndroidWiFiSecurityTypeVOpen
+func AndroidWiFiSecurityTypePOpen() *AndroidWiFiSecurityType {
+ v := AndroidWiFiSecurityTypeVOpen
+ return &v
+}
+
+// AndroidWiFiSecurityTypePWpaEnterprise returns a pointer to AndroidWiFiSecurityTypeVWpaEnterprise
+func AndroidWiFiSecurityTypePWpaEnterprise() *AndroidWiFiSecurityType {
+ v := AndroidWiFiSecurityTypeVWpaEnterprise
+ return &v
+}
+
+// AndroidWiFiSecurityTypePWpa2Enterprise returns a pointer to AndroidWiFiSecurityTypeVWpa2Enterprise
+func AndroidWiFiSecurityTypePWpa2Enterprise() *AndroidWiFiSecurityType {
+ v := AndroidWiFiSecurityTypeVWpa2Enterprise
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseModel.go
new file mode 100644
index 00000000..ee5b474c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseRequest.go
new file mode 100644
index 00000000..d0342d4f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// RootCertificate is navigation property
+func (b *AndroidWorkProfileCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidWorkProfileTrustedRootCertificateRequestBuilder {
+ bb := &AndroidWorkProfileTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCompliancePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCompliancePolicyModel.go
new file mode 100644
index 00000000..4b1d55f6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCompliancePolicyModel.go
@@ -0,0 +1,53 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCrossProfileDataSharingTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCrossProfileDataSharingTypeEnum.go
new file mode 100644
index 00000000..4f0e8315
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCrossProfileDataSharingTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileCrossProfileDataSharingType undocumented
+type AndroidWorkProfileCrossProfileDataSharingType int
+
+const (
+ // AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault undocumented
+ AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault AndroidWorkProfileCrossProfileDataSharingType = 0
+ // AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny undocumented
+ AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny AndroidWorkProfileCrossProfileDataSharingType = 1
+ // AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork undocumented
+ AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork AndroidWorkProfileCrossProfileDataSharingType = 2
+ // AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions undocumented
+ AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions AndroidWorkProfileCrossProfileDataSharingType = 3
+)
+
+// AndroidWorkProfileCrossProfileDataSharingTypePDeviceDefault returns a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault
+func AndroidWorkProfileCrossProfileDataSharingTypePDeviceDefault() *AndroidWorkProfileCrossProfileDataSharingType {
+ v := AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault
+ return &v
+}
+
+// AndroidWorkProfileCrossProfileDataSharingTypePPreventAny returns a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny
+func AndroidWorkProfileCrossProfileDataSharingTypePPreventAny() *AndroidWorkProfileCrossProfileDataSharingType {
+ v := AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny
+ return &v
+}
+
+// AndroidWorkProfileCrossProfileDataSharingTypePAllowPersonalToWork returns a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork
+func AndroidWorkProfileCrossProfileDataSharingTypePAllowPersonalToWork() *AndroidWorkProfileCrossProfileDataSharingType {
+ v := AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork
+ return &v
+}
+
+// AndroidWorkProfileCrossProfileDataSharingTypePNoRestrictions returns a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions
+func AndroidWorkProfileCrossProfileDataSharingTypePNoRestrictions() *AndroidWorkProfileCrossProfileDataSharingType {
+ v := AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCustomConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCustomConfigurationModel.go
new file mode 100644
index 00000000..fa88fefb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCustomConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileDefaultAppPermissionPolicyTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileDefaultAppPermissionPolicyTypeEnum.go
new file mode 100644
index 00000000..0a595f9b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileDefaultAppPermissionPolicyTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileDefaultAppPermissionPolicyType undocumented
+type AndroidWorkProfileDefaultAppPermissionPolicyType int
+
+const (
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault undocumented
+ AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault AndroidWorkProfileDefaultAppPermissionPolicyType = 0
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt undocumented
+ AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt AndroidWorkProfileDefaultAppPermissionPolicyType = 1
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant undocumented
+ AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant AndroidWorkProfileDefaultAppPermissionPolicyType = 2
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny undocumented
+ AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny AndroidWorkProfileDefaultAppPermissionPolicyType = 3
+)
+
+// AndroidWorkProfileDefaultAppPermissionPolicyTypePDeviceDefault returns a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault
+func AndroidWorkProfileDefaultAppPermissionPolicyTypePDeviceDefault() *AndroidWorkProfileDefaultAppPermissionPolicyType {
+ v := AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault
+ return &v
+}
+
+// AndroidWorkProfileDefaultAppPermissionPolicyTypePPrompt returns a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt
+func AndroidWorkProfileDefaultAppPermissionPolicyTypePPrompt() *AndroidWorkProfileDefaultAppPermissionPolicyType {
+ v := AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt
+ return &v
+}
+
+// AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoGrant returns a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant
+func AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoGrant() *AndroidWorkProfileDefaultAppPermissionPolicyType {
+ v := AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant
+ return &v
+}
+
+// AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoDeny returns a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny
+func AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoDeny() *AndroidWorkProfileDefaultAppPermissionPolicyType {
+ v := AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseModel.go
new file mode 100644
index 00000000..64fd117f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseRequest.go
new file mode 100644
index 00000000..7783272a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidWorkProfileEasEmailProfileBaseRequestBuilder) IdentityCertificate() *AndroidWorkProfileCertificateProfileBaseRequestBuilder {
+ bb := &AndroidWorkProfileCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationModel.go
new file mode 100644
index 00000000..1b4ff4e6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationRequest.go
new file mode 100644
index 00000000..a39fb0c3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileGeneralDeviceConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileGeneralDeviceConfigurationModel.go
new file mode 100644
index 00000000..340776ad
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileGeneralDeviceConfigurationModel.go
@@ -0,0 +1,85 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileGmailEasConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileGmailEasConfigurationModel.go
new file mode 100644
index 00000000..352a5687
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileGmailEasConfigurationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileNineWorkEasConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileNineWorkEasConfigurationModel.go
new file mode 100644
index 00000000..e9f1d5d0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileNineWorkEasConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileModel.go
new file mode 100644
index 00000000..8960d5a6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileRequest.go
new file mode 100644
index 00000000..9a949907
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileRequiredPasswordTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileRequiredPasswordTypeEnum.go
new file mode 100644
index 00000000..2bdb20ac
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileRequiredPasswordTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileRequiredPasswordType undocumented
+type AndroidWorkProfileRequiredPasswordType int
+
+const (
+ // AndroidWorkProfileRequiredPasswordTypeVDeviceDefault undocumented
+ AndroidWorkProfileRequiredPasswordTypeVDeviceDefault AndroidWorkProfileRequiredPasswordType = 0
+ // AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric undocumented
+ AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric AndroidWorkProfileRequiredPasswordType = 1
+ // AndroidWorkProfileRequiredPasswordTypeVRequired undocumented
+ AndroidWorkProfileRequiredPasswordTypeVRequired AndroidWorkProfileRequiredPasswordType = 2
+ // AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric undocumented
+ AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric AndroidWorkProfileRequiredPasswordType = 3
+ // AndroidWorkProfileRequiredPasswordTypeVNumericComplex undocumented
+ AndroidWorkProfileRequiredPasswordTypeVNumericComplex AndroidWorkProfileRequiredPasswordType = 4
+ // AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic undocumented
+ AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic AndroidWorkProfileRequiredPasswordType = 5
+ // AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric undocumented
+ AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric AndroidWorkProfileRequiredPasswordType = 6
+ // AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols undocumented
+ AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols AndroidWorkProfileRequiredPasswordType = 7
+)
+
+// AndroidWorkProfileRequiredPasswordTypePDeviceDefault returns a pointer to AndroidWorkProfileRequiredPasswordTypeVDeviceDefault
+func AndroidWorkProfileRequiredPasswordTypePDeviceDefault() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVDeviceDefault
+ return &v
+}
+
+// AndroidWorkProfileRequiredPasswordTypePLowSecurityBiometric returns a pointer to AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric
+func AndroidWorkProfileRequiredPasswordTypePLowSecurityBiometric() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric
+ return &v
+}
+
+// AndroidWorkProfileRequiredPasswordTypePRequired returns a pointer to AndroidWorkProfileRequiredPasswordTypeVRequired
+func AndroidWorkProfileRequiredPasswordTypePRequired() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVRequired
+ return &v
+}
+
+// AndroidWorkProfileRequiredPasswordTypePAtLeastNumeric returns a pointer to AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric
+func AndroidWorkProfileRequiredPasswordTypePAtLeastNumeric() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric
+ return &v
+}
+
+// AndroidWorkProfileRequiredPasswordTypePNumericComplex returns a pointer to AndroidWorkProfileRequiredPasswordTypeVNumericComplex
+func AndroidWorkProfileRequiredPasswordTypePNumericComplex() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVNumericComplex
+ return &v
+}
+
+// AndroidWorkProfileRequiredPasswordTypePAtLeastAlphabetic returns a pointer to AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic
+func AndroidWorkProfileRequiredPasswordTypePAtLeastAlphabetic() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic
+ return &v
+}
+
+// AndroidWorkProfileRequiredPasswordTypePAtLeastAlphanumeric returns a pointer to AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric
+func AndroidWorkProfileRequiredPasswordTypePAtLeastAlphanumeric() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric
+ return &v
+}
+
+// AndroidWorkProfileRequiredPasswordTypePAlphanumericWithSymbols returns a pointer to AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols
+func AndroidWorkProfileRequiredPasswordTypePAlphanumericWithSymbols() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileModel.go
new file mode 100644
index 00000000..0e414125
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileRequest.go
new file mode 100644
index 00000000..9504a566
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateModel.go
new file mode 100644
index 00000000..54e9a0e1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateRequest.go
new file mode 100644
index 00000000..4051893f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConfigurationModel.go
new file mode 100644
index 00000000..ea59921f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConfigurationRequest.go
new file mode 100644
index 00000000..6e7e482e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConnectionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConnectionTypeEnum.go
new file mode 100644
index 00000000..ce14ab2e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConnectionTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileVpnConnectionType undocumented
+type AndroidWorkProfileVpnConnectionType int
+
+const (
+ // AndroidWorkProfileVpnConnectionTypeVCiscoAnyConnect undocumented
+ AndroidWorkProfileVpnConnectionTypeVCiscoAnyConnect AndroidWorkProfileVpnConnectionType = 0
+ // AndroidWorkProfileVpnConnectionTypeVPulseSecure undocumented
+ AndroidWorkProfileVpnConnectionTypeVPulseSecure AndroidWorkProfileVpnConnectionType = 1
+ // AndroidWorkProfileVpnConnectionTypeVF5EdgeClient undocumented
+ AndroidWorkProfileVpnConnectionTypeVF5EdgeClient AndroidWorkProfileVpnConnectionType = 2
+ // AndroidWorkProfileVpnConnectionTypeVDellSonicWallMobileConnect undocumented
+ AndroidWorkProfileVpnConnectionTypeVDellSonicWallMobileConnect AndroidWorkProfileVpnConnectionType = 3
+ // AndroidWorkProfileVpnConnectionTypeVCheckPointCapsuleVpn undocumented
+ AndroidWorkProfileVpnConnectionTypeVCheckPointCapsuleVpn AndroidWorkProfileVpnConnectionType = 4
+ // AndroidWorkProfileVpnConnectionTypeVCitrix undocumented
+ AndroidWorkProfileVpnConnectionTypeVCitrix AndroidWorkProfileVpnConnectionType = 5
+ // AndroidWorkProfileVpnConnectionTypeVPaloAltoGlobalProtect undocumented
+ AndroidWorkProfileVpnConnectionTypeVPaloAltoGlobalProtect AndroidWorkProfileVpnConnectionType = 6
+)
+
+// AndroidWorkProfileVpnConnectionTypePCiscoAnyConnect returns a pointer to AndroidWorkProfileVpnConnectionTypeVCiscoAnyConnect
+func AndroidWorkProfileVpnConnectionTypePCiscoAnyConnect() *AndroidWorkProfileVpnConnectionType {
+ v := AndroidWorkProfileVpnConnectionTypeVCiscoAnyConnect
+ return &v
+}
+
+// AndroidWorkProfileVpnConnectionTypePPulseSecure returns a pointer to AndroidWorkProfileVpnConnectionTypeVPulseSecure
+func AndroidWorkProfileVpnConnectionTypePPulseSecure() *AndroidWorkProfileVpnConnectionType {
+ v := AndroidWorkProfileVpnConnectionTypeVPulseSecure
+ return &v
+}
+
+// AndroidWorkProfileVpnConnectionTypePF5EdgeClient returns a pointer to AndroidWorkProfileVpnConnectionTypeVF5EdgeClient
+func AndroidWorkProfileVpnConnectionTypePF5EdgeClient() *AndroidWorkProfileVpnConnectionType {
+ v := AndroidWorkProfileVpnConnectionTypeVF5EdgeClient
+ return &v
+}
+
+// AndroidWorkProfileVpnConnectionTypePDellSonicWallMobileConnect returns a pointer to AndroidWorkProfileVpnConnectionTypeVDellSonicWallMobileConnect
+func AndroidWorkProfileVpnConnectionTypePDellSonicWallMobileConnect() *AndroidWorkProfileVpnConnectionType {
+ v := AndroidWorkProfileVpnConnectionTypeVDellSonicWallMobileConnect
+ return &v
+}
+
+// AndroidWorkProfileVpnConnectionTypePCheckPointCapsuleVpn returns a pointer to AndroidWorkProfileVpnConnectionTypeVCheckPointCapsuleVpn
+func AndroidWorkProfileVpnConnectionTypePCheckPointCapsuleVpn() *AndroidWorkProfileVpnConnectionType {
+ v := AndroidWorkProfileVpnConnectionTypeVCheckPointCapsuleVpn
+ return &v
+}
+
+// AndroidWorkProfileVpnConnectionTypePCitrix returns a pointer to AndroidWorkProfileVpnConnectionTypeVCitrix
+func AndroidWorkProfileVpnConnectionTypePCitrix() *AndroidWorkProfileVpnConnectionType {
+ v := AndroidWorkProfileVpnConnectionTypeVCitrix
+ return &v
+}
+
+// AndroidWorkProfileVpnConnectionTypePPaloAltoGlobalProtect returns a pointer to AndroidWorkProfileVpnConnectionTypeVPaloAltoGlobalProtect
+func AndroidWorkProfileVpnConnectionTypePPaloAltoGlobalProtect() *AndroidWorkProfileVpnConnectionType {
+ v := AndroidWorkProfileVpnConnectionTypeVPaloAltoGlobalProtect
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileWiFiConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileWiFiConfigurationModel.go
new file mode 100644
index 00000000..2918caf6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileWiFiConfigurationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AnniversaryTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AnniversaryTypeEnum.go
new file mode 100644
index 00000000..aa51f63d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AnniversaryTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AnniversaryType undocumented
+type AnniversaryType int
+
+const (
+ // AnniversaryTypeVBirthday undocumented
+ AnniversaryTypeVBirthday AnniversaryType = 0
+ // AnniversaryTypeVWedding undocumented
+ AnniversaryTypeVWedding AnniversaryType = 1
+ // AnniversaryTypeVUnknownFutureValue undocumented
+ AnniversaryTypeVUnknownFutureValue AnniversaryType = 3
+)
+
+// AnniversaryTypePBirthday returns a pointer to AnniversaryTypeVBirthday
+func AnniversaryTypePBirthday() *AnniversaryType {
+ v := AnniversaryTypeVBirthday
+ return &v
+}
+
+// AnniversaryTypePWedding returns a pointer to AnniversaryTypeVWedding
+func AnniversaryTypePWedding() *AnniversaryType {
+ v := AnniversaryTypeVWedding
+ return &v
+}
+
+// AnniversaryTypePUnknownFutureValue returns a pointer to AnniversaryTypeVUnknownFutureValue
+func AnniversaryTypePUnknownFutureValue() *AnniversaryType {
+ v := AnniversaryTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AnonymousIPRiskEventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AnonymousIPRiskEventModel.go
new file mode 100644
index 00000000..f79ef65d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AnonymousIPRiskEventModel.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/matterbridge/msgraph.go/beta/AnonymousIPRiskEventRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AnonymousIPRiskEventRequest.go
new file mode 100644
index 00000000..4a23bb19
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AnonymousIPRiskEventRequest.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/matterbridge/msgraph.go/beta/AppCatalogsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppCatalogsModel.go
new file mode 100644
index 00000000..de2b6a34
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppCatalogsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppCatalogs undocumented
+type AppCatalogs struct {
+ // Entity is the base model of AppCatalogs
+ Entity
+ // TeamsApps undocumented
+ TeamsApps []TeamsApp `json:"teamsApps,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppCatalogsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppCatalogsRequest.go
new file mode 100644
index 00000000..96615182
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppCatalogsRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsApp collection
+func (r *AppCatalogsTeamsAppsCollectionRequest) Get(ctx context.Context) ([]TeamsApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppConfigurationSettingItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppConfigurationSettingItemModel.go
new file mode 100644
index 00000000..efbecc47
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppConfigurationSettingItemModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppHostedMediaConfigModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppHostedMediaConfigModel.go
new file mode 100644
index 00000000..b79dcd2d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppHostedMediaConfigModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppHostedMediaConfig undocumented
+type AppHostedMediaConfig struct {
+ // MediaConfig is the base model of AppHostedMediaConfig
+ MediaConfig
+ // Blob undocumented
+ Blob *string `json:"blob,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppIdentityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppIdentityModel.go
new file mode 100644
index 00000000..642f4eb5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppIdentityModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppInstallControlTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppInstallControlTypeEnum.go
new file mode 100644
index 00000000..130a51b0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppInstallControlTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppInstallControlType undocumented
+type AppInstallControlType int
+
+const (
+ // AppInstallControlTypeVNotConfigured undocumented
+ AppInstallControlTypeVNotConfigured AppInstallControlType = 0
+ // AppInstallControlTypeVAnywhere undocumented
+ AppInstallControlTypeVAnywhere AppInstallControlType = 1
+ // AppInstallControlTypeVStoreOnly undocumented
+ AppInstallControlTypeVStoreOnly AppInstallControlType = 2
+ // AppInstallControlTypeVRecommendations undocumented
+ AppInstallControlTypeVRecommendations AppInstallControlType = 3
+ // AppInstallControlTypeVPreferStore undocumented
+ AppInstallControlTypeVPreferStore AppInstallControlType = 4
+)
+
+// AppInstallControlTypePNotConfigured returns a pointer to AppInstallControlTypeVNotConfigured
+func AppInstallControlTypePNotConfigured() *AppInstallControlType {
+ v := AppInstallControlTypeVNotConfigured
+ return &v
+}
+
+// AppInstallControlTypePAnywhere returns a pointer to AppInstallControlTypeVAnywhere
+func AppInstallControlTypePAnywhere() *AppInstallControlType {
+ v := AppInstallControlTypeVAnywhere
+ return &v
+}
+
+// AppInstallControlTypePStoreOnly returns a pointer to AppInstallControlTypeVStoreOnly
+func AppInstallControlTypePStoreOnly() *AppInstallControlType {
+ v := AppInstallControlTypeVStoreOnly
+ return &v
+}
+
+// AppInstallControlTypePRecommendations returns a pointer to AppInstallControlTypeVRecommendations
+func AppInstallControlTypePRecommendations() *AppInstallControlType {
+ v := AppInstallControlTypeVRecommendations
+ return &v
+}
+
+// AppInstallControlTypePPreferStore returns a pointer to AppInstallControlTypeVPreferStore
+func AppInstallControlTypePPreferStore() *AppInstallControlType {
+ v := AppInstallControlTypeVPreferStore
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppListItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppListItemModel.go
new file mode 100644
index 00000000..2492b397
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppListItemModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppListTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppListTypeEnum.go
new file mode 100644
index 00000000..239a3317
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppListTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppListType undocumented
+type AppListType int
+
+const (
+ // AppListTypeVNone undocumented
+ AppListTypeVNone AppListType = 0
+ // AppListTypeVAppsInListCompliant undocumented
+ AppListTypeVAppsInListCompliant AppListType = 1
+ // AppListTypeVAppsNotInListCompliant undocumented
+ AppListTypeVAppsNotInListCompliant AppListType = 2
+)
+
+// AppListTypePNone returns a pointer to AppListTypeVNone
+func AppListTypePNone() *AppListType {
+ v := AppListTypeVNone
+ return &v
+}
+
+// AppListTypePAppsInListCompliant returns a pointer to AppListTypeVAppsInListCompliant
+func AppListTypePAppsInListCompliant() *AppListType {
+ v := AppListTypeVAppsInListCompliant
+ return &v
+}
+
+// AppListTypePAppsNotInListCompliant returns a pointer to AppListTypeVAppsNotInListCompliant
+func AppListTypePAppsNotInListCompliant() *AppListType {
+ v := AppListTypeVAppsNotInListCompliant
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppLockerApplicationControlTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppLockerApplicationControlTypeEnum.go
new file mode 100644
index 00000000..e965580f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppLockerApplicationControlTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppLockerApplicationControlType undocumented
+type AppLockerApplicationControlType int
+
+const (
+ // AppLockerApplicationControlTypeVNotConfigured undocumented
+ AppLockerApplicationControlTypeVNotConfigured AppLockerApplicationControlType = 0
+ // AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps undocumented
+ AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps AppLockerApplicationControlType = 1
+ // AppLockerApplicationControlTypeVAuditComponentsAndStoreApps undocumented
+ AppLockerApplicationControlTypeVAuditComponentsAndStoreApps AppLockerApplicationControlType = 2
+ // AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker undocumented
+ AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker AppLockerApplicationControlType = 3
+ // AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker undocumented
+ AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker AppLockerApplicationControlType = 4
+)
+
+// AppLockerApplicationControlTypePNotConfigured returns a pointer to AppLockerApplicationControlTypeVNotConfigured
+func AppLockerApplicationControlTypePNotConfigured() *AppLockerApplicationControlType {
+ v := AppLockerApplicationControlTypeVNotConfigured
+ return &v
+}
+
+// AppLockerApplicationControlTypePEnforceComponentsAndStoreApps returns a pointer to AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps
+func AppLockerApplicationControlTypePEnforceComponentsAndStoreApps() *AppLockerApplicationControlType {
+ v := AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps
+ return &v
+}
+
+// AppLockerApplicationControlTypePAuditComponentsAndStoreApps returns a pointer to AppLockerApplicationControlTypeVAuditComponentsAndStoreApps
+func AppLockerApplicationControlTypePAuditComponentsAndStoreApps() *AppLockerApplicationControlType {
+ v := AppLockerApplicationControlTypeVAuditComponentsAndStoreApps
+ return &v
+}
+
+// AppLockerApplicationControlTypePEnforceComponentsStoreAppsAndSmartlocker returns a pointer to AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker
+func AppLockerApplicationControlTypePEnforceComponentsStoreAppsAndSmartlocker() *AppLockerApplicationControlType {
+ v := AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker
+ return &v
+}
+
+// AppLockerApplicationControlTypePAuditComponentsStoreAppsAndSmartlocker returns a pointer to AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker
+func AppLockerApplicationControlTypePAuditComponentsStoreAppsAndSmartlocker() *AppLockerApplicationControlType {
+ v := AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionDownloadDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionDownloadDetailsModel.go
new file mode 100644
index 00000000..0b7c0555
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionDownloadDetailsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectAction.go
new file mode 100644
index 00000000..32f945bd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectAction.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AppLogCollectionRequestObjectCreateDownloadURLRequestParameter undocumented
+type AppLogCollectionRequestObjectCreateDownloadURLRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectModel.go
new file mode 100644
index 00000000..a6e01f3b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectRequest.go
new file mode 100644
index 00000000..c4cc0c86
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppLogDecryptionAlgorithmEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppLogDecryptionAlgorithmEnum.go
new file mode 100644
index 00000000..b574e246
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppLogDecryptionAlgorithmEnum.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppLogDecryptionAlgorithm undocumented
+type AppLogDecryptionAlgorithm int
+
+const (
+ // AppLogDecryptionAlgorithmVAes256 undocumented
+ AppLogDecryptionAlgorithmVAes256 AppLogDecryptionAlgorithm = 0
+)
+
+// AppLogDecryptionAlgorithmPAes256 returns a pointer to AppLogDecryptionAlgorithmVAes256
+func AppLogDecryptionAlgorithmPAes256() *AppLogDecryptionAlgorithm {
+ v := AppLogDecryptionAlgorithmVAes256
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppLogUploadStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppLogUploadStateEnum.go
new file mode 100644
index 00000000..81b27b48
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppLogUploadStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppLogUploadState undocumented
+type AppLogUploadState int
+
+const (
+ // AppLogUploadStateVPending undocumented
+ AppLogUploadStateVPending AppLogUploadState = 0
+ // AppLogUploadStateVCompleted undocumented
+ AppLogUploadStateVCompleted AppLogUploadState = 1
+ // AppLogUploadStateVFailed undocumented
+ AppLogUploadStateVFailed AppLogUploadState = 2
+)
+
+// AppLogUploadStatePPending returns a pointer to AppLogUploadStateVPending
+func AppLogUploadStatePPending() *AppLogUploadState {
+ v := AppLogUploadStateVPending
+ return &v
+}
+
+// AppLogUploadStatePCompleted returns a pointer to AppLogUploadStateVCompleted
+func AppLogUploadStatePCompleted() *AppLogUploadState {
+ v := AppLogUploadStateVCompleted
+ return &v
+}
+
+// AppLogUploadStatePFailed returns a pointer to AppLogUploadStateVFailed
+func AppLogUploadStatePFailed() *AppLogUploadState {
+ v := AppLogUploadStateVFailed
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppManagementLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppManagementLevelEnum.go
new file mode 100644
index 00000000..35e7090f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppManagementLevelEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppManagementLevel undocumented
+type AppManagementLevel int
+
+const (
+ // AppManagementLevelVUnspecified undocumented
+ AppManagementLevelVUnspecified AppManagementLevel = 0
+ // AppManagementLevelVUnmanaged undocumented
+ AppManagementLevelVUnmanaged AppManagementLevel = 1
+ // AppManagementLevelVMdm undocumented
+ AppManagementLevelVMdm AppManagementLevel = 2
+ // AppManagementLevelVAndroidEnterprise undocumented
+ AppManagementLevelVAndroidEnterprise AppManagementLevel = 4
+)
+
+// AppManagementLevelPUnspecified returns a pointer to AppManagementLevelVUnspecified
+func AppManagementLevelPUnspecified() *AppManagementLevel {
+ v := AppManagementLevelVUnspecified
+ return &v
+}
+
+// AppManagementLevelPUnmanaged returns a pointer to AppManagementLevelVUnmanaged
+func AppManagementLevelPUnmanaged() *AppManagementLevel {
+ v := AppManagementLevelVUnmanaged
+ return &v
+}
+
+// AppManagementLevelPMdm returns a pointer to AppManagementLevelVMdm
+func AppManagementLevelPMdm() *AppManagementLevel {
+ v := AppManagementLevelVMdm
+ return &v
+}
+
+// AppManagementLevelPAndroidEnterprise returns a pointer to AppManagementLevelVAndroidEnterprise
+func AppManagementLevelPAndroidEnterprise() *AppManagementLevel {
+ v := AppManagementLevelVAndroidEnterprise
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppRoleAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppRoleAssignmentModel.go
new file mode 100644
index 00000000..9343821a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppRoleAssignmentModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppRoleAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppRoleAssignmentRequest.go
new file mode 100644
index 00000000..c04e2d2b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppRoleAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppRoleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppRoleModel.go
new file mode 100644
index 00000000..7c9cf177
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppRoleModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityManagedDeviceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityManagedDeviceModel.go
new file mode 100644
index 00000000..f0258bef
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityManagedDeviceModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityManagedDeviceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityManagedDeviceRequest.go
new file mode 100644
index 00000000..8ba3d15c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityManagedDeviceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityMobileAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityMobileAppModel.go
new file mode 100644
index 00000000..a0636161
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityMobileAppModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityMobileAppRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityMobileAppRequest.go
new file mode 100644
index 00000000..29c9205e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityMobileAppRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskMitigationTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskMitigationTypeEnum.go
new file mode 100644
index 00000000..3afbdf5e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskMitigationTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppVulnerabilityTaskMitigationType undocumented
+type AppVulnerabilityTaskMitigationType int
+
+const (
+ // AppVulnerabilityTaskMitigationTypeVUnknown undocumented
+ AppVulnerabilityTaskMitigationTypeVUnknown AppVulnerabilityTaskMitigationType = 0
+ // AppVulnerabilityTaskMitigationTypeVUpdate undocumented
+ AppVulnerabilityTaskMitigationTypeVUpdate AppVulnerabilityTaskMitigationType = 1
+ // AppVulnerabilityTaskMitigationTypeVUninstall undocumented
+ AppVulnerabilityTaskMitigationTypeVUninstall AppVulnerabilityTaskMitigationType = 2
+ // AppVulnerabilityTaskMitigationTypeVSecurityConfiguration undocumented
+ AppVulnerabilityTaskMitigationTypeVSecurityConfiguration AppVulnerabilityTaskMitigationType = 3
+)
+
+// AppVulnerabilityTaskMitigationTypePUnknown returns a pointer to AppVulnerabilityTaskMitigationTypeVUnknown
+func AppVulnerabilityTaskMitigationTypePUnknown() *AppVulnerabilityTaskMitigationType {
+ v := AppVulnerabilityTaskMitigationTypeVUnknown
+ return &v
+}
+
+// AppVulnerabilityTaskMitigationTypePUpdate returns a pointer to AppVulnerabilityTaskMitigationTypeVUpdate
+func AppVulnerabilityTaskMitigationTypePUpdate() *AppVulnerabilityTaskMitigationType {
+ v := AppVulnerabilityTaskMitigationTypeVUpdate
+ return &v
+}
+
+// AppVulnerabilityTaskMitigationTypePUninstall returns a pointer to AppVulnerabilityTaskMitigationTypeVUninstall
+func AppVulnerabilityTaskMitigationTypePUninstall() *AppVulnerabilityTaskMitigationType {
+ v := AppVulnerabilityTaskMitigationTypeVUninstall
+ return &v
+}
+
+// AppVulnerabilityTaskMitigationTypePSecurityConfiguration returns a pointer to AppVulnerabilityTaskMitigationTypeVSecurityConfiguration
+func AppVulnerabilityTaskMitigationTypePSecurityConfiguration() *AppVulnerabilityTaskMitigationType {
+ v := AppVulnerabilityTaskMitigationTypeVSecurityConfiguration
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskModel.go
new file mode 100644
index 00000000..07c15dbc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AppVulnerabilityTaskRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskRequest.go
new file mode 100644
index 00000000..63c826e4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppVulnerabilityManagedDevice collection
+func (r *AppVulnerabilityTaskManagedDevicesCollectionRequest) Get(ctx context.Context) ([]AppVulnerabilityManagedDevice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppVulnerabilityMobileApp collection
+func (r *AppVulnerabilityTaskMobileAppsCollectionRequest) Get(ctx context.Context) ([]AppVulnerabilityMobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/AppleDeviceFeaturesConfigurationBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppleDeviceFeaturesConfigurationBaseModel.go
new file mode 100644
index 00000000..aa886d64
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppleDeviceFeaturesConfigurationBaseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppleEnrollmentProfileAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppleEnrollmentProfileAssignmentModel.go
new file mode 100644
index 00000000..20709579
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppleEnrollmentProfileAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppleEnrollmentProfileAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppleEnrollmentProfileAssignmentRequest.go
new file mode 100644
index 00000000..853a12f5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppleEnrollmentProfileAssignmentRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppleOwnerTypeEnrollmentTypeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppleOwnerTypeEnrollmentTypeModel.go
new file mode 100644
index 00000000..d69fd318
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppleOwnerTypeEnrollmentTypeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplePushNotificationCertificateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplePushNotificationCertificateModel.go
new file mode 100644
index 00000000..94a4f52c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplePushNotificationCertificateModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplePushNotificationCertificateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplePushNotificationCertificateRequest.go
new file mode 100644
index 00000000..9db32aa8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplePushNotificationCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppleSubjectNameFormatEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppleSubjectNameFormatEnum.go
new file mode 100644
index 00000000..a4a9e4d8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppleSubjectNameFormatEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppleSubjectNameFormat undocumented
+type AppleSubjectNameFormat int
+
+const (
+ // AppleSubjectNameFormatVCommonName undocumented
+ AppleSubjectNameFormatVCommonName AppleSubjectNameFormat = 0
+ // AppleSubjectNameFormatVCommonNameAsEmail undocumented
+ AppleSubjectNameFormatVCommonNameAsEmail AppleSubjectNameFormat = 1
+ // AppleSubjectNameFormatVCustom undocumented
+ AppleSubjectNameFormatVCustom AppleSubjectNameFormat = 2
+ // AppleSubjectNameFormatVCommonNameIncludingEmail undocumented
+ AppleSubjectNameFormatVCommonNameIncludingEmail AppleSubjectNameFormat = 3
+ // AppleSubjectNameFormatVCommonNameAsIMEI undocumented
+ AppleSubjectNameFormatVCommonNameAsIMEI AppleSubjectNameFormat = 5
+ // AppleSubjectNameFormatVCommonNameAsSerialNumber undocumented
+ AppleSubjectNameFormatVCommonNameAsSerialNumber AppleSubjectNameFormat = 6
+)
+
+// AppleSubjectNameFormatPCommonName returns a pointer to AppleSubjectNameFormatVCommonName
+func AppleSubjectNameFormatPCommonName() *AppleSubjectNameFormat {
+ v := AppleSubjectNameFormatVCommonName
+ return &v
+}
+
+// AppleSubjectNameFormatPCommonNameAsEmail returns a pointer to AppleSubjectNameFormatVCommonNameAsEmail
+func AppleSubjectNameFormatPCommonNameAsEmail() *AppleSubjectNameFormat {
+ v := AppleSubjectNameFormatVCommonNameAsEmail
+ return &v
+}
+
+// AppleSubjectNameFormatPCustom returns a pointer to AppleSubjectNameFormatVCustom
+func AppleSubjectNameFormatPCustom() *AppleSubjectNameFormat {
+ v := AppleSubjectNameFormatVCustom
+ return &v
+}
+
+// AppleSubjectNameFormatPCommonNameIncludingEmail returns a pointer to AppleSubjectNameFormatVCommonNameIncludingEmail
+func AppleSubjectNameFormatPCommonNameIncludingEmail() *AppleSubjectNameFormat {
+ v := AppleSubjectNameFormatVCommonNameIncludingEmail
+ return &v
+}
+
+// AppleSubjectNameFormatPCommonNameAsIMEI returns a pointer to AppleSubjectNameFormatVCommonNameAsIMEI
+func AppleSubjectNameFormatPCommonNameAsIMEI() *AppleSubjectNameFormat {
+ v := AppleSubjectNameFormatVCommonNameAsIMEI
+ return &v
+}
+
+// AppleSubjectNameFormatPCommonNameAsSerialNumber returns a pointer to AppleSubjectNameFormatVCommonNameAsSerialNumber
+func AppleSubjectNameFormatPCommonNameAsSerialNumber() *AppleSubjectNameFormat {
+ v := AppleSubjectNameFormatVCommonNameAsSerialNumber
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileAction.go
new file mode 100644
index 00000000..8ca623ae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AppleUserInitiatedEnrollmentProfileSetPriorityRequestParameter undocumented
+type AppleUserInitiatedEnrollmentProfileSetPriorityRequestParameter struct {
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileModel.go
new file mode 100644
index 00000000..248f3af1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileRequest.go
new file mode 100644
index 00000000..7f3aa642
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppleEnrollmentProfileAssignment collection
+func (r *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppleEnrollmentProfileAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentTypeEnum.go
new file mode 100644
index 00000000..3df93d28
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppleUserInitiatedEnrollmentType undocumented
+type AppleUserInitiatedEnrollmentType int
+
+const (
+ // AppleUserInitiatedEnrollmentTypeVUnknown undocumented
+ AppleUserInitiatedEnrollmentTypeVUnknown AppleUserInitiatedEnrollmentType = 0
+ // AppleUserInitiatedEnrollmentTypeVDevice undocumented
+ AppleUserInitiatedEnrollmentTypeVDevice AppleUserInitiatedEnrollmentType = 1
+ // AppleUserInitiatedEnrollmentTypeVUser undocumented
+ AppleUserInitiatedEnrollmentTypeVUser AppleUserInitiatedEnrollmentType = 2
+)
+
+// AppleUserInitiatedEnrollmentTypePUnknown returns a pointer to AppleUserInitiatedEnrollmentTypeVUnknown
+func AppleUserInitiatedEnrollmentTypePUnknown() *AppleUserInitiatedEnrollmentType {
+ v := AppleUserInitiatedEnrollmentTypeVUnknown
+ return &v
+}
+
+// AppleUserInitiatedEnrollmentTypePDevice returns a pointer to AppleUserInitiatedEnrollmentTypeVDevice
+func AppleUserInitiatedEnrollmentTypePDevice() *AppleUserInitiatedEnrollmentType {
+ v := AppleUserInitiatedEnrollmentTypeVDevice
+ return &v
+}
+
+// AppleUserInitiatedEnrollmentTypePUser returns a pointer to AppleUserInitiatedEnrollmentTypeVUser
+func AppleUserInitiatedEnrollmentTypePUser() *AppleUserInitiatedEnrollmentType {
+ v := AppleUserInitiatedEnrollmentTypeVUser
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppleVpnConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppleVpnConfigurationModel.go
new file mode 100644
index 00000000..b52f03f6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppleVpnConfigurationModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppleVpnConnectionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppleVpnConnectionTypeEnum.go
new file mode 100644
index 00000000..66a651fe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppleVpnConnectionTypeEnum.go
@@ -0,0 +1,129 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppleVpnConnectionType undocumented
+type AppleVpnConnectionType int
+
+const (
+ // AppleVpnConnectionTypeVCiscoAnyConnect undocumented
+ AppleVpnConnectionTypeVCiscoAnyConnect AppleVpnConnectionType = 0
+ // AppleVpnConnectionTypeVPulseSecure undocumented
+ AppleVpnConnectionTypeVPulseSecure AppleVpnConnectionType = 1
+ // AppleVpnConnectionTypeVF5EdgeClient undocumented
+ AppleVpnConnectionTypeVF5EdgeClient AppleVpnConnectionType = 2
+ // AppleVpnConnectionTypeVDellSonicWallMobileConnect undocumented
+ AppleVpnConnectionTypeVDellSonicWallMobileConnect AppleVpnConnectionType = 3
+ // AppleVpnConnectionTypeVCheckPointCapsuleVpn undocumented
+ AppleVpnConnectionTypeVCheckPointCapsuleVpn AppleVpnConnectionType = 4
+ // AppleVpnConnectionTypeVCustomVpn undocumented
+ AppleVpnConnectionTypeVCustomVpn AppleVpnConnectionType = 5
+ // AppleVpnConnectionTypeVCiscoIPSec undocumented
+ AppleVpnConnectionTypeVCiscoIPSec AppleVpnConnectionType = 6
+ // AppleVpnConnectionTypeVCitrix undocumented
+ AppleVpnConnectionTypeVCitrix AppleVpnConnectionType = 7
+ // AppleVpnConnectionTypeVCiscoAnyConnectV2 undocumented
+ AppleVpnConnectionTypeVCiscoAnyConnectV2 AppleVpnConnectionType = 8
+ // AppleVpnConnectionTypeVPaloAltoGlobalProtect undocumented
+ AppleVpnConnectionTypeVPaloAltoGlobalProtect AppleVpnConnectionType = 9
+ // AppleVpnConnectionTypeVZscalerPrivateAccess undocumented
+ AppleVpnConnectionTypeVZscalerPrivateAccess AppleVpnConnectionType = 10
+ // AppleVpnConnectionTypeVF5Access2018 undocumented
+ AppleVpnConnectionTypeVF5Access2018 AppleVpnConnectionType = 11
+ // AppleVpnConnectionTypeVCitrixSso undocumented
+ AppleVpnConnectionTypeVCitrixSso AppleVpnConnectionType = 12
+ // AppleVpnConnectionTypeVPaloAltoGlobalProtectV2 undocumented
+ AppleVpnConnectionTypeVPaloAltoGlobalProtectV2 AppleVpnConnectionType = 13
+ // AppleVpnConnectionTypeVIkEv2 undocumented
+ AppleVpnConnectionTypeVIkEv2 AppleVpnConnectionType = 14
+)
+
+// AppleVpnConnectionTypePCiscoAnyConnect returns a pointer to AppleVpnConnectionTypeVCiscoAnyConnect
+func AppleVpnConnectionTypePCiscoAnyConnect() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVCiscoAnyConnect
+ return &v
+}
+
+// AppleVpnConnectionTypePPulseSecure returns a pointer to AppleVpnConnectionTypeVPulseSecure
+func AppleVpnConnectionTypePPulseSecure() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVPulseSecure
+ return &v
+}
+
+// AppleVpnConnectionTypePF5EdgeClient returns a pointer to AppleVpnConnectionTypeVF5EdgeClient
+func AppleVpnConnectionTypePF5EdgeClient() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVF5EdgeClient
+ return &v
+}
+
+// AppleVpnConnectionTypePDellSonicWallMobileConnect returns a pointer to AppleVpnConnectionTypeVDellSonicWallMobileConnect
+func AppleVpnConnectionTypePDellSonicWallMobileConnect() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVDellSonicWallMobileConnect
+ return &v
+}
+
+// AppleVpnConnectionTypePCheckPointCapsuleVpn returns a pointer to AppleVpnConnectionTypeVCheckPointCapsuleVpn
+func AppleVpnConnectionTypePCheckPointCapsuleVpn() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVCheckPointCapsuleVpn
+ return &v
+}
+
+// AppleVpnConnectionTypePCustomVpn returns a pointer to AppleVpnConnectionTypeVCustomVpn
+func AppleVpnConnectionTypePCustomVpn() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVCustomVpn
+ return &v
+}
+
+// AppleVpnConnectionTypePCiscoIPSec returns a pointer to AppleVpnConnectionTypeVCiscoIPSec
+func AppleVpnConnectionTypePCiscoIPSec() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVCiscoIPSec
+ return &v
+}
+
+// AppleVpnConnectionTypePCitrix returns a pointer to AppleVpnConnectionTypeVCitrix
+func AppleVpnConnectionTypePCitrix() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVCitrix
+ return &v
+}
+
+// AppleVpnConnectionTypePCiscoAnyConnectV2 returns a pointer to AppleVpnConnectionTypeVCiscoAnyConnectV2
+func AppleVpnConnectionTypePCiscoAnyConnectV2() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVCiscoAnyConnectV2
+ return &v
+}
+
+// AppleVpnConnectionTypePPaloAltoGlobalProtect returns a pointer to AppleVpnConnectionTypeVPaloAltoGlobalProtect
+func AppleVpnConnectionTypePPaloAltoGlobalProtect() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVPaloAltoGlobalProtect
+ return &v
+}
+
+// AppleVpnConnectionTypePZscalerPrivateAccess returns a pointer to AppleVpnConnectionTypeVZscalerPrivateAccess
+func AppleVpnConnectionTypePZscalerPrivateAccess() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVZscalerPrivateAccess
+ return &v
+}
+
+// AppleVpnConnectionTypePF5Access2018 returns a pointer to AppleVpnConnectionTypeVF5Access2018
+func AppleVpnConnectionTypePF5Access2018() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVF5Access2018
+ return &v
+}
+
+// AppleVpnConnectionTypePCitrixSso returns a pointer to AppleVpnConnectionTypeVCitrixSso
+func AppleVpnConnectionTypePCitrixSso() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVCitrixSso
+ return &v
+}
+
+// AppleVpnConnectionTypePPaloAltoGlobalProtectV2 returns a pointer to AppleVpnConnectionTypeVPaloAltoGlobalProtectV2
+func AppleVpnConnectionTypePPaloAltoGlobalProtectV2() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVPaloAltoGlobalProtectV2
+ return &v
+}
+
+// AppleVpnConnectionTypePIkEv2 returns a pointer to AppleVpnConnectionTypeVIkEv2
+func AppleVpnConnectionTypePIkEv2() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVIkEv2
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppleVppTokenTroubleshootingEventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppleVppTokenTroubleshootingEventModel.go
new file mode 100644
index 00000000..2828fa3b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppleVppTokenTroubleshootingEventModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ApplicationAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationAction.go
new file mode 100644
index 00000000..b649dcde
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationAction.go
@@ -0,0 +1,141 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationEnforcedRestrictionsSessionControlModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationEnforcedRestrictionsSessionControlModel.go
new file mode 100644
index 00000000..0d6b0998
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationEnforcedRestrictionsSessionControlModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationEnforcedRestrictionsSessionControl undocumented
+type ApplicationEnforcedRestrictionsSessionControl struct {
+ // ConditionalAccessSessionControl is the base model of ApplicationEnforcedRestrictionsSessionControl
+ ConditionalAccessSessionControl
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardBlockClipboardSharingTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardBlockClipboardSharingTypeEnum.go
new file mode 100644
index 00000000..d11f4030
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardBlockClipboardSharingTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationGuardBlockClipboardSharingType undocumented
+type ApplicationGuardBlockClipboardSharingType int
+
+const (
+ // ApplicationGuardBlockClipboardSharingTypeVNotConfigured undocumented
+ ApplicationGuardBlockClipboardSharingTypeVNotConfigured ApplicationGuardBlockClipboardSharingType = 0
+ // ApplicationGuardBlockClipboardSharingTypeVBlockBoth undocumented
+ ApplicationGuardBlockClipboardSharingTypeVBlockBoth ApplicationGuardBlockClipboardSharingType = 1
+ // ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer undocumented
+ ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer ApplicationGuardBlockClipboardSharingType = 2
+ // ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost undocumented
+ ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost ApplicationGuardBlockClipboardSharingType = 3
+ // ApplicationGuardBlockClipboardSharingTypeVBlockNone undocumented
+ ApplicationGuardBlockClipboardSharingTypeVBlockNone ApplicationGuardBlockClipboardSharingType = 4
+)
+
+// ApplicationGuardBlockClipboardSharingTypePNotConfigured returns a pointer to ApplicationGuardBlockClipboardSharingTypeVNotConfigured
+func ApplicationGuardBlockClipboardSharingTypePNotConfigured() *ApplicationGuardBlockClipboardSharingType {
+ v := ApplicationGuardBlockClipboardSharingTypeVNotConfigured
+ return &v
+}
+
+// ApplicationGuardBlockClipboardSharingTypePBlockBoth returns a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockBoth
+func ApplicationGuardBlockClipboardSharingTypePBlockBoth() *ApplicationGuardBlockClipboardSharingType {
+ v := ApplicationGuardBlockClipboardSharingTypeVBlockBoth
+ return &v
+}
+
+// ApplicationGuardBlockClipboardSharingTypePBlockHostToContainer returns a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer
+func ApplicationGuardBlockClipboardSharingTypePBlockHostToContainer() *ApplicationGuardBlockClipboardSharingType {
+ v := ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer
+ return &v
+}
+
+// ApplicationGuardBlockClipboardSharingTypePBlockContainerToHost returns a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost
+func ApplicationGuardBlockClipboardSharingTypePBlockContainerToHost() *ApplicationGuardBlockClipboardSharingType {
+ v := ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost
+ return &v
+}
+
+// ApplicationGuardBlockClipboardSharingTypePBlockNone returns a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockNone
+func ApplicationGuardBlockClipboardSharingTypePBlockNone() *ApplicationGuardBlockClipboardSharingType {
+ v := ApplicationGuardBlockClipboardSharingTypeVBlockNone
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardBlockFileTransferTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardBlockFileTransferTypeEnum.go
new file mode 100644
index 00000000..a6026e87
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardBlockFileTransferTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationGuardBlockFileTransferType undocumented
+type ApplicationGuardBlockFileTransferType int
+
+const (
+ // ApplicationGuardBlockFileTransferTypeVNotConfigured undocumented
+ ApplicationGuardBlockFileTransferTypeVNotConfigured ApplicationGuardBlockFileTransferType = 0
+ // ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile undocumented
+ ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile ApplicationGuardBlockFileTransferType = 1
+ // ApplicationGuardBlockFileTransferTypeVBlockImageFile undocumented
+ ApplicationGuardBlockFileTransferTypeVBlockImageFile ApplicationGuardBlockFileTransferType = 2
+ // ApplicationGuardBlockFileTransferTypeVBlockNone undocumented
+ ApplicationGuardBlockFileTransferTypeVBlockNone ApplicationGuardBlockFileTransferType = 3
+ // ApplicationGuardBlockFileTransferTypeVBlockTextFile undocumented
+ ApplicationGuardBlockFileTransferTypeVBlockTextFile ApplicationGuardBlockFileTransferType = 4
+)
+
+// ApplicationGuardBlockFileTransferTypePNotConfigured returns a pointer to ApplicationGuardBlockFileTransferTypeVNotConfigured
+func ApplicationGuardBlockFileTransferTypePNotConfigured() *ApplicationGuardBlockFileTransferType {
+ v := ApplicationGuardBlockFileTransferTypeVNotConfigured
+ return &v
+}
+
+// ApplicationGuardBlockFileTransferTypePBlockImageAndTextFile returns a pointer to ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile
+func ApplicationGuardBlockFileTransferTypePBlockImageAndTextFile() *ApplicationGuardBlockFileTransferType {
+ v := ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile
+ return &v
+}
+
+// ApplicationGuardBlockFileTransferTypePBlockImageFile returns a pointer to ApplicationGuardBlockFileTransferTypeVBlockImageFile
+func ApplicationGuardBlockFileTransferTypePBlockImageFile() *ApplicationGuardBlockFileTransferType {
+ v := ApplicationGuardBlockFileTransferTypeVBlockImageFile
+ return &v
+}
+
+// ApplicationGuardBlockFileTransferTypePBlockNone returns a pointer to ApplicationGuardBlockFileTransferTypeVBlockNone
+func ApplicationGuardBlockFileTransferTypePBlockNone() *ApplicationGuardBlockFileTransferType {
+ v := ApplicationGuardBlockFileTransferTypeVBlockNone
+ return &v
+}
+
+// ApplicationGuardBlockFileTransferTypePBlockTextFile returns a pointer to ApplicationGuardBlockFileTransferTypeVBlockTextFile
+func ApplicationGuardBlockFileTransferTypePBlockTextFile() *ApplicationGuardBlockFileTransferType {
+ v := ApplicationGuardBlockFileTransferTypeVBlockTextFile
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardEnabledOptionsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardEnabledOptionsEnum.go
new file mode 100644
index 00000000..70f07235
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardEnabledOptionsEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationGuardEnabledOptions undocumented
+type ApplicationGuardEnabledOptions int
+
+const (
+ // ApplicationGuardEnabledOptionsVNotConfigured undocumented
+ ApplicationGuardEnabledOptionsVNotConfigured ApplicationGuardEnabledOptions = 0
+ // ApplicationGuardEnabledOptionsVEnabledForEdge undocumented
+ ApplicationGuardEnabledOptionsVEnabledForEdge ApplicationGuardEnabledOptions = 1
+ // ApplicationGuardEnabledOptionsVEnabledForOffice undocumented
+ ApplicationGuardEnabledOptionsVEnabledForOffice ApplicationGuardEnabledOptions = 2
+ // ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice undocumented
+ ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice ApplicationGuardEnabledOptions = 3
+)
+
+// ApplicationGuardEnabledOptionsPNotConfigured returns a pointer to ApplicationGuardEnabledOptionsVNotConfigured
+func ApplicationGuardEnabledOptionsPNotConfigured() *ApplicationGuardEnabledOptions {
+ v := ApplicationGuardEnabledOptionsVNotConfigured
+ return &v
+}
+
+// ApplicationGuardEnabledOptionsPEnabledForEdge returns a pointer to ApplicationGuardEnabledOptionsVEnabledForEdge
+func ApplicationGuardEnabledOptionsPEnabledForEdge() *ApplicationGuardEnabledOptions {
+ v := ApplicationGuardEnabledOptionsVEnabledForEdge
+ return &v
+}
+
+// ApplicationGuardEnabledOptionsPEnabledForOffice returns a pointer to ApplicationGuardEnabledOptionsVEnabledForOffice
+func ApplicationGuardEnabledOptionsPEnabledForOffice() *ApplicationGuardEnabledOptions {
+ v := ApplicationGuardEnabledOptionsVEnabledForOffice
+ return &v
+}
+
+// ApplicationGuardEnabledOptionsPEnabledForEdgeAndOffice returns a pointer to ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice
+func ApplicationGuardEnabledOptionsPEnabledForEdgeAndOffice() *ApplicationGuardEnabledOptions {
+ v := ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationIdentityTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationIdentityTypeEnum.go
new file mode 100644
index 00000000..16f22df2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationIdentityTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationIdentityType undocumented
+type ApplicationIdentityType int
+
+const (
+ // ApplicationIdentityTypeVAadApplication undocumented
+ ApplicationIdentityTypeVAadApplication ApplicationIdentityType = 0
+ // ApplicationIdentityTypeVBot undocumented
+ ApplicationIdentityTypeVBot ApplicationIdentityType = 1
+ // ApplicationIdentityTypeVTenantBot undocumented
+ ApplicationIdentityTypeVTenantBot ApplicationIdentityType = 2
+ // ApplicationIdentityTypeVOffice365Connector undocumented
+ ApplicationIdentityTypeVOffice365Connector ApplicationIdentityType = 3
+ // ApplicationIdentityTypeVOutgoingWebhook undocumented
+ ApplicationIdentityTypeVOutgoingWebhook ApplicationIdentityType = 4
+)
+
+// ApplicationIdentityTypePAadApplication returns a pointer to ApplicationIdentityTypeVAadApplication
+func ApplicationIdentityTypePAadApplication() *ApplicationIdentityType {
+ v := ApplicationIdentityTypeVAadApplication
+ return &v
+}
+
+// ApplicationIdentityTypePBot returns a pointer to ApplicationIdentityTypeVBot
+func ApplicationIdentityTypePBot() *ApplicationIdentityType {
+ v := ApplicationIdentityTypeVBot
+ return &v
+}
+
+// ApplicationIdentityTypePTenantBot returns a pointer to ApplicationIdentityTypeVTenantBot
+func ApplicationIdentityTypePTenantBot() *ApplicationIdentityType {
+ v := ApplicationIdentityTypeVTenantBot
+ return &v
+}
+
+// ApplicationIdentityTypePOffice365Connector returns a pointer to ApplicationIdentityTypeVOffice365Connector
+func ApplicationIdentityTypePOffice365Connector() *ApplicationIdentityType {
+ v := ApplicationIdentityTypeVOffice365Connector
+ return &v
+}
+
+// ApplicationIdentityTypePOutgoingWebhook returns a pointer to ApplicationIdentityTypeVOutgoingWebhook
+func ApplicationIdentityTypePOutgoingWebhook() *ApplicationIdentityType {
+ v := ApplicationIdentityTypeVOutgoingWebhook
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationModeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationModeEnum.go
new file mode 100644
index 00000000..fe075859
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationModeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationMode undocumented
+type ApplicationMode int
+
+const (
+ // ApplicationModeVManual undocumented
+ ApplicationModeVManual ApplicationMode = 0
+ // ApplicationModeVAutomatic undocumented
+ ApplicationModeVAutomatic ApplicationMode = 1
+ // ApplicationModeVRecommended undocumented
+ ApplicationModeVRecommended ApplicationMode = 2
+)
+
+// ApplicationModePManual returns a pointer to ApplicationModeVManual
+func ApplicationModePManual() *ApplicationMode {
+ v := ApplicationModeVManual
+ return &v
+}
+
+// ApplicationModePAutomatic returns a pointer to ApplicationModeVAutomatic
+func ApplicationModePAutomatic() *ApplicationMode {
+ v := ApplicationModeVAutomatic
+ return &v
+}
+
+// ApplicationModePRecommended returns a pointer to ApplicationModeVRecommended
+func ApplicationModePRecommended() *ApplicationMode {
+ v := ApplicationModeVRecommended
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationModel.go
new file mode 100644
index 00000000..301473a5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationModel.go
@@ -0,0 +1,65 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationPermissionsRequiredEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationPermissionsRequiredEnum.go
new file mode 100644
index 00000000..92b5780a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationPermissionsRequiredEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationPermissionsRequired undocumented
+type ApplicationPermissionsRequired int
+
+const (
+ // ApplicationPermissionsRequiredVUnknown undocumented
+ ApplicationPermissionsRequiredVUnknown ApplicationPermissionsRequired = 0
+ // ApplicationPermissionsRequiredVAnonymous undocumented
+ ApplicationPermissionsRequiredVAnonymous ApplicationPermissionsRequired = 1
+ // ApplicationPermissionsRequiredVGuest undocumented
+ ApplicationPermissionsRequiredVGuest ApplicationPermissionsRequired = 2
+ // ApplicationPermissionsRequiredVUser undocumented
+ ApplicationPermissionsRequiredVUser ApplicationPermissionsRequired = 3
+ // ApplicationPermissionsRequiredVAdministrator undocumented
+ ApplicationPermissionsRequiredVAdministrator ApplicationPermissionsRequired = 4
+ // ApplicationPermissionsRequiredVSystem undocumented
+ ApplicationPermissionsRequiredVSystem ApplicationPermissionsRequired = 5
+ // ApplicationPermissionsRequiredVUnknownFutureValue undocumented
+ ApplicationPermissionsRequiredVUnknownFutureValue ApplicationPermissionsRequired = 127
+)
+
+// ApplicationPermissionsRequiredPUnknown returns a pointer to ApplicationPermissionsRequiredVUnknown
+func ApplicationPermissionsRequiredPUnknown() *ApplicationPermissionsRequired {
+ v := ApplicationPermissionsRequiredVUnknown
+ return &v
+}
+
+// ApplicationPermissionsRequiredPAnonymous returns a pointer to ApplicationPermissionsRequiredVAnonymous
+func ApplicationPermissionsRequiredPAnonymous() *ApplicationPermissionsRequired {
+ v := ApplicationPermissionsRequiredVAnonymous
+ return &v
+}
+
+// ApplicationPermissionsRequiredPGuest returns a pointer to ApplicationPermissionsRequiredVGuest
+func ApplicationPermissionsRequiredPGuest() *ApplicationPermissionsRequired {
+ v := ApplicationPermissionsRequiredVGuest
+ return &v
+}
+
+// ApplicationPermissionsRequiredPUser returns a pointer to ApplicationPermissionsRequiredVUser
+func ApplicationPermissionsRequiredPUser() *ApplicationPermissionsRequired {
+ v := ApplicationPermissionsRequiredVUser
+ return &v
+}
+
+// ApplicationPermissionsRequiredPAdministrator returns a pointer to ApplicationPermissionsRequiredVAdministrator
+func ApplicationPermissionsRequiredPAdministrator() *ApplicationPermissionsRequired {
+ v := ApplicationPermissionsRequiredVAdministrator
+ return &v
+}
+
+// ApplicationPermissionsRequiredPSystem returns a pointer to ApplicationPermissionsRequiredVSystem
+func ApplicationPermissionsRequiredPSystem() *ApplicationPermissionsRequired {
+ v := ApplicationPermissionsRequiredVSystem
+ return &v
+}
+
+// ApplicationPermissionsRequiredPUnknownFutureValue returns a pointer to ApplicationPermissionsRequiredVUnknownFutureValue
+func ApplicationPermissionsRequiredPUnknownFutureValue() *ApplicationPermissionsRequired {
+ v := ApplicationPermissionsRequiredVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationRequest.go
new file mode 100644
index 00000000..6aee12a4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationRequest.go
@@ -0,0 +1,341 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ExtensionProperty collection
+func (r *ApplicationExtensionPropertiesCollectionRequest) Get(ctx context.Context) ([]ExtensionProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ApplicationOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ApplicationPoliciesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ApplicationServicePrincipalModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationServicePrincipalModel.go
new file mode 100644
index 00000000..7acb785f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationServicePrincipalModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInDetailedSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInDetailedSummaryModel.go
new file mode 100644
index 00000000..c5f5e350
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInDetailedSummaryModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInDetailedSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInDetailedSummaryRequest.go
new file mode 100644
index 00000000..70e1a2ba
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInDetailedSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInSummaryModel.go
new file mode 100644
index 00000000..d883f038
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInSummaryModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateAction.go
new file mode 100644
index 00000000..2dcc1cfb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateAction.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ApplicationTemplateInstantiateRequestParameter undocumented
+type ApplicationTemplateInstantiateRequestParameter struct {
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/ApplicationTemplateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateModel.go
new file mode 100644
index 00000000..8b5e8846
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ApplicationTemplateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateRequest.go
new file mode 100644
index 00000000..cca7a32c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTypeEnum.go
new file mode 100644
index 00000000..fcb6fce8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationType undocumented
+type ApplicationType int
+
+const (
+ // ApplicationTypeVUniversal undocumented
+ ApplicationTypeVUniversal ApplicationType = 1
+ // ApplicationTypeVDesktop undocumented
+ ApplicationTypeVDesktop ApplicationType = 2
+)
+
+// ApplicationTypePUniversal returns a pointer to ApplicationTypeVUniversal
+func ApplicationTypePUniversal() *ApplicationType {
+ v := ApplicationTypeVUniversal
+ return &v
+}
+
+// ApplicationTypePDesktop returns a pointer to ApplicationTypeVDesktop
+func ApplicationTypePDesktop() *ApplicationType {
+ v := ApplicationTypeVDesktop
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppliedConditionalAccessPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppliedConditionalAccessPolicyModel.go
new file mode 100644
index 00000000..130f3072
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppliedConditionalAccessPolicyModel.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/matterbridge/msgraph.go/beta/AppliedConditionalAccessPolicyResultEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppliedConditionalAccessPolicyResultEnum.go
new file mode 100644
index 00000000..6166c312
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AppliedConditionalAccessPolicyResultEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppliedConditionalAccessPolicyResult undocumented
+type AppliedConditionalAccessPolicyResult int
+
+const (
+ // AppliedConditionalAccessPolicyResultVSuccess undocumented
+ AppliedConditionalAccessPolicyResultVSuccess AppliedConditionalAccessPolicyResult = 0
+ // AppliedConditionalAccessPolicyResultVFailure undocumented
+ AppliedConditionalAccessPolicyResultVFailure AppliedConditionalAccessPolicyResult = 1
+ // AppliedConditionalAccessPolicyResultVNotApplied undocumented
+ AppliedConditionalAccessPolicyResultVNotApplied AppliedConditionalAccessPolicyResult = 2
+ // AppliedConditionalAccessPolicyResultVNotEnabled undocumented
+ AppliedConditionalAccessPolicyResultVNotEnabled AppliedConditionalAccessPolicyResult = 3
+ // AppliedConditionalAccessPolicyResultVUnknown undocumented
+ AppliedConditionalAccessPolicyResultVUnknown AppliedConditionalAccessPolicyResult = 4
+ // AppliedConditionalAccessPolicyResultVUnknownFutureValue undocumented
+ AppliedConditionalAccessPolicyResultVUnknownFutureValue AppliedConditionalAccessPolicyResult = 5
+ // AppliedConditionalAccessPolicyResultVReportOnlySuccess undocumented
+ AppliedConditionalAccessPolicyResultVReportOnlySuccess AppliedConditionalAccessPolicyResult = 6
+ // AppliedConditionalAccessPolicyResultVReportOnlyFailure undocumented
+ AppliedConditionalAccessPolicyResultVReportOnlyFailure AppliedConditionalAccessPolicyResult = 7
+ // AppliedConditionalAccessPolicyResultVReportOnlyNotApplied undocumented
+ AppliedConditionalAccessPolicyResultVReportOnlyNotApplied AppliedConditionalAccessPolicyResult = 8
+ // AppliedConditionalAccessPolicyResultVReportOnlyInterrupted undocumented
+ AppliedConditionalAccessPolicyResultVReportOnlyInterrupted AppliedConditionalAccessPolicyResult = 9
+)
+
+// AppliedConditionalAccessPolicyResultPSuccess returns a pointer to AppliedConditionalAccessPolicyResultVSuccess
+func AppliedConditionalAccessPolicyResultPSuccess() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVSuccess
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPFailure returns a pointer to AppliedConditionalAccessPolicyResultVFailure
+func AppliedConditionalAccessPolicyResultPFailure() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVFailure
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPNotApplied returns a pointer to AppliedConditionalAccessPolicyResultVNotApplied
+func AppliedConditionalAccessPolicyResultPNotApplied() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVNotApplied
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPNotEnabled returns a pointer to AppliedConditionalAccessPolicyResultVNotEnabled
+func AppliedConditionalAccessPolicyResultPNotEnabled() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVNotEnabled
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPUnknown returns a pointer to AppliedConditionalAccessPolicyResultVUnknown
+func AppliedConditionalAccessPolicyResultPUnknown() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVUnknown
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPUnknownFutureValue returns a pointer to AppliedConditionalAccessPolicyResultVUnknownFutureValue
+func AppliedConditionalAccessPolicyResultPUnknownFutureValue() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVUnknownFutureValue
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPReportOnlySuccess returns a pointer to AppliedConditionalAccessPolicyResultVReportOnlySuccess
+func AppliedConditionalAccessPolicyResultPReportOnlySuccess() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVReportOnlySuccess
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPReportOnlyFailure returns a pointer to AppliedConditionalAccessPolicyResultVReportOnlyFailure
+func AppliedConditionalAccessPolicyResultPReportOnlyFailure() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVReportOnlyFailure
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPReportOnlyNotApplied returns a pointer to AppliedConditionalAccessPolicyResultVReportOnlyNotApplied
+func AppliedConditionalAccessPolicyResultPReportOnlyNotApplied() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVReportOnlyNotApplied
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPReportOnlyInterrupted returns a pointer to AppliedConditionalAccessPolicyResultVReportOnlyInterrupted
+func AppliedConditionalAccessPolicyResultPReportOnlyInterrupted() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVReportOnlyInterrupted
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplyLabelActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApplyLabelActionModel.go
new file mode 100644
index 00000000..8db1902a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApplyLabelActionModel.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/matterbridge/msgraph.go/beta/ApprovalStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApprovalStateEnum.go
new file mode 100644
index 00000000..a564fb68
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApprovalStateEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApprovalState undocumented
+type ApprovalState int
+
+const (
+ // ApprovalStateVPending undocumented
+ ApprovalStateVPending ApprovalState = 0
+ // ApprovalStateVApproved undocumented
+ ApprovalStateVApproved ApprovalState = 1
+ // ApprovalStateVDenied undocumented
+ ApprovalStateVDenied ApprovalState = 2
+ // ApprovalStateVAborted undocumented
+ ApprovalStateVAborted ApprovalState = 3
+ // ApprovalStateVCanceled undocumented
+ ApprovalStateVCanceled ApprovalState = 4
+)
+
+// ApprovalStatePPending returns a pointer to ApprovalStateVPending
+func ApprovalStatePPending() *ApprovalState {
+ v := ApprovalStateVPending
+ return &v
+}
+
+// ApprovalStatePApproved returns a pointer to ApprovalStateVApproved
+func ApprovalStatePApproved() *ApprovalState {
+ v := ApprovalStateVApproved
+ return &v
+}
+
+// ApprovalStatePDenied returns a pointer to ApprovalStateVDenied
+func ApprovalStatePDenied() *ApprovalState {
+ v := ApprovalStateVDenied
+ return &v
+}
+
+// ApprovalStatePAborted returns a pointer to ApprovalStateVAborted
+func ApprovalStatePAborted() *ApprovalState {
+ v := ApprovalStateVAborted
+ return &v
+}
+
+// ApprovalStatePCanceled returns a pointer to ApprovalStateVCanceled
+func ApprovalStatePCanceled() *ApprovalState {
+ v := ApprovalStateVCanceled
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApprovalWorkflowProviderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApprovalWorkflowProviderModel.go
new file mode 100644
index 00000000..190198d2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApprovalWorkflowProviderModel.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/matterbridge/msgraph.go/beta/ApprovalWorkflowProviderRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApprovalWorkflowProviderRequest.go
new file mode 100644
index 00000000..2281608f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ApprovalWorkflowProviderRequest.go
@@ -0,0 +1,515 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BusinessFlow collection
+func (r *ApprovalWorkflowProviderBusinessFlowsCollectionRequest) Get(ctx context.Context) ([]BusinessFlow, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BusinessFlow collection
+func (r *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest) Get(ctx context.Context) ([]BusinessFlow, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernancePolicyTemplate collection
+func (r *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest) Get(ctx context.Context) ([]GovernancePolicyTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RequestObject collection
+func (r *ApprovalWorkflowProviderRequestsCollectionRequest) Get(ctx context.Context) ([]RequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RequestObject collection
+func (r *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest) Get(ctx context.Context) ([]RequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/AssignedLabelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AssignedLabelModel.go
new file mode 100644
index 00000000..301701af
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AssignedLabelModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AssignedLicenseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AssignedLicenseModel.go
new file mode 100644
index 00000000..ba90423e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AssignedLicenseModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AssignedPlanModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AssignedPlanModel.go
new file mode 100644
index 00000000..1d4ab7fb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AssignedPlanModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/AssignmentMethodEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AssignmentMethodEnum.go
new file mode 100644
index 00000000..d1cd2144
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AssignmentMethodEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AssignmentMethod undocumented
+type AssignmentMethod int
+
+const (
+ // AssignmentMethodVStandard undocumented
+ AssignmentMethodVStandard AssignmentMethod = 0
+ // AssignmentMethodVPrivileged undocumented
+ AssignmentMethodVPrivileged AssignmentMethod = 1
+ // AssignmentMethodVAuto undocumented
+ AssignmentMethodVAuto AssignmentMethod = 2
+)
+
+// AssignmentMethodPStandard returns a pointer to AssignmentMethodVStandard
+func AssignmentMethodPStandard() *AssignmentMethod {
+ v := AssignmentMethodVStandard
+ return &v
+}
+
+// AssignmentMethodPPrivileged returns a pointer to AssignmentMethodVPrivileged
+func AssignmentMethodPPrivileged() *AssignmentMethod {
+ v := AssignmentMethodVPrivileged
+ return &v
+}
+
+// AssignmentMethodPAuto returns a pointer to AssignmentMethodVAuto
+func AssignmentMethodPAuto() *AssignmentMethod {
+ v := AssignmentMethodVAuto
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentAction.go
new file mode 100644
index 00000000..61810ac7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentAction.go
@@ -0,0 +1,62 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AttachmentCollectionCreateUploadSessionRequestParameter undocumented
+type AttachmentCollectionCreateUploadSessionRequestParameter struct {
+ // AttachmentItem undocumented
+ AttachmentItem *AttachmentItem `json:"AttachmentItem,omitempty"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/AttachmentItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentItemModel.go
new file mode 100644
index 00000000..806a5a51
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentItemModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AttachmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentModel.go
new file mode 100644
index 00000000..58048802
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentModel.go
@@ -0,0 +1,21 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentRequest.go
new file mode 100644
index 00000000..8e81bdfb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentTypeEnum.go
new file mode 100644
index 00000000..e7f6d07f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttachmentType undocumented
+type AttachmentType int
+
+const (
+ // AttachmentTypeVFile undocumented
+ AttachmentTypeVFile AttachmentType = 0
+ // AttachmentTypeVItem undocumented
+ AttachmentTypeVItem AttachmentType = 1
+ // AttachmentTypeVReference undocumented
+ AttachmentTypeVReference AttachmentType = 2
+)
+
+// AttachmentTypePFile returns a pointer to AttachmentTypeVFile
+func AttachmentTypePFile() *AttachmentType {
+ v := AttachmentTypeVFile
+ return &v
+}
+
+// AttachmentTypePItem returns a pointer to AttachmentTypeVItem
+func AttachmentTypePItem() *AttachmentType {
+ v := AttachmentTypeVItem
+ return &v
+}
+
+// AttachmentTypePReference returns a pointer to AttachmentTypeVReference
+func AttachmentTypePReference() *AttachmentType {
+ v := AttachmentTypeVReference
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AttendeeAvailabilityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttendeeAvailabilityModel.go
new file mode 100644
index 00000000..f1bd26ef
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttendeeAvailabilityModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AttendeeBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttendeeBaseModel.go
new file mode 100644
index 00000000..f0521818
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttendeeBaseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AttendeeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttendeeModel.go
new file mode 100644
index 00000000..bc2dbf08
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttendeeModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AttendeeTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttendeeTypeEnum.go
new file mode 100644
index 00000000..5a25f5c9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttendeeTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttendeeType undocumented
+type AttendeeType int
+
+const (
+ // AttendeeTypeVRequired undocumented
+ AttendeeTypeVRequired AttendeeType = 0
+ // AttendeeTypeVOptional undocumented
+ AttendeeTypeVOptional AttendeeType = 1
+ // AttendeeTypeVResource undocumented
+ AttendeeTypeVResource AttendeeType = 2
+)
+
+// AttendeeTypePRequired returns a pointer to AttendeeTypeVRequired
+func AttendeeTypePRequired() *AttendeeType {
+ v := AttendeeTypeVRequired
+ return &v
+}
+
+// AttendeeTypePOptional returns a pointer to AttendeeTypeVOptional
+func AttendeeTypePOptional() *AttendeeType {
+ v := AttendeeTypeVOptional
+ return &v
+}
+
+// AttendeeTypePResource returns a pointer to AttendeeTypeVResource
+func AttendeeTypePResource() *AttendeeType {
+ v := AttendeeTypeVResource
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeDefinitionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeDefinitionModel.go
new file mode 100644
index 00000000..0edc2b6e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeDefinitionModel.go
@@ -0,0 +1,31 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeFlowBehaviorEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeFlowBehaviorEnum.go
new file mode 100644
index 00000000..b7b98c13
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeFlowBehaviorEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeFlowBehavior undocumented
+type AttributeFlowBehavior int
+
+const (
+ // AttributeFlowBehaviorVFlowWhenChanged undocumented
+ AttributeFlowBehaviorVFlowWhenChanged AttributeFlowBehavior = 0
+ // AttributeFlowBehaviorVFlowAlways undocumented
+ AttributeFlowBehaviorVFlowAlways AttributeFlowBehavior = 1
+)
+
+// AttributeFlowBehaviorPFlowWhenChanged returns a pointer to AttributeFlowBehaviorVFlowWhenChanged
+func AttributeFlowBehaviorPFlowWhenChanged() *AttributeFlowBehavior {
+ v := AttributeFlowBehaviorVFlowWhenChanged
+ return &v
+}
+
+// AttributeFlowBehaviorPFlowAlways returns a pointer to AttributeFlowBehaviorVFlowAlways
+func AttributeFlowBehaviorPFlowAlways() *AttributeFlowBehavior {
+ v := AttributeFlowBehaviorVFlowAlways
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeFlowTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeFlowTypeEnum.go
new file mode 100644
index 00000000..8cbeeae7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeFlowTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeFlowType undocumented
+type AttributeFlowType int
+
+const (
+ // AttributeFlowTypeVAlways undocumented
+ AttributeFlowTypeVAlways AttributeFlowType = 0
+ // AttributeFlowTypeVObjectAddOnly undocumented
+ AttributeFlowTypeVObjectAddOnly AttributeFlowType = 1
+ // AttributeFlowTypeVMultiValueAddOnly undocumented
+ AttributeFlowTypeVMultiValueAddOnly AttributeFlowType = 2
+)
+
+// AttributeFlowTypePAlways returns a pointer to AttributeFlowTypeVAlways
+func AttributeFlowTypePAlways() *AttributeFlowType {
+ v := AttributeFlowTypeVAlways
+ return &v
+}
+
+// AttributeFlowTypePObjectAddOnly returns a pointer to AttributeFlowTypeVObjectAddOnly
+func AttributeFlowTypePObjectAddOnly() *AttributeFlowType {
+ v := AttributeFlowTypeVObjectAddOnly
+ return &v
+}
+
+// AttributeFlowTypePMultiValueAddOnly returns a pointer to AttributeFlowTypeVMultiValueAddOnly
+func AttributeFlowTypePMultiValueAddOnly() *AttributeFlowType {
+ v := AttributeFlowTypeVMultiValueAddOnly
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingFunctionSchemaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingFunctionSchemaModel.go
new file mode 100644
index 00000000..930bfd50
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingFunctionSchemaModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeMappingFunctionSchema undocumented
+type AttributeMappingFunctionSchema struct {
+ // Entity is the base model of AttributeMappingFunctionSchema
+ Entity
+ // Parameters undocumented
+ Parameters []AttributeMappingParameterSchema `json:"parameters,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingFunctionSchemaRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingFunctionSchemaRequest.go
new file mode 100644
index 00000000..d548f6ef
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingFunctionSchemaRequest.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/matterbridge/msgraph.go/beta/AttributeMappingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingModel.go
new file mode 100644
index 00000000..01135c32
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingParameterSchemaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingParameterSchemaModel.go
new file mode 100644
index 00000000..08f0c05c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingParameterSchemaModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingSourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingSourceModel.go
new file mode 100644
index 00000000..e51ea712
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingSourceModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AttributeMappingSourceTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingSourceTypeEnum.go
new file mode 100644
index 00000000..de0294d4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingSourceTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeMappingSourceType undocumented
+type AttributeMappingSourceType int
+
+const (
+ // AttributeMappingSourceTypeVAttribute undocumented
+ AttributeMappingSourceTypeVAttribute AttributeMappingSourceType = 0
+ // AttributeMappingSourceTypeVConstant undocumented
+ AttributeMappingSourceTypeVConstant AttributeMappingSourceType = 1
+ // AttributeMappingSourceTypeVFunction undocumented
+ AttributeMappingSourceTypeVFunction AttributeMappingSourceType = 2
+)
+
+// AttributeMappingSourceTypePAttribute returns a pointer to AttributeMappingSourceTypeVAttribute
+func AttributeMappingSourceTypePAttribute() *AttributeMappingSourceType {
+ v := AttributeMappingSourceTypeVAttribute
+ return &v
+}
+
+// AttributeMappingSourceTypePConstant returns a pointer to AttributeMappingSourceTypeVConstant
+func AttributeMappingSourceTypePConstant() *AttributeMappingSourceType {
+ v := AttributeMappingSourceTypeVConstant
+ return &v
+}
+
+// AttributeMappingSourceTypePFunction returns a pointer to AttributeMappingSourceTypeVFunction
+func AttributeMappingSourceTypePFunction() *AttributeMappingSourceType {
+ v := AttributeMappingSourceTypeVFunction
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeTypeEnum.go
new file mode 100644
index 00000000..6e66658b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeType undocumented
+type AttributeType int
+
+const (
+ // AttributeTypeVDateTime undocumented
+ AttributeTypeVDateTime AttributeType = 5
+ // AttributeTypeVBoolean undocumented
+ AttributeTypeVBoolean AttributeType = 4
+ // AttributeTypeVBinary undocumented
+ AttributeTypeVBinary AttributeType = 3
+ // AttributeTypeVReference undocumented
+ AttributeTypeVReference AttributeType = 2
+ // AttributeTypeVInteger undocumented
+ AttributeTypeVInteger AttributeType = 1
+ // AttributeTypeVString undocumented
+ AttributeTypeVString AttributeType = 0
+)
+
+// AttributeTypePDateTime returns a pointer to AttributeTypeVDateTime
+func AttributeTypePDateTime() *AttributeType {
+ v := AttributeTypeVDateTime
+ return &v
+}
+
+// AttributeTypePBoolean returns a pointer to AttributeTypeVBoolean
+func AttributeTypePBoolean() *AttributeType {
+ v := AttributeTypeVBoolean
+ return &v
+}
+
+// AttributeTypePBinary returns a pointer to AttributeTypeVBinary
+func AttributeTypePBinary() *AttributeType {
+ v := AttributeTypeVBinary
+ return &v
+}
+
+// AttributeTypePReference returns a pointer to AttributeTypeVReference
+func AttributeTypePReference() *AttributeType {
+ v := AttributeTypeVReference
+ return &v
+}
+
+// AttributeTypePInteger returns a pointer to AttributeTypeVInteger
+func AttributeTypePInteger() *AttributeType {
+ v := AttributeTypeVInteger
+ return &v
+}
+
+// AttributeTypePString returns a pointer to AttributeTypeVString
+func AttributeTypePString() *AttributeType {
+ v := AttributeTypeVString
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AudioConferencingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AudioConferencingModel.go
new file mode 100644
index 00000000..e7d953f9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AudioConferencingModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AudioModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AudioModel.go
new file mode 100644
index 00000000..e111c291
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AudioModel.go
@@ -0,0 +1,41 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AudioRoutingGroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AudioRoutingGroupModel.go
new file mode 100644
index 00000000..24c4be9c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AudioRoutingGroupModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AudioRoutingGroupRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AudioRoutingGroupRequest.go
new file mode 100644
index 00000000..3c67b3a8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AudioRoutingGroupRequest.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/matterbridge/msgraph.go/beta/AuditActivityInitiatorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AuditActivityInitiatorModel.go
new file mode 100644
index 00000000..0737c4c0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AuditActivityInitiatorModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AuditActorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AuditActorModel.go
new file mode 100644
index 00000000..2d0d3782
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AuditActorModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AuditEventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AuditEventModel.go
new file mode 100644
index 00000000..82a32d2a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AuditEventModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AuditEventRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AuditEventRequest.go
new file mode 100644
index 00000000..6c0a4ef7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AuditEventRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AuditLogRootModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AuditLogRootModel.go
new file mode 100644
index 00000000..4eed9213
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AuditLogRootModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AuditLogRootRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AuditLogRootRequest.go
new file mode 100644
index 00000000..a1d92428
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AuditLogRootRequest.go
@@ -0,0 +1,515 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryAudit collection
+func (r *AuditLogRootDirectoryAuditsCollectionRequest) Get(ctx context.Context) ([]DirectoryAudit, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProvisioningObjectSummary collection
+func (r *AuditLogRootDirectoryProvisioningCollectionRequest) Get(ctx context.Context) ([]ProvisioningObjectSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProvisioningObjectSummary collection
+func (r *AuditLogRootProvisioningCollectionRequest) Get(ctx context.Context) ([]ProvisioningObjectSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RestrictedSignIn collection
+func (r *AuditLogRootRestrictedSignInsCollectionRequest) Get(ctx context.Context) ([]RestrictedSignIn, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SignIn collection
+func (r *AuditLogRootSignInsCollectionRequest) Get(ctx context.Context) ([]SignIn, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/AuditPropertyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AuditPropertyModel.go
new file mode 100644
index 00000000..460f71c2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AuditPropertyModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AuditResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AuditResourceModel.go
new file mode 100644
index 00000000..e4bf3268
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AuditResourceModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AuthMethodsTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AuthMethodsTypeEnum.go
new file mode 100644
index 00000000..ab9090bf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AuthMethodsTypeEnum.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AuthMethodsType undocumented
+type AuthMethodsType int
+
+const (
+ // AuthMethodsTypeVEmail undocumented
+ AuthMethodsTypeVEmail AuthMethodsType = 0
+ // AuthMethodsTypeVMobileSMS undocumented
+ AuthMethodsTypeVMobileSMS AuthMethodsType = 1
+ // AuthMethodsTypeVMobilePhone undocumented
+ AuthMethodsTypeVMobilePhone AuthMethodsType = 2
+ // AuthMethodsTypeVOfficePhone undocumented
+ AuthMethodsTypeVOfficePhone AuthMethodsType = 3
+ // AuthMethodsTypeVSecurityQuestion undocumented
+ AuthMethodsTypeVSecurityQuestion AuthMethodsType = 4
+ // AuthMethodsTypeVAppNotification undocumented
+ AuthMethodsTypeVAppNotification AuthMethodsType = 5
+ // AuthMethodsTypeVAppNotificationCode undocumented
+ AuthMethodsTypeVAppNotificationCode AuthMethodsType = 6
+ // AuthMethodsTypeVAppNotificationAndCode undocumented
+ AuthMethodsTypeVAppNotificationAndCode AuthMethodsType = 7
+ // AuthMethodsTypeVAppPassword undocumented
+ AuthMethodsTypeVAppPassword AuthMethodsType = 8
+ // AuthMethodsTypeVFido undocumented
+ AuthMethodsTypeVFido AuthMethodsType = 9
+ // AuthMethodsTypeVAlternateMobilePhone undocumented
+ AuthMethodsTypeVAlternateMobilePhone AuthMethodsType = 10
+ // AuthMethodsTypeVMobilePhoneAndSMS undocumented
+ AuthMethodsTypeVMobilePhoneAndSMS AuthMethodsType = 11
+ // AuthMethodsTypeVUnknownFutureValue undocumented
+ AuthMethodsTypeVUnknownFutureValue AuthMethodsType = 12
+)
+
+// AuthMethodsTypePEmail returns a pointer to AuthMethodsTypeVEmail
+func AuthMethodsTypePEmail() *AuthMethodsType {
+ v := AuthMethodsTypeVEmail
+ return &v
+}
+
+// AuthMethodsTypePMobileSMS returns a pointer to AuthMethodsTypeVMobileSMS
+func AuthMethodsTypePMobileSMS() *AuthMethodsType {
+ v := AuthMethodsTypeVMobileSMS
+ return &v
+}
+
+// AuthMethodsTypePMobilePhone returns a pointer to AuthMethodsTypeVMobilePhone
+func AuthMethodsTypePMobilePhone() *AuthMethodsType {
+ v := AuthMethodsTypeVMobilePhone
+ return &v
+}
+
+// AuthMethodsTypePOfficePhone returns a pointer to AuthMethodsTypeVOfficePhone
+func AuthMethodsTypePOfficePhone() *AuthMethodsType {
+ v := AuthMethodsTypeVOfficePhone
+ return &v
+}
+
+// AuthMethodsTypePSecurityQuestion returns a pointer to AuthMethodsTypeVSecurityQuestion
+func AuthMethodsTypePSecurityQuestion() *AuthMethodsType {
+ v := AuthMethodsTypeVSecurityQuestion
+ return &v
+}
+
+// AuthMethodsTypePAppNotification returns a pointer to AuthMethodsTypeVAppNotification
+func AuthMethodsTypePAppNotification() *AuthMethodsType {
+ v := AuthMethodsTypeVAppNotification
+ return &v
+}
+
+// AuthMethodsTypePAppNotificationCode returns a pointer to AuthMethodsTypeVAppNotificationCode
+func AuthMethodsTypePAppNotificationCode() *AuthMethodsType {
+ v := AuthMethodsTypeVAppNotificationCode
+ return &v
+}
+
+// AuthMethodsTypePAppNotificationAndCode returns a pointer to AuthMethodsTypeVAppNotificationAndCode
+func AuthMethodsTypePAppNotificationAndCode() *AuthMethodsType {
+ v := AuthMethodsTypeVAppNotificationAndCode
+ return &v
+}
+
+// AuthMethodsTypePAppPassword returns a pointer to AuthMethodsTypeVAppPassword
+func AuthMethodsTypePAppPassword() *AuthMethodsType {
+ v := AuthMethodsTypeVAppPassword
+ return &v
+}
+
+// AuthMethodsTypePFido returns a pointer to AuthMethodsTypeVFido
+func AuthMethodsTypePFido() *AuthMethodsType {
+ v := AuthMethodsTypeVFido
+ return &v
+}
+
+// AuthMethodsTypePAlternateMobilePhone returns a pointer to AuthMethodsTypeVAlternateMobilePhone
+func AuthMethodsTypePAlternateMobilePhone() *AuthMethodsType {
+ v := AuthMethodsTypeVAlternateMobilePhone
+ return &v
+}
+
+// AuthMethodsTypePMobilePhoneAndSMS returns a pointer to AuthMethodsTypeVMobilePhoneAndSMS
+func AuthMethodsTypePMobilePhoneAndSMS() *AuthMethodsType {
+ v := AuthMethodsTypeVMobilePhoneAndSMS
+ return &v
+}
+
+// AuthMethodsTypePUnknownFutureValue returns a pointer to AuthMethodsTypeVUnknownFutureValue
+func AuthMethodsTypePUnknownFutureValue() *AuthMethodsType {
+ v := AuthMethodsTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AuthenticationDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AuthenticationDetailModel.go
new file mode 100644
index 00000000..dc3c4f95
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AuthenticationDetailModel.go
@@ -0,0 +1,23 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AuthenticationRequirementPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AuthenticationRequirementPolicyModel.go
new file mode 100644
index 00000000..6cfb2578
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AuthenticationRequirementPolicyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AutoAdmittedUsersTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AutoAdmittedUsersTypeEnum.go
new file mode 100644
index 00000000..3535fa52
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AutoAdmittedUsersTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutoAdmittedUsersType undocumented
+type AutoAdmittedUsersType int
+
+const (
+ // AutoAdmittedUsersTypeVEveryoneInCompany undocumented
+ AutoAdmittedUsersTypeVEveryoneInCompany AutoAdmittedUsersType = 0
+ // AutoAdmittedUsersTypeVEveryone undocumented
+ AutoAdmittedUsersTypeVEveryone AutoAdmittedUsersType = 1
+)
+
+// AutoAdmittedUsersTypePEveryoneInCompany returns a pointer to AutoAdmittedUsersTypeVEveryoneInCompany
+func AutoAdmittedUsersTypePEveryoneInCompany() *AutoAdmittedUsersType {
+ v := AutoAdmittedUsersTypeVEveryoneInCompany
+ return &v
+}
+
+// AutoAdmittedUsersTypePEveryone returns a pointer to AutoAdmittedUsersTypeVEveryone
+func AutoAdmittedUsersTypePEveryone() *AutoAdmittedUsersType {
+ v := AutoAdmittedUsersTypeVEveryone
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AutoLabelingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AutoLabelingModel.go
new file mode 100644
index 00000000..f57b750f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AutoLabelingModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AutoRestartNotificationDismissalMethodEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AutoRestartNotificationDismissalMethodEnum.go
new file mode 100644
index 00000000..8fd1d0d4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AutoRestartNotificationDismissalMethodEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutoRestartNotificationDismissalMethod undocumented
+type AutoRestartNotificationDismissalMethod int
+
+const (
+ // AutoRestartNotificationDismissalMethodVNotConfigured undocumented
+ AutoRestartNotificationDismissalMethodVNotConfigured AutoRestartNotificationDismissalMethod = 0
+ // AutoRestartNotificationDismissalMethodVAutomatic undocumented
+ AutoRestartNotificationDismissalMethodVAutomatic AutoRestartNotificationDismissalMethod = 1
+ // AutoRestartNotificationDismissalMethodVUser undocumented
+ AutoRestartNotificationDismissalMethodVUser AutoRestartNotificationDismissalMethod = 2
+)
+
+// AutoRestartNotificationDismissalMethodPNotConfigured returns a pointer to AutoRestartNotificationDismissalMethodVNotConfigured
+func AutoRestartNotificationDismissalMethodPNotConfigured() *AutoRestartNotificationDismissalMethod {
+ v := AutoRestartNotificationDismissalMethodVNotConfigured
+ return &v
+}
+
+// AutoRestartNotificationDismissalMethodPAutomatic returns a pointer to AutoRestartNotificationDismissalMethodVAutomatic
+func AutoRestartNotificationDismissalMethodPAutomatic() *AutoRestartNotificationDismissalMethod {
+ v := AutoRestartNotificationDismissalMethodVAutomatic
+ return &v
+}
+
+// AutoRestartNotificationDismissalMethodPUser returns a pointer to AutoRestartNotificationDismissalMethodVUser
+func AutoRestartNotificationDismissalMethodPUser() *AutoRestartNotificationDismissalMethod {
+ v := AutoRestartNotificationDismissalMethodVUser
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AutoReviewSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AutoReviewSettingsModel.go
new file mode 100644
index 00000000..1f19df0f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AutoReviewSettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AutomaticRepliesMailTipsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesMailTipsModel.go
new file mode 100644
index 00000000..c75ba0ae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesMailTipsModel.go
@@ -0,0 +1,17 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesSettingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesSettingModel.go
new file mode 100644
index 00000000..42e338e4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesSettingModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/AutomaticRepliesStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesStatusEnum.go
new file mode 100644
index 00000000..b01a4c01
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesStatusEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutomaticRepliesStatus undocumented
+type AutomaticRepliesStatus int
+
+const (
+ // AutomaticRepliesStatusVDisabled undocumented
+ AutomaticRepliesStatusVDisabled AutomaticRepliesStatus = 0
+ // AutomaticRepliesStatusVAlwaysEnabled undocumented
+ AutomaticRepliesStatusVAlwaysEnabled AutomaticRepliesStatus = 1
+ // AutomaticRepliesStatusVScheduled undocumented
+ AutomaticRepliesStatusVScheduled AutomaticRepliesStatus = 2
+)
+
+// AutomaticRepliesStatusPDisabled returns a pointer to AutomaticRepliesStatusVDisabled
+func AutomaticRepliesStatusPDisabled() *AutomaticRepliesStatus {
+ v := AutomaticRepliesStatusVDisabled
+ return &v
+}
+
+// AutomaticRepliesStatusPAlwaysEnabled returns a pointer to AutomaticRepliesStatusVAlwaysEnabled
+func AutomaticRepliesStatusPAlwaysEnabled() *AutomaticRepliesStatus {
+ v := AutomaticRepliesStatusVAlwaysEnabled
+ return &v
+}
+
+// AutomaticRepliesStatusPScheduled returns a pointer to AutomaticRepliesStatusVScheduled
+func AutomaticRepliesStatusPScheduled() *AutomaticRepliesStatus {
+ v := AutomaticRepliesStatusVScheduled
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AutomaticUpdateModeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AutomaticUpdateModeEnum.go
new file mode 100644
index 00000000..f3ce425d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AutomaticUpdateModeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutomaticUpdateMode undocumented
+type AutomaticUpdateMode int
+
+const (
+ // AutomaticUpdateModeVUserDefined undocumented
+ AutomaticUpdateModeVUserDefined AutomaticUpdateMode = 0
+ // AutomaticUpdateModeVNotifyDownload undocumented
+ AutomaticUpdateModeVNotifyDownload AutomaticUpdateMode = 1
+ // AutomaticUpdateModeVAutoInstallAtMaintenanceTime undocumented
+ AutomaticUpdateModeVAutoInstallAtMaintenanceTime AutomaticUpdateMode = 2
+ // AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime undocumented
+ AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime AutomaticUpdateMode = 3
+ // AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime undocumented
+ AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime AutomaticUpdateMode = 4
+ // AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl undocumented
+ AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl AutomaticUpdateMode = 5
+ // AutomaticUpdateModeVWindowsDefault undocumented
+ AutomaticUpdateModeVWindowsDefault AutomaticUpdateMode = 6
+)
+
+// AutomaticUpdateModePUserDefined returns a pointer to AutomaticUpdateModeVUserDefined
+func AutomaticUpdateModePUserDefined() *AutomaticUpdateMode {
+ v := AutomaticUpdateModeVUserDefined
+ return &v
+}
+
+// AutomaticUpdateModePNotifyDownload returns a pointer to AutomaticUpdateModeVNotifyDownload
+func AutomaticUpdateModePNotifyDownload() *AutomaticUpdateMode {
+ v := AutomaticUpdateModeVNotifyDownload
+ return &v
+}
+
+// AutomaticUpdateModePAutoInstallAtMaintenanceTime returns a pointer to AutomaticUpdateModeVAutoInstallAtMaintenanceTime
+func AutomaticUpdateModePAutoInstallAtMaintenanceTime() *AutomaticUpdateMode {
+ v := AutomaticUpdateModeVAutoInstallAtMaintenanceTime
+ return &v
+}
+
+// AutomaticUpdateModePAutoInstallAndRebootAtMaintenanceTime returns a pointer to AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime
+func AutomaticUpdateModePAutoInstallAndRebootAtMaintenanceTime() *AutomaticUpdateMode {
+ v := AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime
+ return &v
+}
+
+// AutomaticUpdateModePAutoInstallAndRebootAtScheduledTime returns a pointer to AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime
+func AutomaticUpdateModePAutoInstallAndRebootAtScheduledTime() *AutomaticUpdateMode {
+ v := AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime
+ return &v
+}
+
+// AutomaticUpdateModePAutoInstallAndRebootWithoutEndUserControl returns a pointer to AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl
+func AutomaticUpdateModePAutoInstallAndRebootWithoutEndUserControl() *AutomaticUpdateMode {
+ v := AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl
+ return &v
+}
+
+// AutomaticUpdateModePWindowsDefault returns a pointer to AutomaticUpdateModeVWindowsDefault
+func AutomaticUpdateModePWindowsDefault() *AutomaticUpdateMode {
+ v := AutomaticUpdateModeVWindowsDefault
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AverageComparativeScoreModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AverageComparativeScoreModel.go
new file mode 100644
index 00000000..d3a11f1f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AverageComparativeScoreModel.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/matterbridge/msgraph.go/beta/AzureADFeatureUsageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AzureADFeatureUsageModel.go
new file mode 100644
index 00000000..a62bb23a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AzureADFeatureUsageModel.go
@@ -0,0 +1,17 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AzureADLicenseTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AzureADLicenseTypeEnum.go
new file mode 100644
index 00000000..27301fd2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AzureADLicenseTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AzureADLicenseType undocumented
+type AzureADLicenseType int
+
+const (
+ // AzureADLicenseTypeVNone undocumented
+ AzureADLicenseTypeVNone AzureADLicenseType = 0
+ // AzureADLicenseTypeVFree undocumented
+ AzureADLicenseTypeVFree AzureADLicenseType = 1
+ // AzureADLicenseTypeVBasic undocumented
+ AzureADLicenseTypeVBasic AzureADLicenseType = 2
+ // AzureADLicenseTypeVPremiumP1 undocumented
+ AzureADLicenseTypeVPremiumP1 AzureADLicenseType = 3
+ // AzureADLicenseTypeVPremiumP2 undocumented
+ AzureADLicenseTypeVPremiumP2 AzureADLicenseType = 4
+ // AzureADLicenseTypeVUnknownFutureValue undocumented
+ AzureADLicenseTypeVUnknownFutureValue AzureADLicenseType = 5
+)
+
+// AzureADLicenseTypePNone returns a pointer to AzureADLicenseTypeVNone
+func AzureADLicenseTypePNone() *AzureADLicenseType {
+ v := AzureADLicenseTypeVNone
+ return &v
+}
+
+// AzureADLicenseTypePFree returns a pointer to AzureADLicenseTypeVFree
+func AzureADLicenseTypePFree() *AzureADLicenseType {
+ v := AzureADLicenseTypeVFree
+ return &v
+}
+
+// AzureADLicenseTypePBasic returns a pointer to AzureADLicenseTypeVBasic
+func AzureADLicenseTypePBasic() *AzureADLicenseType {
+ v := AzureADLicenseTypeVBasic
+ return &v
+}
+
+// AzureADLicenseTypePPremiumP1 returns a pointer to AzureADLicenseTypeVPremiumP1
+func AzureADLicenseTypePPremiumP1() *AzureADLicenseType {
+ v := AzureADLicenseTypeVPremiumP1
+ return &v
+}
+
+// AzureADLicenseTypePPremiumP2 returns a pointer to AzureADLicenseTypeVPremiumP2
+func AzureADLicenseTypePPremiumP2() *AzureADLicenseType {
+ v := AzureADLicenseTypeVPremiumP2
+ return &v
+}
+
+// AzureADLicenseTypePUnknownFutureValue returns a pointer to AzureADLicenseTypeVUnknownFutureValue
+func AzureADLicenseTypePUnknownFutureValue() *AzureADLicenseType {
+ v := AzureADLicenseTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AzureADLicenseUsageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AzureADLicenseUsageModel.go
new file mode 100644
index 00000000..f11c1665
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AzureADLicenseUsageModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AzureADUserFeatureUsageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AzureADUserFeatureUsageModel.go
new file mode 100644
index 00000000..8b62e0d9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AzureADUserFeatureUsageModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AzureADWindowsAutopilotDeploymentProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AzureADWindowsAutopilotDeploymentProfileModel.go
new file mode 100644
index 00000000..b1097f67
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/AzureADWindowsAutopilotDeploymentProfileModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AzureADWindowsAutopilotDeploymentProfile Windows Autopilot Deployment Profile
+type AzureADWindowsAutopilotDeploymentProfile struct {
+ // WindowsAutopilotDeploymentProfile is the base model of AzureADWindowsAutopilotDeploymentProfile
+ WindowsAutopilotDeploymentProfile
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BaseItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BaseItemModel.go
new file mode 100644
index 00000000..cbf96b5b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BaseItemModel.go
@@ -0,0 +1,33 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BaseItemRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/BaseItemRequest.go
new file mode 100644
index 00000000..d7920621
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BaseItemRequest.go
@@ -0,0 +1,52 @@
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/BaseItemVersionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BaseItemVersionModel.go
new file mode 100644
index 00000000..022ab4e4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BaseItemVersionModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/BinaryManagementConditionExpressionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BinaryManagementConditionExpressionModel.go
new file mode 100644
index 00000000..114efb61
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BinaryManagementConditionExpressionModel.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/matterbridge/msgraph.go/beta/BinaryManagementConditionExpressionOperatorTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/BinaryManagementConditionExpressionOperatorTypeEnum.go
new file mode 100644
index 00000000..0ffef4d4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BinaryManagementConditionExpressionOperatorTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BinaryManagementConditionExpressionOperatorType undocumented
+type BinaryManagementConditionExpressionOperatorType int
+
+const (
+ // BinaryManagementConditionExpressionOperatorTypeVOr undocumented
+ BinaryManagementConditionExpressionOperatorTypeVOr BinaryManagementConditionExpressionOperatorType = 0
+ // BinaryManagementConditionExpressionOperatorTypeVAnd undocumented
+ BinaryManagementConditionExpressionOperatorTypeVAnd BinaryManagementConditionExpressionOperatorType = 1
+)
+
+// BinaryManagementConditionExpressionOperatorTypePOr returns a pointer to BinaryManagementConditionExpressionOperatorTypeVOr
+func BinaryManagementConditionExpressionOperatorTypePOr() *BinaryManagementConditionExpressionOperatorType {
+ v := BinaryManagementConditionExpressionOperatorTypeVOr
+ return &v
+}
+
+// BinaryManagementConditionExpressionOperatorTypePAnd returns a pointer to BinaryManagementConditionExpressionOperatorTypeVAnd
+func BinaryManagementConditionExpressionOperatorTypePAnd() *BinaryManagementConditionExpressionOperatorType {
+ v := BinaryManagementConditionExpressionOperatorTypeVAnd
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerEncryptionMethodEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerEncryptionMethodEnum.go
new file mode 100644
index 00000000..62639b59
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerEncryptionMethodEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BitLockerEncryptionMethod undocumented
+type BitLockerEncryptionMethod int
+
+const (
+ // BitLockerEncryptionMethodVAesCbc128 undocumented
+ BitLockerEncryptionMethodVAesCbc128 BitLockerEncryptionMethod = 3
+ // BitLockerEncryptionMethodVAesCbc256 undocumented
+ BitLockerEncryptionMethodVAesCbc256 BitLockerEncryptionMethod = 4
+ // BitLockerEncryptionMethodVXtsAes128 undocumented
+ BitLockerEncryptionMethodVXtsAes128 BitLockerEncryptionMethod = 6
+ // BitLockerEncryptionMethodVXtsAes256 undocumented
+ BitLockerEncryptionMethodVXtsAes256 BitLockerEncryptionMethod = 7
+)
+
+// BitLockerEncryptionMethodPAesCbc128 returns a pointer to BitLockerEncryptionMethodVAesCbc128
+func BitLockerEncryptionMethodPAesCbc128() *BitLockerEncryptionMethod {
+ v := BitLockerEncryptionMethodVAesCbc128
+ return &v
+}
+
+// BitLockerEncryptionMethodPAesCbc256 returns a pointer to BitLockerEncryptionMethodVAesCbc256
+func BitLockerEncryptionMethodPAesCbc256() *BitLockerEncryptionMethod {
+ v := BitLockerEncryptionMethodVAesCbc256
+ return &v
+}
+
+// BitLockerEncryptionMethodPXtsAes128 returns a pointer to BitLockerEncryptionMethodVXtsAes128
+func BitLockerEncryptionMethodPXtsAes128() *BitLockerEncryptionMethod {
+ v := BitLockerEncryptionMethodVXtsAes128
+ return &v
+}
+
+// BitLockerEncryptionMethodPXtsAes256 returns a pointer to BitLockerEncryptionMethodVXtsAes256
+func BitLockerEncryptionMethodPXtsAes256() *BitLockerEncryptionMethod {
+ v := BitLockerEncryptionMethodVXtsAes256
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerFixedDrivePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerFixedDrivePolicyModel.go
new file mode 100644
index 00000000..6fcfc068
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerFixedDrivePolicyModel.go
@@ -0,0 +1,15 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryInformationTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryInformationTypeEnum.go
new file mode 100644
index 00000000..c55bd164
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryInformationTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BitLockerRecoveryInformationType undocumented
+type BitLockerRecoveryInformationType int
+
+const (
+ // BitLockerRecoveryInformationTypeVPasswordAndKey undocumented
+ BitLockerRecoveryInformationTypeVPasswordAndKey BitLockerRecoveryInformationType = 1
+ // BitLockerRecoveryInformationTypeVPasswordOnly undocumented
+ BitLockerRecoveryInformationTypeVPasswordOnly BitLockerRecoveryInformationType = 2
+)
+
+// BitLockerRecoveryInformationTypePPasswordAndKey returns a pointer to BitLockerRecoveryInformationTypeVPasswordAndKey
+func BitLockerRecoveryInformationTypePPasswordAndKey() *BitLockerRecoveryInformationType {
+ v := BitLockerRecoveryInformationTypeVPasswordAndKey
+ return &v
+}
+
+// BitLockerRecoveryInformationTypePPasswordOnly returns a pointer to BitLockerRecoveryInformationTypeVPasswordOnly
+func BitLockerRecoveryInformationTypePPasswordOnly() *BitLockerRecoveryInformationType {
+ v := BitLockerRecoveryInformationTypeVPasswordOnly
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryOptionsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryOptionsModel.go
new file mode 100644
index 00000000..ad18af69
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryOptionsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryPasswordRotationTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryPasswordRotationTypeEnum.go
new file mode 100644
index 00000000..065d1cfe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryPasswordRotationTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BitLockerRecoveryPasswordRotationType undocumented
+type BitLockerRecoveryPasswordRotationType int
+
+const (
+ // BitLockerRecoveryPasswordRotationTypeVNotConfigured undocumented
+ BitLockerRecoveryPasswordRotationTypeVNotConfigured BitLockerRecoveryPasswordRotationType = 0
+ // BitLockerRecoveryPasswordRotationTypeVDisabled undocumented
+ BitLockerRecoveryPasswordRotationTypeVDisabled BitLockerRecoveryPasswordRotationType = 1
+ // BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd undocumented
+ BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd BitLockerRecoveryPasswordRotationType = 2
+ // BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid undocumented
+ BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid BitLockerRecoveryPasswordRotationType = 3
+)
+
+// BitLockerRecoveryPasswordRotationTypePNotConfigured returns a pointer to BitLockerRecoveryPasswordRotationTypeVNotConfigured
+func BitLockerRecoveryPasswordRotationTypePNotConfigured() *BitLockerRecoveryPasswordRotationType {
+ v := BitLockerRecoveryPasswordRotationTypeVNotConfigured
+ return &v
+}
+
+// BitLockerRecoveryPasswordRotationTypePDisabled returns a pointer to BitLockerRecoveryPasswordRotationTypeVDisabled
+func BitLockerRecoveryPasswordRotationTypePDisabled() *BitLockerRecoveryPasswordRotationType {
+ v := BitLockerRecoveryPasswordRotationTypeVDisabled
+ return &v
+}
+
+// BitLockerRecoveryPasswordRotationTypePEnabledForAzureAd returns a pointer to BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd
+func BitLockerRecoveryPasswordRotationTypePEnabledForAzureAd() *BitLockerRecoveryPasswordRotationType {
+ v := BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd
+ return &v
+}
+
+// BitLockerRecoveryPasswordRotationTypePEnabledForAzureAdAndHybrid returns a pointer to BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid
+func BitLockerRecoveryPasswordRotationTypePEnabledForAzureAdAndHybrid() *BitLockerRecoveryPasswordRotationType {
+ v := BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRemovableDrivePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRemovableDrivePolicyModel.go
new file mode 100644
index 00000000..00eaddb6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRemovableDrivePolicyModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerSystemDrivePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerSystemDrivePolicyModel.go
new file mode 100644
index 00000000..ce647930
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerSystemDrivePolicyModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/BlockAccessActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BlockAccessActionModel.go
new file mode 100644
index 00000000..63265cfa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BlockAccessActionModel.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/matterbridge/msgraph.go/beta/BodyTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/BodyTypeEnum.go
new file mode 100644
index 00000000..df6c88c2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BodyTypeEnum.go
@@ -0,0 +1,28 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BodyType undocumented
+type BodyType string
+
+/*
+
+const (
+ // BodyTypeVText undocumented
+ BodyTypeVText BodyType = 0
+ // BodyTypeVHTML undocumented
+ BodyTypeVHTML BodyType = 1
+)
+
+// BodyTypePText returns a pointer to BodyTypeVText
+func BodyTypePText() *BodyType {
+ v := BodyTypeVText
+ return &v
+}
+
+// BodyTypePHTML returns a pointer to BodyTypeVHTML
+func BodyTypePHTML() *BodyType {
+ v := BodyTypeVHTML
+ return &v
+}
+*/
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentAction.go
new file mode 100644
index 00000000..27fae8e5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BookingAppointmentCancelRequestParameter undocumented
+type BookingAppointmentCancelRequestParameter struct {
+ // CancellationMessage undocumented
+ CancellationMessage *string `json:"cancellationMessage,omitempty"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentModel.go
new file mode 100644
index 00000000..b99558e3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentModel.go
@@ -0,0 +1,63 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Duration `json:"duration,omitempty"`
+ // PreBuffer undocumented
+ PreBuffer *time.Duration `json:"preBuffer,omitempty"`
+ // PostBuffer undocumented
+ PostBuffer *time.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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentRequest.go
new file mode 100644
index 00000000..3471af50
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessAction.go
new file mode 100644
index 00000000..fcf02978
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessAction.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BookingBusinessPublishRequestParameter undocumented
+type BookingBusinessPublishRequestParameter struct {
+}
+
+// BookingBusinessUnpublishRequestParameter undocumented
+type BookingBusinessUnpublishRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/BookingBusinessModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessModel.go
new file mode 100644
index 00000000..e6ded981
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessRequest.go
new file mode 100644
index 00000000..b5e86679
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessRequest.go
@@ -0,0 +1,515 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BookingAppointment collection
+func (r *BookingBusinessAppointmentsCollectionRequest) Get(ctx context.Context) ([]BookingAppointment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BookingAppointment collection
+func (r *BookingBusinessCalendarViewCollectionRequest) Get(ctx context.Context) ([]BookingAppointment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BookingCustomer collection
+func (r *BookingBusinessCustomersCollectionRequest) Get(ctx context.Context) ([]BookingCustomer, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BookingService collection
+func (r *BookingBusinessServicesCollectionRequest) Get(ctx context.Context) ([]BookingService, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BookingStaffMember collection
+func (r *BookingBusinessStaffMembersCollectionRequest) Get(ctx context.Context) ([]BookingStaffMember, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/BookingCurrencyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingCurrencyModel.go
new file mode 100644
index 00000000..4faf328d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingCurrencyModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingCurrency undocumented
+type BookingCurrency struct {
+ // Entity is the base model of BookingCurrency
+ Entity
+ // Symbol undocumented
+ Symbol *string `json:"symbol,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingCurrencyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingCurrencyRequest.go
new file mode 100644
index 00000000..64be54e0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingCurrencyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingCustomerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingCustomerModel.go
new file mode 100644
index 00000000..794ffdb5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingCustomerModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingCustomer Represents a customer of the business.
+type BookingCustomer struct {
+ // BookingPerson is the base model of BookingCustomer
+ BookingPerson
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingCustomerRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingCustomerRequest.go
new file mode 100644
index 00000000..1bca5e62
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingCustomerRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingInvoiceStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingInvoiceStatusEnum.go
new file mode 100644
index 00000000..70cba7a8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingInvoiceStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingInvoiceStatus undocumented
+type BookingInvoiceStatus int
+
+const (
+ // BookingInvoiceStatusVDraft undocumented
+ BookingInvoiceStatusVDraft BookingInvoiceStatus = 0
+ // BookingInvoiceStatusVReviewing undocumented
+ BookingInvoiceStatusVReviewing BookingInvoiceStatus = 1
+ // BookingInvoiceStatusVOpen undocumented
+ BookingInvoiceStatusVOpen BookingInvoiceStatus = 2
+ // BookingInvoiceStatusVCanceled undocumented
+ BookingInvoiceStatusVCanceled BookingInvoiceStatus = 3
+ // BookingInvoiceStatusVPaid undocumented
+ BookingInvoiceStatusVPaid BookingInvoiceStatus = 4
+ // BookingInvoiceStatusVCorrective undocumented
+ BookingInvoiceStatusVCorrective BookingInvoiceStatus = 5
+)
+
+// BookingInvoiceStatusPDraft returns a pointer to BookingInvoiceStatusVDraft
+func BookingInvoiceStatusPDraft() *BookingInvoiceStatus {
+ v := BookingInvoiceStatusVDraft
+ return &v
+}
+
+// BookingInvoiceStatusPReviewing returns a pointer to BookingInvoiceStatusVReviewing
+func BookingInvoiceStatusPReviewing() *BookingInvoiceStatus {
+ v := BookingInvoiceStatusVReviewing
+ return &v
+}
+
+// BookingInvoiceStatusPOpen returns a pointer to BookingInvoiceStatusVOpen
+func BookingInvoiceStatusPOpen() *BookingInvoiceStatus {
+ v := BookingInvoiceStatusVOpen
+ return &v
+}
+
+// BookingInvoiceStatusPCanceled returns a pointer to BookingInvoiceStatusVCanceled
+func BookingInvoiceStatusPCanceled() *BookingInvoiceStatus {
+ v := BookingInvoiceStatusVCanceled
+ return &v
+}
+
+// BookingInvoiceStatusPPaid returns a pointer to BookingInvoiceStatusVPaid
+func BookingInvoiceStatusPPaid() *BookingInvoiceStatus {
+ v := BookingInvoiceStatusVPaid
+ return &v
+}
+
+// BookingInvoiceStatusPCorrective returns a pointer to BookingInvoiceStatusVCorrective
+func BookingInvoiceStatusPCorrective() *BookingInvoiceStatus {
+ v := BookingInvoiceStatusVCorrective
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingNamedEntityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingNamedEntityModel.go
new file mode 100644
index 00000000..93db447a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingNamedEntityModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingPersonModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingPersonModel.go
new file mode 100644
index 00000000..5b5ce664
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingPersonModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingPriceTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingPriceTypeEnum.go
new file mode 100644
index 00000000..33bb99a3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingPriceTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingPriceType undocumented
+type BookingPriceType int
+
+const (
+ // BookingPriceTypeVUndefined undocumented
+ BookingPriceTypeVUndefined BookingPriceType = 0
+ // BookingPriceTypeVFixedPrice undocumented
+ BookingPriceTypeVFixedPrice BookingPriceType = 1
+ // BookingPriceTypeVStartingAt undocumented
+ BookingPriceTypeVStartingAt BookingPriceType = 2
+ // BookingPriceTypeVHourly undocumented
+ BookingPriceTypeVHourly BookingPriceType = 3
+ // BookingPriceTypeVFree undocumented
+ BookingPriceTypeVFree BookingPriceType = 4
+ // BookingPriceTypeVPriceVaries undocumented
+ BookingPriceTypeVPriceVaries BookingPriceType = 5
+ // BookingPriceTypeVCallUs undocumented
+ BookingPriceTypeVCallUs BookingPriceType = 6
+ // BookingPriceTypeVNotSet undocumented
+ BookingPriceTypeVNotSet BookingPriceType = 7
+)
+
+// BookingPriceTypePUndefined returns a pointer to BookingPriceTypeVUndefined
+func BookingPriceTypePUndefined() *BookingPriceType {
+ v := BookingPriceTypeVUndefined
+ return &v
+}
+
+// BookingPriceTypePFixedPrice returns a pointer to BookingPriceTypeVFixedPrice
+func BookingPriceTypePFixedPrice() *BookingPriceType {
+ v := BookingPriceTypeVFixedPrice
+ return &v
+}
+
+// BookingPriceTypePStartingAt returns a pointer to BookingPriceTypeVStartingAt
+func BookingPriceTypePStartingAt() *BookingPriceType {
+ v := BookingPriceTypeVStartingAt
+ return &v
+}
+
+// BookingPriceTypePHourly returns a pointer to BookingPriceTypeVHourly
+func BookingPriceTypePHourly() *BookingPriceType {
+ v := BookingPriceTypeVHourly
+ return &v
+}
+
+// BookingPriceTypePFree returns a pointer to BookingPriceTypeVFree
+func BookingPriceTypePFree() *BookingPriceType {
+ v := BookingPriceTypeVFree
+ return &v
+}
+
+// BookingPriceTypePPriceVaries returns a pointer to BookingPriceTypeVPriceVaries
+func BookingPriceTypePPriceVaries() *BookingPriceType {
+ v := BookingPriceTypeVPriceVaries
+ return &v
+}
+
+// BookingPriceTypePCallUs returns a pointer to BookingPriceTypeVCallUs
+func BookingPriceTypePCallUs() *BookingPriceType {
+ v := BookingPriceTypeVCallUs
+ return &v
+}
+
+// BookingPriceTypePNotSet returns a pointer to BookingPriceTypeVNotSet
+func BookingPriceTypePNotSet() *BookingPriceType {
+ v := BookingPriceTypeVNotSet
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingReminderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingReminderModel.go
new file mode 100644
index 00000000..28ef0b87
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingReminderModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Duration `json:"offset,omitempty"`
+ // Recipients Who should receive the reminder.
+ Recipients *BookingReminderRecipients `json:"recipients,omitempty"`
+ // Message Message to send.
+ Message *string `json:"message,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingReminderRecipientsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingReminderRecipientsEnum.go
new file mode 100644
index 00000000..4cb8c86a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingReminderRecipientsEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingReminderRecipients undocumented
+type BookingReminderRecipients int
+
+const (
+ // BookingReminderRecipientsVAllAttendees undocumented
+ BookingReminderRecipientsVAllAttendees BookingReminderRecipients = 0
+ // BookingReminderRecipientsVStaff undocumented
+ BookingReminderRecipientsVStaff BookingReminderRecipients = 1
+ // BookingReminderRecipientsVCustomer undocumented
+ BookingReminderRecipientsVCustomer BookingReminderRecipients = 2
+)
+
+// BookingReminderRecipientsPAllAttendees returns a pointer to BookingReminderRecipientsVAllAttendees
+func BookingReminderRecipientsPAllAttendees() *BookingReminderRecipients {
+ v := BookingReminderRecipientsVAllAttendees
+ return &v
+}
+
+// BookingReminderRecipientsPStaff returns a pointer to BookingReminderRecipientsVStaff
+func BookingReminderRecipientsPStaff() *BookingReminderRecipients {
+ v := BookingReminderRecipientsVStaff
+ return &v
+}
+
+// BookingReminderRecipientsPCustomer returns a pointer to BookingReminderRecipientsVCustomer
+func BookingReminderRecipientsPCustomer() *BookingReminderRecipients {
+ v := BookingReminderRecipientsVCustomer
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingSchedulingPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingSchedulingPolicyModel.go
new file mode 100644
index 00000000..ec70cdb6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingSchedulingPolicyModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// BookingSchedulingPolicy undocumented
+type BookingSchedulingPolicy struct {
+ // Object is the base model of BookingSchedulingPolicy
+ Object
+ // TimeSlotInterval Duration of each time slot.
+ TimeSlotInterval *time.Duration `json:"timeSlotInterval,omitempty"`
+ // MinimumLeadTime Minimum lead time for bookings and cancellations.
+ MinimumLeadTime *time.Duration `json:"minimumLeadTime,omitempty"`
+ // MaximumAdvance Maximum number of days in advance that a booking can be made.
+ MaximumAdvance *time.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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingServiceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingServiceModel.go
new file mode 100644
index 00000000..945f22bd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingServiceModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// BookingService Represents a particular service offered by a booking business.
+type BookingService struct {
+ // BookingNamedEntity is the base model of BookingService
+ BookingNamedEntity
+ // DefaultDuration undocumented
+ DefaultDuration *time.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 *time.Duration `json:"preBuffer,omitempty"`
+ // PostBuffer undocumented
+ PostBuffer *time.Duration `json:"postBuffer,omitempty"`
+ // SchedulingPolicy undocumented
+ SchedulingPolicy *BookingSchedulingPolicy `json:"schedulingPolicy,omitempty"`
+ // StaffMemberIDs undocumented
+ StaffMemberIDs []string `json:"staffMemberIds,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingServiceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingServiceRequest.go
new file mode 100644
index 00000000..7d840b08
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingServiceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffMemberModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffMemberModel.go
new file mode 100644
index 00000000..cbb0980e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffMemberModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffMemberRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffMemberRequest.go
new file mode 100644
index 00000000..f9baf3bc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffMemberRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffRoleEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffRoleEnum.go
new file mode 100644
index 00000000..631718c4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffRoleEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingStaffRole undocumented
+type BookingStaffRole int
+
+const (
+ // BookingStaffRoleVGuest undocumented
+ BookingStaffRoleVGuest BookingStaffRole = 0
+ // BookingStaffRoleVAdministrator undocumented
+ BookingStaffRoleVAdministrator BookingStaffRole = 1
+ // BookingStaffRoleVViewer undocumented
+ BookingStaffRoleVViewer BookingStaffRole = 2
+ // BookingStaffRoleVExternalGuest undocumented
+ BookingStaffRoleVExternalGuest BookingStaffRole = 3
+)
+
+// BookingStaffRolePGuest returns a pointer to BookingStaffRoleVGuest
+func BookingStaffRolePGuest() *BookingStaffRole {
+ v := BookingStaffRoleVGuest
+ return &v
+}
+
+// BookingStaffRolePAdministrator returns a pointer to BookingStaffRoleVAdministrator
+func BookingStaffRolePAdministrator() *BookingStaffRole {
+ v := BookingStaffRoleVAdministrator
+ return &v
+}
+
+// BookingStaffRolePViewer returns a pointer to BookingStaffRoleVViewer
+func BookingStaffRolePViewer() *BookingStaffRole {
+ v := BookingStaffRoleVViewer
+ return &v
+}
+
+// BookingStaffRolePExternalGuest returns a pointer to BookingStaffRoleVExternalGuest
+func BookingStaffRolePExternalGuest() *BookingStaffRole {
+ v := BookingStaffRoleVExternalGuest
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingTypeEnum.go
new file mode 100644
index 00000000..cd66a265
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingType undocumented
+type BookingType int
+
+const (
+ // BookingTypeVUnknown undocumented
+ BookingTypeVUnknown BookingType = 0
+ // BookingTypeVStandard undocumented
+ BookingTypeVStandard BookingType = 1
+ // BookingTypeVReserved undocumented
+ BookingTypeVReserved BookingType = 2
+)
+
+// BookingTypePUnknown returns a pointer to BookingTypeVUnknown
+func BookingTypePUnknown() *BookingType {
+ v := BookingTypeVUnknown
+ return &v
+}
+
+// BookingTypePStandard returns a pointer to BookingTypeVStandard
+func BookingTypePStandard() *BookingType {
+ v := BookingTypeVStandard
+ return &v
+}
+
+// BookingTypePReserved returns a pointer to BookingTypeVReserved
+func BookingTypePReserved() *BookingType {
+ v := BookingTypeVReserved
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingWorkHoursModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingWorkHoursModel.go
new file mode 100644
index 00000000..cca6b9c7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingWorkHoursModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BookingWorkTimeSlotModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BookingWorkTimeSlotModel.go
new file mode 100644
index 00000000..638b5942
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BookingWorkTimeSlotModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// BookingWorkTimeSlot undocumented
+type BookingWorkTimeSlot struct {
+ // Object is the base model of BookingWorkTimeSlot
+ Object
+ // Start undocumented
+ Start *time.Time `json:"start,omitempty"`
+ // End undocumented
+ End *time.Time `json:"end,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BooleanColumnModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BooleanColumnModel.go
new file mode 100644
index 00000000..0491e7b5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BooleanColumnModel.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/matterbridge/msgraph.go/beta/BrowserSyncSettingEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/BrowserSyncSettingEnum.go
new file mode 100644
index 00000000..6a6d13f1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BrowserSyncSettingEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BrowserSyncSetting undocumented
+type BrowserSyncSetting int
+
+const (
+ // BrowserSyncSettingVNotConfigured undocumented
+ BrowserSyncSettingVNotConfigured BrowserSyncSetting = 0
+ // BrowserSyncSettingVBlockedWithUserOverride undocumented
+ BrowserSyncSettingVBlockedWithUserOverride BrowserSyncSetting = 1
+ // BrowserSyncSettingVBlocked undocumented
+ BrowserSyncSettingVBlocked BrowserSyncSetting = 2
+)
+
+// BrowserSyncSettingPNotConfigured returns a pointer to BrowserSyncSettingVNotConfigured
+func BrowserSyncSettingPNotConfigured() *BrowserSyncSetting {
+ v := BrowserSyncSettingVNotConfigured
+ return &v
+}
+
+// BrowserSyncSettingPBlockedWithUserOverride returns a pointer to BrowserSyncSettingVBlockedWithUserOverride
+func BrowserSyncSettingPBlockedWithUserOverride() *BrowserSyncSetting {
+ v := BrowserSyncSettingVBlockedWithUserOverride
+ return &v
+}
+
+// BrowserSyncSettingPBlocked returns a pointer to BrowserSyncSettingVBlocked
+func BrowserSyncSettingPBlocked() *BrowserSyncSetting {
+ v := BrowserSyncSettingVBlocked
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BulkManagedDeviceActionResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BulkManagedDeviceActionResultModel.go
new file mode 100644
index 00000000..6fd6c05a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BulkManagedDeviceActionResultModel.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/matterbridge/msgraph.go/beta/BundleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BundleModel.go
new file mode 100644
index 00000000..beb2281e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BundleModel.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/matterbridge/msgraph.go/beta/BusinessFlowAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowAction.go
new file mode 100644
index 00000000..5f7bb3bc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowAction.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BusinessFlowRecordDecisionsRequestParameter undocumented
+type BusinessFlowRecordDecisionsRequestParameter struct {
+ // ReviewResult undocumented
+ ReviewResult *string `json:"reviewResult,omitempty"`
+ // Justification undocumented
+ Justification *string `json:"justification,omitempty"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/BusinessFlowModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowModel.go
new file mode 100644
index 00000000..a4594cc8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowModel.go
@@ -0,0 +1,27 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowRequest.go
new file mode 100644
index 00000000..31e9d49c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowSettingsModel.go
new file mode 100644
index 00000000..0daf3c67
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowSettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BusinessFlowSettings undocumented
+type BusinessFlowSettings struct {
+ // AccessReviewSettings is the base model of BusinessFlowSettings
+ AccessReviewSettings
+ // DurationInDays undocumented
+ DurationInDays *int `json:"durationInDays,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowTemplateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowTemplateModel.go
new file mode 100644
index 00000000..52ed6b9b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowTemplateModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/BusinessFlowTemplateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowTemplateRequest.go
new file mode 100644
index 00000000..b87eaf9f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowTemplateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CalculatedColumnModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalculatedColumnModel.go
new file mode 100644
index 00000000..2447df41
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalculatedColumnModel.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/matterbridge/msgraph.go/beta/CalendarAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarAction.go
new file mode 100644
index 00000000..a86f3e4e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarAction.go
@@ -0,0 +1,106 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]ScheduleInformation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarColorEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarColorEnum.go
new file mode 100644
index 00000000..69e2b393
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarColorEnum.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalendarColor undocumented
+type CalendarColor int
+
+const (
+ // CalendarColorVLightBlue undocumented
+ CalendarColorVLightBlue CalendarColor = 0
+ // CalendarColorVLightGreen undocumented
+ CalendarColorVLightGreen CalendarColor = 1
+ // CalendarColorVLightOrange undocumented
+ CalendarColorVLightOrange CalendarColor = 2
+ // CalendarColorVLightGray undocumented
+ CalendarColorVLightGray CalendarColor = 3
+ // CalendarColorVLightYellow undocumented
+ CalendarColorVLightYellow CalendarColor = 4
+ // CalendarColorVLightTeal undocumented
+ CalendarColorVLightTeal CalendarColor = 5
+ // CalendarColorVLightPink undocumented
+ CalendarColorVLightPink CalendarColor = 6
+ // CalendarColorVLightBrown undocumented
+ CalendarColorVLightBrown CalendarColor = 7
+ // CalendarColorVLightRed undocumented
+ CalendarColorVLightRed CalendarColor = 8
+ // CalendarColorVMaxColor undocumented
+ CalendarColorVMaxColor CalendarColor = 9
+ // CalendarColorVAuto undocumented
+ CalendarColorVAuto CalendarColor = -1
+)
+
+// CalendarColorPLightBlue returns a pointer to CalendarColorVLightBlue
+func CalendarColorPLightBlue() *CalendarColor {
+ v := CalendarColorVLightBlue
+ return &v
+}
+
+// CalendarColorPLightGreen returns a pointer to CalendarColorVLightGreen
+func CalendarColorPLightGreen() *CalendarColor {
+ v := CalendarColorVLightGreen
+ return &v
+}
+
+// CalendarColorPLightOrange returns a pointer to CalendarColorVLightOrange
+func CalendarColorPLightOrange() *CalendarColor {
+ v := CalendarColorVLightOrange
+ return &v
+}
+
+// CalendarColorPLightGray returns a pointer to CalendarColorVLightGray
+func CalendarColorPLightGray() *CalendarColor {
+ v := CalendarColorVLightGray
+ return &v
+}
+
+// CalendarColorPLightYellow returns a pointer to CalendarColorVLightYellow
+func CalendarColorPLightYellow() *CalendarColor {
+ v := CalendarColorVLightYellow
+ return &v
+}
+
+// CalendarColorPLightTeal returns a pointer to CalendarColorVLightTeal
+func CalendarColorPLightTeal() *CalendarColor {
+ v := CalendarColorVLightTeal
+ return &v
+}
+
+// CalendarColorPLightPink returns a pointer to CalendarColorVLightPink
+func CalendarColorPLightPink() *CalendarColor {
+ v := CalendarColorVLightPink
+ return &v
+}
+
+// CalendarColorPLightBrown returns a pointer to CalendarColorVLightBrown
+func CalendarColorPLightBrown() *CalendarColor {
+ v := CalendarColorVLightBrown
+ return &v
+}
+
+// CalendarColorPLightRed returns a pointer to CalendarColorVLightRed
+func CalendarColorPLightRed() *CalendarColor {
+ v := CalendarColorVLightRed
+ return &v
+}
+
+// CalendarColorPMaxColor returns a pointer to CalendarColorVMaxColor
+func CalendarColorPMaxColor() *CalendarColor {
+ v := CalendarColorVMaxColor
+ return &v
+}
+
+// CalendarColorPAuto returns a pointer to CalendarColorVAuto
+func CalendarColorPAuto() *CalendarColor {
+ v := CalendarColorVAuto
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarGroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarGroupModel.go
new file mode 100644
index 00000000..5fb800b6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarGroupModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarGroupRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarGroupRequest.go
new file mode 100644
index 00000000..c29593cf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarGroupRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Calendar collection
+func (r *CalendarGroupCalendarsCollectionRequest) Get(ctx context.Context) ([]Calendar, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/CalendarModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarModel.go
new file mode 100644
index 00000000..e47574d9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarModel.go
@@ -0,0 +1,49 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarPermissionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarPermissionModel.go
new file mode 100644
index 00000000..53368224
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarPermissionModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarPermissionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarPermissionRequest.go
new file mode 100644
index 00000000..41a0952c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarPermissionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarRequest.go
new file mode 100644
index 00000000..d3d92121
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarRequest.go
@@ -0,0 +1,515 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CalendarPermission collection
+func (r *CalendarCalendarPermissionsCollectionRequest) Get(ctx context.Context) ([]CalendarPermission, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Event collection
+func (r *CalendarCalendarViewCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Event collection
+func (r *CalendarEventsCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarRoleTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarRoleTypeEnum.go
new file mode 100644
index 00000000..7b744d18
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarRoleTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalendarRoleType undocumented
+type CalendarRoleType int
+
+const (
+ // CalendarRoleTypeVNone undocumented
+ CalendarRoleTypeVNone CalendarRoleType = 0
+ // CalendarRoleTypeVFreeBusyRead undocumented
+ CalendarRoleTypeVFreeBusyRead CalendarRoleType = 1
+ // CalendarRoleTypeVLimitedRead undocumented
+ CalendarRoleTypeVLimitedRead CalendarRoleType = 2
+ // CalendarRoleTypeVRead undocumented
+ CalendarRoleTypeVRead CalendarRoleType = 3
+ // CalendarRoleTypeVWrite undocumented
+ CalendarRoleTypeVWrite CalendarRoleType = 4
+ // CalendarRoleTypeVDelegateWithoutPrivateEventAccess undocumented
+ CalendarRoleTypeVDelegateWithoutPrivateEventAccess CalendarRoleType = 5
+ // CalendarRoleTypeVDelegateWithPrivateEventAccess undocumented
+ CalendarRoleTypeVDelegateWithPrivateEventAccess CalendarRoleType = 6
+ // CalendarRoleTypeVCustom undocumented
+ CalendarRoleTypeVCustom CalendarRoleType = 7
+)
+
+// CalendarRoleTypePNone returns a pointer to CalendarRoleTypeVNone
+func CalendarRoleTypePNone() *CalendarRoleType {
+ v := CalendarRoleTypeVNone
+ return &v
+}
+
+// CalendarRoleTypePFreeBusyRead returns a pointer to CalendarRoleTypeVFreeBusyRead
+func CalendarRoleTypePFreeBusyRead() *CalendarRoleType {
+ v := CalendarRoleTypeVFreeBusyRead
+ return &v
+}
+
+// CalendarRoleTypePLimitedRead returns a pointer to CalendarRoleTypeVLimitedRead
+func CalendarRoleTypePLimitedRead() *CalendarRoleType {
+ v := CalendarRoleTypeVLimitedRead
+ return &v
+}
+
+// CalendarRoleTypePRead returns a pointer to CalendarRoleTypeVRead
+func CalendarRoleTypePRead() *CalendarRoleType {
+ v := CalendarRoleTypeVRead
+ return &v
+}
+
+// CalendarRoleTypePWrite returns a pointer to CalendarRoleTypeVWrite
+func CalendarRoleTypePWrite() *CalendarRoleType {
+ v := CalendarRoleTypeVWrite
+ return &v
+}
+
+// CalendarRoleTypePDelegateWithoutPrivateEventAccess returns a pointer to CalendarRoleTypeVDelegateWithoutPrivateEventAccess
+func CalendarRoleTypePDelegateWithoutPrivateEventAccess() *CalendarRoleType {
+ v := CalendarRoleTypeVDelegateWithoutPrivateEventAccess
+ return &v
+}
+
+// CalendarRoleTypePDelegateWithPrivateEventAccess returns a pointer to CalendarRoleTypeVDelegateWithPrivateEventAccess
+func CalendarRoleTypePDelegateWithPrivateEventAccess() *CalendarRoleType {
+ v := CalendarRoleTypeVDelegateWithPrivateEventAccess
+ return &v
+}
+
+// CalendarRoleTypePCustom returns a pointer to CalendarRoleTypeVCustom
+func CalendarRoleTypePCustom() *CalendarRoleType {
+ v := CalendarRoleTypeVCustom
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionEnum.go
new file mode 100644
index 00000000..8f924d03
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalendarSharingAction undocumented
+type CalendarSharingAction int
+
+const (
+ // CalendarSharingActionVAccept undocumented
+ CalendarSharingActionVAccept CalendarSharingAction = 0
+ // CalendarSharingActionVAcceptAndViewCalendar undocumented
+ CalendarSharingActionVAcceptAndViewCalendar CalendarSharingAction = 1
+ // CalendarSharingActionVViewCalendar undocumented
+ CalendarSharingActionVViewCalendar CalendarSharingAction = 2
+ // CalendarSharingActionVAddThisCalendar undocumented
+ CalendarSharingActionVAddThisCalendar CalendarSharingAction = 3
+)
+
+// CalendarSharingActionPAccept returns a pointer to CalendarSharingActionVAccept
+func CalendarSharingActionPAccept() *CalendarSharingAction {
+ v := CalendarSharingActionVAccept
+ return &v
+}
+
+// CalendarSharingActionPAcceptAndViewCalendar returns a pointer to CalendarSharingActionVAcceptAndViewCalendar
+func CalendarSharingActionPAcceptAndViewCalendar() *CalendarSharingAction {
+ v := CalendarSharingActionVAcceptAndViewCalendar
+ return &v
+}
+
+// CalendarSharingActionPViewCalendar returns a pointer to CalendarSharingActionVViewCalendar
+func CalendarSharingActionPViewCalendar() *CalendarSharingAction {
+ v := CalendarSharingActionVViewCalendar
+ return &v
+}
+
+// CalendarSharingActionPAddThisCalendar returns a pointer to CalendarSharingActionVAddThisCalendar
+func CalendarSharingActionPAddThisCalendar() *CalendarSharingAction {
+ v := CalendarSharingActionVAddThisCalendar
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionImportanceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionImportanceEnum.go
new file mode 100644
index 00000000..8aab1b0c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionImportanceEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalendarSharingActionImportance undocumented
+type CalendarSharingActionImportance int
+
+const (
+ // CalendarSharingActionImportanceVPrimary undocumented
+ CalendarSharingActionImportanceVPrimary CalendarSharingActionImportance = 0
+ // CalendarSharingActionImportanceVSecondary undocumented
+ CalendarSharingActionImportanceVSecondary CalendarSharingActionImportance = 1
+)
+
+// CalendarSharingActionImportancePPrimary returns a pointer to CalendarSharingActionImportanceVPrimary
+func CalendarSharingActionImportancePPrimary() *CalendarSharingActionImportance {
+ v := CalendarSharingActionImportanceVPrimary
+ return &v
+}
+
+// CalendarSharingActionImportancePSecondary returns a pointer to CalendarSharingActionImportanceVSecondary
+func CalendarSharingActionImportancePSecondary() *CalendarSharingActionImportance {
+ v := CalendarSharingActionImportanceVSecondary
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionTypeEnum.go
new file mode 100644
index 00000000..12728061
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionTypeEnum.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalendarSharingActionType undocumented
+type CalendarSharingActionType int
+
+const (
+ // CalendarSharingActionTypeVAccept undocumented
+ CalendarSharingActionTypeVAccept CalendarSharingActionType = 0
+)
+
+// CalendarSharingActionTypePAccept returns a pointer to CalendarSharingActionTypeVAccept
+func CalendarSharingActionTypePAccept() *CalendarSharingActionType {
+ v := CalendarSharingActionTypeVAccept
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageAction.go
new file mode 100644
index 00000000..7c049f06
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageAction.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CalendarSharingMessageAcceptRequestParameter undocumented
+type CalendarSharingMessageAcceptRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/CalendarSharingMessageActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageActionModel.go
new file mode 100644
index 00000000..45f3aca4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageActionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/CalendarSharingMessageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageModel.go
new file mode 100644
index 00000000..ce8c1fa1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageRequest.go
new file mode 100644
index 00000000..fc7191dc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CallAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/CallAction.go
new file mode 100644
index 00000000..28e0316a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CallAction.go
@@ -0,0 +1,513 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/CallActivityStatisticsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CallActivityStatisticsModel.go
new file mode 100644
index 00000000..ce73dfb5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CallActivityStatisticsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// CallActivityStatistics undocumented
+type CallActivityStatistics struct {
+ // ActivityStatistics is the base model of CallActivityStatistics
+ ActivityStatistics
+ // AfterHours undocumented
+ AfterHours *time.Duration `json:"afterHours,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CallDirectionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CallDirectionEnum.go
new file mode 100644
index 00000000..2537e2c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CallDirectionEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CallDirection undocumented
+type CallDirection int
+
+const (
+ // CallDirectionVIncoming undocumented
+ CallDirectionVIncoming CallDirection = 0
+ // CallDirectionVOutgoing undocumented
+ CallDirectionVOutgoing CallDirection = 1
+)
+
+// CallDirectionPIncoming returns a pointer to CallDirectionVIncoming
+func CallDirectionPIncoming() *CallDirection {
+ v := CallDirectionVIncoming
+ return &v
+}
+
+// CallDirectionPOutgoing returns a pointer to CallDirectionVOutgoing
+func CallDirectionPOutgoing() *CallDirection {
+ v := CallDirectionVOutgoing
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CallDispositionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CallDispositionEnum.go
new file mode 100644
index 00000000..7422ddb7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CallDispositionEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CallDisposition undocumented
+type CallDisposition int
+
+const (
+ // CallDispositionVDefault undocumented
+ CallDispositionVDefault CallDisposition = 0
+ // CallDispositionVSimultaneousRing undocumented
+ CallDispositionVSimultaneousRing CallDisposition = 1
+ // CallDispositionVForward undocumented
+ CallDispositionVForward CallDisposition = 2
+)
+
+// CallDispositionPDefault returns a pointer to CallDispositionVDefault
+func CallDispositionPDefault() *CallDisposition {
+ v := CallDispositionVDefault
+ return &v
+}
+
+// CallDispositionPSimultaneousRing returns a pointer to CallDispositionVSimultaneousRing
+func CallDispositionPSimultaneousRing() *CallDisposition {
+ v := CallDispositionVSimultaneousRing
+ return &v
+}
+
+// CallDispositionPForward returns a pointer to CallDispositionVForward
+func CallDispositionPForward() *CallDisposition {
+ v := CallDispositionVForward
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CallMediaStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CallMediaStateModel.go
new file mode 100644
index 00000000..4ede2ae1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CallMediaStateModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CallMediaState undocumented
+type CallMediaState struct {
+ // Object is the base model of CallMediaState
+ Object
+ // Audio undocumented
+ Audio *MediaState `json:"audio,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CallModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CallModel.go
new file mode 100644
index 00000000..9b8a598e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CallModel.go
@@ -0,0 +1,63 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CallOptionsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CallOptionsModel.go
new file mode 100644
index 00000000..7f3f48cf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CallOptionsModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CallOptions undocumented
+type CallOptions struct {
+ // Object is the base model of CallOptions
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CallRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CallRequest.go
new file mode 100644
index 00000000..22963606
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CallRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AudioRoutingGroup collection
+func (r *CallAudioRoutingGroupsCollectionRequest) Get(ctx context.Context) ([]AudioRoutingGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CommsOperation collection
+func (r *CallOperationsCollectionRequest) Get(ctx context.Context) ([]CommsOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Participant collection
+func (r *CallParticipantsCollectionRequest) Get(ctx context.Context) ([]Participant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/CallRouteModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CallRouteModel.go
new file mode 100644
index 00000000..14ad2246
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CallRouteModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/CallStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CallStateEnum.go
new file mode 100644
index 00000000..b6f49a08
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CallStateEnum.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CallState undocumented
+type CallState int
+
+const (
+ // CallStateVIncoming undocumented
+ CallStateVIncoming CallState = 0
+ // CallStateVEstablishing undocumented
+ CallStateVEstablishing CallState = 1
+ // CallStateVRinging undocumented
+ CallStateVRinging CallState = 2
+ // CallStateVEstablished undocumented
+ CallStateVEstablished CallState = 3
+ // CallStateVHold undocumented
+ CallStateVHold CallState = 4
+ // CallStateVTransferring undocumented
+ CallStateVTransferring CallState = 5
+ // CallStateVTransferAccepted undocumented
+ CallStateVTransferAccepted CallState = 6
+ // CallStateVRedirecting undocumented
+ CallStateVRedirecting CallState = 7
+ // CallStateVTerminating undocumented
+ CallStateVTerminating CallState = 8
+ // CallStateVTerminated undocumented
+ CallStateVTerminated CallState = 9
+ // CallStateVUnknownFutureValue undocumented
+ CallStateVUnknownFutureValue CallState = 10
+)
+
+// CallStatePIncoming returns a pointer to CallStateVIncoming
+func CallStatePIncoming() *CallState {
+ v := CallStateVIncoming
+ return &v
+}
+
+// CallStatePEstablishing returns a pointer to CallStateVEstablishing
+func CallStatePEstablishing() *CallState {
+ v := CallStateVEstablishing
+ return &v
+}
+
+// CallStatePRinging returns a pointer to CallStateVRinging
+func CallStatePRinging() *CallState {
+ v := CallStateVRinging
+ return &v
+}
+
+// CallStatePEstablished returns a pointer to CallStateVEstablished
+func CallStatePEstablished() *CallState {
+ v := CallStateVEstablished
+ return &v
+}
+
+// CallStatePHold returns a pointer to CallStateVHold
+func CallStatePHold() *CallState {
+ v := CallStateVHold
+ return &v
+}
+
+// CallStatePTransferring returns a pointer to CallStateVTransferring
+func CallStatePTransferring() *CallState {
+ v := CallStateVTransferring
+ return &v
+}
+
+// CallStatePTransferAccepted returns a pointer to CallStateVTransferAccepted
+func CallStatePTransferAccepted() *CallState {
+ v := CallStateVTransferAccepted
+ return &v
+}
+
+// CallStatePRedirecting returns a pointer to CallStateVRedirecting
+func CallStatePRedirecting() *CallState {
+ v := CallStateVRedirecting
+ return &v
+}
+
+// CallStatePTerminating returns a pointer to CallStateVTerminating
+func CallStatePTerminating() *CallState {
+ v := CallStateVTerminating
+ return &v
+}
+
+// CallStatePTerminated returns a pointer to CallStateVTerminated
+func CallStatePTerminated() *CallState {
+ v := CallStateVTerminated
+ return &v
+}
+
+// CallStatePUnknownFutureValue returns a pointer to CallStateVUnknownFutureValue
+func CallStatePUnknownFutureValue() *CallState {
+ v := CallStateVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CancelMediaProcessingOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CancelMediaProcessingOperationModel.go
new file mode 100644
index 00000000..a61dc475
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CancelMediaProcessingOperationModel.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/matterbridge/msgraph.go/beta/CartToClassAssociationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CartToClassAssociationModel.go
new file mode 100644
index 00000000..a719a6a3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CartToClassAssociationModel.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/matterbridge/msgraph.go/beta/CartToClassAssociationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CartToClassAssociationRequest.go
new file mode 100644
index 00000000..3e31d71e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CartToClassAssociationRequest.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/matterbridge/msgraph.go/beta/CategoryColorEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CategoryColorEnum.go
new file mode 100644
index 00000000..f941ceaf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CategoryColorEnum.go
@@ -0,0 +1,217 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CategoryColor undocumented
+type CategoryColor int
+
+const (
+ // CategoryColorVPreset0 undocumented
+ CategoryColorVPreset0 CategoryColor = 0
+ // CategoryColorVPreset1 undocumented
+ CategoryColorVPreset1 CategoryColor = 1
+ // CategoryColorVPreset2 undocumented
+ CategoryColorVPreset2 CategoryColor = 2
+ // CategoryColorVPreset3 undocumented
+ CategoryColorVPreset3 CategoryColor = 3
+ // CategoryColorVPreset4 undocumented
+ CategoryColorVPreset4 CategoryColor = 4
+ // CategoryColorVPreset5 undocumented
+ CategoryColorVPreset5 CategoryColor = 5
+ // CategoryColorVPreset6 undocumented
+ CategoryColorVPreset6 CategoryColor = 6
+ // CategoryColorVPreset7 undocumented
+ CategoryColorVPreset7 CategoryColor = 7
+ // CategoryColorVPreset8 undocumented
+ CategoryColorVPreset8 CategoryColor = 8
+ // CategoryColorVPreset9 undocumented
+ CategoryColorVPreset9 CategoryColor = 9
+ // CategoryColorVPreset10 undocumented
+ CategoryColorVPreset10 CategoryColor = 10
+ // CategoryColorVPreset11 undocumented
+ CategoryColorVPreset11 CategoryColor = 11
+ // CategoryColorVPreset12 undocumented
+ CategoryColorVPreset12 CategoryColor = 12
+ // CategoryColorVPreset13 undocumented
+ CategoryColorVPreset13 CategoryColor = 13
+ // CategoryColorVPreset14 undocumented
+ CategoryColorVPreset14 CategoryColor = 14
+ // CategoryColorVPreset15 undocumented
+ CategoryColorVPreset15 CategoryColor = 15
+ // CategoryColorVPreset16 undocumented
+ CategoryColorVPreset16 CategoryColor = 16
+ // CategoryColorVPreset17 undocumented
+ CategoryColorVPreset17 CategoryColor = 17
+ // CategoryColorVPreset18 undocumented
+ CategoryColorVPreset18 CategoryColor = 18
+ // CategoryColorVPreset19 undocumented
+ CategoryColorVPreset19 CategoryColor = 19
+ // CategoryColorVPreset20 undocumented
+ CategoryColorVPreset20 CategoryColor = 20
+ // CategoryColorVPreset21 undocumented
+ CategoryColorVPreset21 CategoryColor = 21
+ // CategoryColorVPreset22 undocumented
+ CategoryColorVPreset22 CategoryColor = 22
+ // CategoryColorVPreset23 undocumented
+ CategoryColorVPreset23 CategoryColor = 23
+ // CategoryColorVPreset24 undocumented
+ CategoryColorVPreset24 CategoryColor = 24
+ // CategoryColorVNone undocumented
+ CategoryColorVNone CategoryColor = -1
+)
+
+// CategoryColorPPreset0 returns a pointer to CategoryColorVPreset0
+func CategoryColorPPreset0() *CategoryColor {
+ v := CategoryColorVPreset0
+ return &v
+}
+
+// CategoryColorPPreset1 returns a pointer to CategoryColorVPreset1
+func CategoryColorPPreset1() *CategoryColor {
+ v := CategoryColorVPreset1
+ return &v
+}
+
+// CategoryColorPPreset2 returns a pointer to CategoryColorVPreset2
+func CategoryColorPPreset2() *CategoryColor {
+ v := CategoryColorVPreset2
+ return &v
+}
+
+// CategoryColorPPreset3 returns a pointer to CategoryColorVPreset3
+func CategoryColorPPreset3() *CategoryColor {
+ v := CategoryColorVPreset3
+ return &v
+}
+
+// CategoryColorPPreset4 returns a pointer to CategoryColorVPreset4
+func CategoryColorPPreset4() *CategoryColor {
+ v := CategoryColorVPreset4
+ return &v
+}
+
+// CategoryColorPPreset5 returns a pointer to CategoryColorVPreset5
+func CategoryColorPPreset5() *CategoryColor {
+ v := CategoryColorVPreset5
+ return &v
+}
+
+// CategoryColorPPreset6 returns a pointer to CategoryColorVPreset6
+func CategoryColorPPreset6() *CategoryColor {
+ v := CategoryColorVPreset6
+ return &v
+}
+
+// CategoryColorPPreset7 returns a pointer to CategoryColorVPreset7
+func CategoryColorPPreset7() *CategoryColor {
+ v := CategoryColorVPreset7
+ return &v
+}
+
+// CategoryColorPPreset8 returns a pointer to CategoryColorVPreset8
+func CategoryColorPPreset8() *CategoryColor {
+ v := CategoryColorVPreset8
+ return &v
+}
+
+// CategoryColorPPreset9 returns a pointer to CategoryColorVPreset9
+func CategoryColorPPreset9() *CategoryColor {
+ v := CategoryColorVPreset9
+ return &v
+}
+
+// CategoryColorPPreset10 returns a pointer to CategoryColorVPreset10
+func CategoryColorPPreset10() *CategoryColor {
+ v := CategoryColorVPreset10
+ return &v
+}
+
+// CategoryColorPPreset11 returns a pointer to CategoryColorVPreset11
+func CategoryColorPPreset11() *CategoryColor {
+ v := CategoryColorVPreset11
+ return &v
+}
+
+// CategoryColorPPreset12 returns a pointer to CategoryColorVPreset12
+func CategoryColorPPreset12() *CategoryColor {
+ v := CategoryColorVPreset12
+ return &v
+}
+
+// CategoryColorPPreset13 returns a pointer to CategoryColorVPreset13
+func CategoryColorPPreset13() *CategoryColor {
+ v := CategoryColorVPreset13
+ return &v
+}
+
+// CategoryColorPPreset14 returns a pointer to CategoryColorVPreset14
+func CategoryColorPPreset14() *CategoryColor {
+ v := CategoryColorVPreset14
+ return &v
+}
+
+// CategoryColorPPreset15 returns a pointer to CategoryColorVPreset15
+func CategoryColorPPreset15() *CategoryColor {
+ v := CategoryColorVPreset15
+ return &v
+}
+
+// CategoryColorPPreset16 returns a pointer to CategoryColorVPreset16
+func CategoryColorPPreset16() *CategoryColor {
+ v := CategoryColorVPreset16
+ return &v
+}
+
+// CategoryColorPPreset17 returns a pointer to CategoryColorVPreset17
+func CategoryColorPPreset17() *CategoryColor {
+ v := CategoryColorVPreset17
+ return &v
+}
+
+// CategoryColorPPreset18 returns a pointer to CategoryColorVPreset18
+func CategoryColorPPreset18() *CategoryColor {
+ v := CategoryColorVPreset18
+ return &v
+}
+
+// CategoryColorPPreset19 returns a pointer to CategoryColorVPreset19
+func CategoryColorPPreset19() *CategoryColor {
+ v := CategoryColorVPreset19
+ return &v
+}
+
+// CategoryColorPPreset20 returns a pointer to CategoryColorVPreset20
+func CategoryColorPPreset20() *CategoryColor {
+ v := CategoryColorVPreset20
+ return &v
+}
+
+// CategoryColorPPreset21 returns a pointer to CategoryColorVPreset21
+func CategoryColorPPreset21() *CategoryColor {
+ v := CategoryColorVPreset21
+ return &v
+}
+
+// CategoryColorPPreset22 returns a pointer to CategoryColorVPreset22
+func CategoryColorPPreset22() *CategoryColor {
+ v := CategoryColorVPreset22
+ return &v
+}
+
+// CategoryColorPPreset23 returns a pointer to CategoryColorVPreset23
+func CategoryColorPPreset23() *CategoryColor {
+ v := CategoryColorVPreset23
+ return &v
+}
+
+// CategoryColorPPreset24 returns a pointer to CategoryColorVPreset24
+func CategoryColorPPreset24() *CategoryColor {
+ v := CategoryColorVPreset24
+ return &v
+}
+
+// CategoryColorPNone returns a pointer to CategoryColorVNone
+func CategoryColorPNone() *CategoryColor {
+ v := CategoryColorVNone
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateAuthorityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateAuthorityModel.go
new file mode 100644
index 00000000..7b5abd22
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateAuthorityModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateBasedAuthConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateBasedAuthConfigurationModel.go
new file mode 100644
index 00000000..5200321e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateBasedAuthConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateBasedAuthConfiguration undocumented
+type CertificateBasedAuthConfiguration struct {
+ // Entity is the base model of CertificateBasedAuthConfiguration
+ Entity
+ // CertificateAuthorities undocumented
+ CertificateAuthorities []CertificateAuthority `json:"certificateAuthorities,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateBasedAuthConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateBasedAuthConfigurationRequest.go
new file mode 100644
index 00000000..d5f5e4e7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateBasedAuthConfigurationRequest.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/matterbridge/msgraph.go/beta/CertificateConnectorSettingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateConnectorSettingModel.go
new file mode 100644
index 00000000..ad5aef62
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateConnectorSettingModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/CertificateDestinationStoreEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateDestinationStoreEnum.go
new file mode 100644
index 00000000..baa56c9e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateDestinationStoreEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateDestinationStore undocumented
+type CertificateDestinationStore int
+
+const (
+ // CertificateDestinationStoreVComputerCertStoreRoot undocumented
+ CertificateDestinationStoreVComputerCertStoreRoot CertificateDestinationStore = 0
+ // CertificateDestinationStoreVComputerCertStoreIntermediate undocumented
+ CertificateDestinationStoreVComputerCertStoreIntermediate CertificateDestinationStore = 1
+ // CertificateDestinationStoreVUserCertStoreIntermediate undocumented
+ CertificateDestinationStoreVUserCertStoreIntermediate CertificateDestinationStore = 2
+)
+
+// CertificateDestinationStorePComputerCertStoreRoot returns a pointer to CertificateDestinationStoreVComputerCertStoreRoot
+func CertificateDestinationStorePComputerCertStoreRoot() *CertificateDestinationStore {
+ v := CertificateDestinationStoreVComputerCertStoreRoot
+ return &v
+}
+
+// CertificateDestinationStorePComputerCertStoreIntermediate returns a pointer to CertificateDestinationStoreVComputerCertStoreIntermediate
+func CertificateDestinationStorePComputerCertStoreIntermediate() *CertificateDestinationStore {
+ v := CertificateDestinationStoreVComputerCertStoreIntermediate
+ return &v
+}
+
+// CertificateDestinationStorePUserCertStoreIntermediate returns a pointer to CertificateDestinationStoreVUserCertStoreIntermediate
+func CertificateDestinationStorePUserCertStoreIntermediate() *CertificateDestinationStore {
+ v := CertificateDestinationStoreVUserCertStoreIntermediate
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateIssuanceStatesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateIssuanceStatesEnum.go
new file mode 100644
index 00000000..c4b74841
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateIssuanceStatesEnum.go
@@ -0,0 +1,193 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateIssuanceStates undocumented
+type CertificateIssuanceStates int
+
+const (
+ // CertificateIssuanceStatesVUnknown undocumented
+ CertificateIssuanceStatesVUnknown CertificateIssuanceStates = 0
+ // CertificateIssuanceStatesVChallengeIssued undocumented
+ CertificateIssuanceStatesVChallengeIssued CertificateIssuanceStates = 1
+ // CertificateIssuanceStatesVChallengeIssueFailed undocumented
+ CertificateIssuanceStatesVChallengeIssueFailed CertificateIssuanceStates = 2
+ // CertificateIssuanceStatesVRequestCreationFailed undocumented
+ CertificateIssuanceStatesVRequestCreationFailed CertificateIssuanceStates = 3
+ // CertificateIssuanceStatesVRequestSubmitFailed undocumented
+ CertificateIssuanceStatesVRequestSubmitFailed CertificateIssuanceStates = 4
+ // CertificateIssuanceStatesVChallengeValidationSucceeded undocumented
+ CertificateIssuanceStatesVChallengeValidationSucceeded CertificateIssuanceStates = 5
+ // CertificateIssuanceStatesVChallengeValidationFailed undocumented
+ CertificateIssuanceStatesVChallengeValidationFailed CertificateIssuanceStates = 6
+ // CertificateIssuanceStatesVIssueFailed undocumented
+ CertificateIssuanceStatesVIssueFailed CertificateIssuanceStates = 7
+ // CertificateIssuanceStatesVIssuePending undocumented
+ CertificateIssuanceStatesVIssuePending CertificateIssuanceStates = 8
+ // CertificateIssuanceStatesVIssued undocumented
+ CertificateIssuanceStatesVIssued CertificateIssuanceStates = 9
+ // CertificateIssuanceStatesVResponseProcessingFailed undocumented
+ CertificateIssuanceStatesVResponseProcessingFailed CertificateIssuanceStates = 10
+ // CertificateIssuanceStatesVResponsePending undocumented
+ CertificateIssuanceStatesVResponsePending CertificateIssuanceStates = 11
+ // CertificateIssuanceStatesVEnrollmentSucceeded undocumented
+ CertificateIssuanceStatesVEnrollmentSucceeded CertificateIssuanceStates = 12
+ // CertificateIssuanceStatesVEnrollmentNotNeeded undocumented
+ CertificateIssuanceStatesVEnrollmentNotNeeded CertificateIssuanceStates = 13
+ // CertificateIssuanceStatesVRevoked undocumented
+ CertificateIssuanceStatesVRevoked CertificateIssuanceStates = 14
+ // CertificateIssuanceStatesVRemovedFromCollection undocumented
+ CertificateIssuanceStatesVRemovedFromCollection CertificateIssuanceStates = 15
+ // CertificateIssuanceStatesVRenewVerified undocumented
+ CertificateIssuanceStatesVRenewVerified CertificateIssuanceStates = 16
+ // CertificateIssuanceStatesVInstallFailed undocumented
+ CertificateIssuanceStatesVInstallFailed CertificateIssuanceStates = 17
+ // CertificateIssuanceStatesVInstalled undocumented
+ CertificateIssuanceStatesVInstalled CertificateIssuanceStates = 18
+ // CertificateIssuanceStatesVDeleteFailed undocumented
+ CertificateIssuanceStatesVDeleteFailed CertificateIssuanceStates = 19
+ // CertificateIssuanceStatesVDeleted undocumented
+ CertificateIssuanceStatesVDeleted CertificateIssuanceStates = 20
+ // CertificateIssuanceStatesVRenewalRequested undocumented
+ CertificateIssuanceStatesVRenewalRequested CertificateIssuanceStates = 21
+ // CertificateIssuanceStatesVRequested undocumented
+ CertificateIssuanceStatesVRequested CertificateIssuanceStates = 22
+)
+
+// CertificateIssuanceStatesPUnknown returns a pointer to CertificateIssuanceStatesVUnknown
+func CertificateIssuanceStatesPUnknown() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVUnknown
+ return &v
+}
+
+// CertificateIssuanceStatesPChallengeIssued returns a pointer to CertificateIssuanceStatesVChallengeIssued
+func CertificateIssuanceStatesPChallengeIssued() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVChallengeIssued
+ return &v
+}
+
+// CertificateIssuanceStatesPChallengeIssueFailed returns a pointer to CertificateIssuanceStatesVChallengeIssueFailed
+func CertificateIssuanceStatesPChallengeIssueFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVChallengeIssueFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPRequestCreationFailed returns a pointer to CertificateIssuanceStatesVRequestCreationFailed
+func CertificateIssuanceStatesPRequestCreationFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVRequestCreationFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPRequestSubmitFailed returns a pointer to CertificateIssuanceStatesVRequestSubmitFailed
+func CertificateIssuanceStatesPRequestSubmitFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVRequestSubmitFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPChallengeValidationSucceeded returns a pointer to CertificateIssuanceStatesVChallengeValidationSucceeded
+func CertificateIssuanceStatesPChallengeValidationSucceeded() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVChallengeValidationSucceeded
+ return &v
+}
+
+// CertificateIssuanceStatesPChallengeValidationFailed returns a pointer to CertificateIssuanceStatesVChallengeValidationFailed
+func CertificateIssuanceStatesPChallengeValidationFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVChallengeValidationFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPIssueFailed returns a pointer to CertificateIssuanceStatesVIssueFailed
+func CertificateIssuanceStatesPIssueFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVIssueFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPIssuePending returns a pointer to CertificateIssuanceStatesVIssuePending
+func CertificateIssuanceStatesPIssuePending() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVIssuePending
+ return &v
+}
+
+// CertificateIssuanceStatesPIssued returns a pointer to CertificateIssuanceStatesVIssued
+func CertificateIssuanceStatesPIssued() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVIssued
+ return &v
+}
+
+// CertificateIssuanceStatesPResponseProcessingFailed returns a pointer to CertificateIssuanceStatesVResponseProcessingFailed
+func CertificateIssuanceStatesPResponseProcessingFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVResponseProcessingFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPResponsePending returns a pointer to CertificateIssuanceStatesVResponsePending
+func CertificateIssuanceStatesPResponsePending() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVResponsePending
+ return &v
+}
+
+// CertificateIssuanceStatesPEnrollmentSucceeded returns a pointer to CertificateIssuanceStatesVEnrollmentSucceeded
+func CertificateIssuanceStatesPEnrollmentSucceeded() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVEnrollmentSucceeded
+ return &v
+}
+
+// CertificateIssuanceStatesPEnrollmentNotNeeded returns a pointer to CertificateIssuanceStatesVEnrollmentNotNeeded
+func CertificateIssuanceStatesPEnrollmentNotNeeded() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVEnrollmentNotNeeded
+ return &v
+}
+
+// CertificateIssuanceStatesPRevoked returns a pointer to CertificateIssuanceStatesVRevoked
+func CertificateIssuanceStatesPRevoked() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVRevoked
+ return &v
+}
+
+// CertificateIssuanceStatesPRemovedFromCollection returns a pointer to CertificateIssuanceStatesVRemovedFromCollection
+func CertificateIssuanceStatesPRemovedFromCollection() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVRemovedFromCollection
+ return &v
+}
+
+// CertificateIssuanceStatesPRenewVerified returns a pointer to CertificateIssuanceStatesVRenewVerified
+func CertificateIssuanceStatesPRenewVerified() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVRenewVerified
+ return &v
+}
+
+// CertificateIssuanceStatesPInstallFailed returns a pointer to CertificateIssuanceStatesVInstallFailed
+func CertificateIssuanceStatesPInstallFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVInstallFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPInstalled returns a pointer to CertificateIssuanceStatesVInstalled
+func CertificateIssuanceStatesPInstalled() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVInstalled
+ return &v
+}
+
+// CertificateIssuanceStatesPDeleteFailed returns a pointer to CertificateIssuanceStatesVDeleteFailed
+func CertificateIssuanceStatesPDeleteFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVDeleteFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPDeleted returns a pointer to CertificateIssuanceStatesVDeleted
+func CertificateIssuanceStatesPDeleted() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVDeleted
+ return &v
+}
+
+// CertificateIssuanceStatesPRenewalRequested returns a pointer to CertificateIssuanceStatesVRenewalRequested
+func CertificateIssuanceStatesPRenewalRequested() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVRenewalRequested
+ return &v
+}
+
+// CertificateIssuanceStatesPRequested returns a pointer to CertificateIssuanceStatesVRequested
+func CertificateIssuanceStatesPRequested() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVRequested
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateRevocationStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateRevocationStatusEnum.go
new file mode 100644
index 00000000..f7a11375
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateRevocationStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateRevocationStatus undocumented
+type CertificateRevocationStatus int
+
+const (
+ // CertificateRevocationStatusVNone undocumented
+ CertificateRevocationStatusVNone CertificateRevocationStatus = 0
+ // CertificateRevocationStatusVPending undocumented
+ CertificateRevocationStatusVPending CertificateRevocationStatus = 1
+ // CertificateRevocationStatusVIssued undocumented
+ CertificateRevocationStatusVIssued CertificateRevocationStatus = 2
+ // CertificateRevocationStatusVFailed undocumented
+ CertificateRevocationStatusVFailed CertificateRevocationStatus = 3
+ // CertificateRevocationStatusVRevoked undocumented
+ CertificateRevocationStatusVRevoked CertificateRevocationStatus = 4
+)
+
+// CertificateRevocationStatusPNone returns a pointer to CertificateRevocationStatusVNone
+func CertificateRevocationStatusPNone() *CertificateRevocationStatus {
+ v := CertificateRevocationStatusVNone
+ return &v
+}
+
+// CertificateRevocationStatusPPending returns a pointer to CertificateRevocationStatusVPending
+func CertificateRevocationStatusPPending() *CertificateRevocationStatus {
+ v := CertificateRevocationStatusVPending
+ return &v
+}
+
+// CertificateRevocationStatusPIssued returns a pointer to CertificateRevocationStatusVIssued
+func CertificateRevocationStatusPIssued() *CertificateRevocationStatus {
+ v := CertificateRevocationStatusVIssued
+ return &v
+}
+
+// CertificateRevocationStatusPFailed returns a pointer to CertificateRevocationStatusVFailed
+func CertificateRevocationStatusPFailed() *CertificateRevocationStatus {
+ v := CertificateRevocationStatusVFailed
+ return &v
+}
+
+// CertificateRevocationStatusPRevoked returns a pointer to CertificateRevocationStatusVRevoked
+func CertificateRevocationStatusPRevoked() *CertificateRevocationStatus {
+ v := CertificateRevocationStatusVRevoked
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateStatusEnum.go
new file mode 100644
index 00000000..a38e8b4e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateStatusEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateStatus undocumented
+type CertificateStatus int
+
+const (
+ // CertificateStatusVNotProvisioned undocumented
+ CertificateStatusVNotProvisioned CertificateStatus = 0
+ // CertificateStatusVProvisioned undocumented
+ CertificateStatusVProvisioned CertificateStatus = 1
+)
+
+// CertificateStatusPNotProvisioned returns a pointer to CertificateStatusVNotProvisioned
+func CertificateStatusPNotProvisioned() *CertificateStatus {
+ v := CertificateStatusVNotProvisioned
+ return &v
+}
+
+// CertificateStatusPProvisioned returns a pointer to CertificateStatusVProvisioned
+func CertificateStatusPProvisioned() *CertificateStatus {
+ v := CertificateStatusVProvisioned
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateStoreEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateStoreEnum.go
new file mode 100644
index 00000000..877b6af3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateStoreEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateStore undocumented
+type CertificateStore int
+
+const (
+ // CertificateStoreVUser undocumented
+ CertificateStoreVUser CertificateStore = 1
+ // CertificateStoreVMachine undocumented
+ CertificateStoreVMachine CertificateStore = 2
+)
+
+// CertificateStorePUser returns a pointer to CertificateStoreVUser
+func CertificateStorePUser() *CertificateStore {
+ v := CertificateStoreVUser
+ return &v
+}
+
+// CertificateStorePMachine returns a pointer to CertificateStoreVMachine
+func CertificateStorePMachine() *CertificateStore {
+ v := CertificateStoreVMachine
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateValidityPeriodScaleEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateValidityPeriodScaleEnum.go
new file mode 100644
index 00000000..191f8df7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateValidityPeriodScaleEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateValidityPeriodScale undocumented
+type CertificateValidityPeriodScale int
+
+const (
+ // CertificateValidityPeriodScaleVDays undocumented
+ CertificateValidityPeriodScaleVDays CertificateValidityPeriodScale = 0
+ // CertificateValidityPeriodScaleVMonths undocumented
+ CertificateValidityPeriodScaleVMonths CertificateValidityPeriodScale = 1
+ // CertificateValidityPeriodScaleVYears undocumented
+ CertificateValidityPeriodScaleVYears CertificateValidityPeriodScale = 2
+)
+
+// CertificateValidityPeriodScalePDays returns a pointer to CertificateValidityPeriodScaleVDays
+func CertificateValidityPeriodScalePDays() *CertificateValidityPeriodScale {
+ v := CertificateValidityPeriodScaleVDays
+ return &v
+}
+
+// CertificateValidityPeriodScalePMonths returns a pointer to CertificateValidityPeriodScaleVMonths
+func CertificateValidityPeriodScalePMonths() *CertificateValidityPeriodScale {
+ v := CertificateValidityPeriodScaleVMonths
+ return &v
+}
+
+// CertificateValidityPeriodScalePYears returns a pointer to CertificateValidityPeriodScaleVYears
+func CertificateValidityPeriodScalePYears() *CertificateValidityPeriodScale {
+ v := CertificateValidityPeriodScaleVYears
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CertificationControlModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CertificationControlModel.go
new file mode 100644
index 00000000..35d8e177
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CertificationControlModel.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/matterbridge/msgraph.go/beta/ChangeTrackedEntityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChangeTrackedEntityModel.go
new file mode 100644
index 00000000..15532f2b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChangeTrackedEntityModel.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/matterbridge/msgraph.go/beta/ChangeTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChangeTypeEnum.go
new file mode 100644
index 00000000..1d91383a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChangeTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChangeType undocumented
+type ChangeType int
+
+const (
+ // ChangeTypeVCreated undocumented
+ ChangeTypeVCreated ChangeType = 0
+ // ChangeTypeVUpdated undocumented
+ ChangeTypeVUpdated ChangeType = 1
+ // ChangeTypeVDeleted undocumented
+ ChangeTypeVDeleted ChangeType = 2
+)
+
+// ChangeTypePCreated returns a pointer to ChangeTypeVCreated
+func ChangeTypePCreated() *ChangeType {
+ v := ChangeTypeVCreated
+ return &v
+}
+
+// ChangeTypePUpdated returns a pointer to ChangeTypeVUpdated
+func ChangeTypePUpdated() *ChangeType {
+ v := ChangeTypeVUpdated
+ return &v
+}
+
+// ChangeTypePDeleted returns a pointer to ChangeTypeVDeleted
+func ChangeTypePDeleted() *ChangeType {
+ v := ChangeTypeVDeleted
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChangeUefiSettingsPermissionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChangeUefiSettingsPermissionEnum.go
new file mode 100644
index 00000000..0237e92a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChangeUefiSettingsPermissionEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChangeUefiSettingsPermission undocumented
+type ChangeUefiSettingsPermission int
+
+const (
+ // ChangeUefiSettingsPermissionVNotConfiguredOnly undocumented
+ ChangeUefiSettingsPermissionVNotConfiguredOnly ChangeUefiSettingsPermission = 0
+ // ChangeUefiSettingsPermissionVNone undocumented
+ ChangeUefiSettingsPermissionVNone ChangeUefiSettingsPermission = 1
+)
+
+// ChangeUefiSettingsPermissionPNotConfiguredOnly returns a pointer to ChangeUefiSettingsPermissionVNotConfiguredOnly
+func ChangeUefiSettingsPermissionPNotConfiguredOnly() *ChangeUefiSettingsPermission {
+ v := ChangeUefiSettingsPermissionVNotConfiguredOnly
+ return &v
+}
+
+// ChangeUefiSettingsPermissionPNone returns a pointer to ChangeUefiSettingsPermissionVNone
+func ChangeUefiSettingsPermissionPNone() *ChangeUefiSettingsPermission {
+ v := ChangeUefiSettingsPermissionVNone
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChannelMembershipTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChannelMembershipTypeEnum.go
new file mode 100644
index 00000000..63bde192
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChannelMembershipTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChannelMembershipType undocumented
+type ChannelMembershipType int
+
+const (
+ // ChannelMembershipTypeVStandard undocumented
+ ChannelMembershipTypeVStandard ChannelMembershipType = 0
+ // ChannelMembershipTypeVPrivate undocumented
+ ChannelMembershipTypeVPrivate ChannelMembershipType = 1
+ // ChannelMembershipTypeVUnknownFutureValue undocumented
+ ChannelMembershipTypeVUnknownFutureValue ChannelMembershipType = 2
+)
+
+// ChannelMembershipTypePStandard returns a pointer to ChannelMembershipTypeVStandard
+func ChannelMembershipTypePStandard() *ChannelMembershipType {
+ v := ChannelMembershipTypeVStandard
+ return &v
+}
+
+// ChannelMembershipTypePPrivate returns a pointer to ChannelMembershipTypeVPrivate
+func ChannelMembershipTypePPrivate() *ChannelMembershipType {
+ v := ChannelMembershipTypeVPrivate
+ return &v
+}
+
+// ChannelMembershipTypePUnknownFutureValue returns a pointer to ChannelMembershipTypeVUnknownFutureValue
+func ChannelMembershipTypePUnknownFutureValue() *ChannelMembershipType {
+ v := ChannelMembershipTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChannelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChannelModel.go
new file mode 100644
index 00000000..033e5907
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChannelModel.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/matterbridge/msgraph.go/beta/ChannelRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChannelRequest.go
new file mode 100644
index 00000000..35ac0ba0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChannelRequest.go
@@ -0,0 +1,334 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ConversationMember collection
+func (r *ChannelMembersCollectionRequest) Get(ctx context.Context) ([]ConversationMember, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ChatMessage collection
+func (r *ChannelMessagesCollectionRequest) Get(ctx context.Context) ([]ChatMessage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsTab collection
+func (r *ChannelTabsCollectionRequest) Get(ctx context.Context) ([]TeamsTab, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ChassisTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChassisTypeEnum.go
new file mode 100644
index 00000000..16a43425
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChassisTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChassisType undocumented
+type ChassisType int
+
+const (
+ // ChassisTypeVUnknown undocumented
+ ChassisTypeVUnknown ChassisType = 0
+ // ChassisTypeVDesktop undocumented
+ ChassisTypeVDesktop ChassisType = 1
+ // ChassisTypeVLaptop undocumented
+ ChassisTypeVLaptop ChassisType = 2
+ // ChassisTypeVWorksWorkstation undocumented
+ ChassisTypeVWorksWorkstation ChassisType = 3
+ // ChassisTypeVEnterpriseServer undocumented
+ ChassisTypeVEnterpriseServer ChassisType = 4
+ // ChassisTypeVPhone undocumented
+ ChassisTypeVPhone ChassisType = 100
+ // ChassisTypeVTablet undocumented
+ ChassisTypeVTablet ChassisType = 101
+ // ChassisTypeVMobileOther undocumented
+ ChassisTypeVMobileOther ChassisType = 102
+ // ChassisTypeVMobileUnknown undocumented
+ ChassisTypeVMobileUnknown ChassisType = 103
+)
+
+// ChassisTypePUnknown returns a pointer to ChassisTypeVUnknown
+func ChassisTypePUnknown() *ChassisType {
+ v := ChassisTypeVUnknown
+ return &v
+}
+
+// ChassisTypePDesktop returns a pointer to ChassisTypeVDesktop
+func ChassisTypePDesktop() *ChassisType {
+ v := ChassisTypeVDesktop
+ return &v
+}
+
+// ChassisTypePLaptop returns a pointer to ChassisTypeVLaptop
+func ChassisTypePLaptop() *ChassisType {
+ v := ChassisTypeVLaptop
+ return &v
+}
+
+// ChassisTypePWorksWorkstation returns a pointer to ChassisTypeVWorksWorkstation
+func ChassisTypePWorksWorkstation() *ChassisType {
+ v := ChassisTypeVWorksWorkstation
+ return &v
+}
+
+// ChassisTypePEnterpriseServer returns a pointer to ChassisTypeVEnterpriseServer
+func ChassisTypePEnterpriseServer() *ChassisType {
+ v := ChassisTypeVEnterpriseServer
+ return &v
+}
+
+// ChassisTypePPhone returns a pointer to ChassisTypeVPhone
+func ChassisTypePPhone() *ChassisType {
+ v := ChassisTypeVPhone
+ return &v
+}
+
+// ChassisTypePTablet returns a pointer to ChassisTypeVTablet
+func ChassisTypePTablet() *ChassisType {
+ v := ChassisTypeVTablet
+ return &v
+}
+
+// ChassisTypePMobileOther returns a pointer to ChassisTypeVMobileOther
+func ChassisTypePMobileOther() *ChassisType {
+ v := ChassisTypeVMobileOther
+ return &v
+}
+
+// ChassisTypePMobileUnknown returns a pointer to ChassisTypeVMobileUnknown
+func ChassisTypePMobileUnknown() *ChassisType {
+ v := ChassisTypeVMobileUnknown
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatActivityStatisticsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatActivityStatisticsModel.go
new file mode 100644
index 00000000..0f3cff90
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatActivityStatisticsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ChatActivityStatistics undocumented
+type ChatActivityStatistics struct {
+ // ActivityStatistics is the base model of ChatActivityStatistics
+ ActivityStatistics
+ // AfterHours undocumented
+ AfterHours *time.Duration `json:"afterHours,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatInfoModel.go
new file mode 100644
index 00000000..d3f29468
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatInfoModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMembersNotificationAudienceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMembersNotificationAudienceModel.go
new file mode 100644
index 00000000..056a4108
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMembersNotificationAudienceModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMembersNotificationAudience undocumented
+type ChatMembersNotificationAudience struct {
+ // Object is the base model of ChatMembersNotificationAudience
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageAttachmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageAttachmentModel.go
new file mode 100644
index 00000000..d52cd5cd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageAttachmentModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageHostedContentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageHostedContentModel.go
new file mode 100644
index 00000000..48a275c7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageHostedContentModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessageHostedContent undocumented
+type ChatMessageHostedContent struct {
+ // Entity is the base model of ChatMessageHostedContent
+ Entity
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageHostedContentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageHostedContentRequest.go
new file mode 100644
index 00000000..8ad616db
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageHostedContentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/ChatMessageImportanceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageImportanceEnum.go
new file mode 100644
index 00000000..769ca19e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageImportanceEnum.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessageImportance undocumented
+type ChatMessageImportance string
+
+/*
+
+const (
+ // ChatMessageImportanceVNormal undocumented
+ ChatMessageImportanceVNormal ChatMessageImportance = 0
+ // ChatMessageImportanceVHigh undocumented
+ ChatMessageImportanceVHigh ChatMessageImportance = 1
+ // ChatMessageImportanceVUrgent undocumented
+ ChatMessageImportanceVUrgent ChatMessageImportance = 2
+)
+
+// ChatMessageImportancePNormal returns a pointer to ChatMessageImportanceVNormal
+func ChatMessageImportancePNormal() *ChatMessageImportance {
+ v := ChatMessageImportanceVNormal
+ return &v
+}
+
+// ChatMessageImportancePHigh returns a pointer to ChatMessageImportanceVHigh
+func ChatMessageImportancePHigh() *ChatMessageImportance {
+ v := ChatMessageImportanceVHigh
+ return &v
+}
+
+// ChatMessageImportancePUrgent returns a pointer to ChatMessageImportanceVUrgent
+func ChatMessageImportancePUrgent() *ChatMessageImportance {
+ v := ChatMessageImportanceVUrgent
+ return &v
+}
+*/
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageMentionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageMentionModel.go
new file mode 100644
index 00000000..64d2d0a9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageMentionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageModel.go
new file mode 100644
index 00000000..051c2bd5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationDlpActionTypesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationDlpActionTypesEnum.go
new file mode 100644
index 00000000..6cdac306
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationDlpActionTypesEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessagePolicyViolationDlpActionTypes undocumented
+type ChatMessagePolicyViolationDlpActionTypes int
+
+const (
+ // ChatMessagePolicyViolationDlpActionTypesVNone undocumented
+ ChatMessagePolicyViolationDlpActionTypesVNone ChatMessagePolicyViolationDlpActionTypes = 0
+ // ChatMessagePolicyViolationDlpActionTypesVNotifySender undocumented
+ ChatMessagePolicyViolationDlpActionTypesVNotifySender ChatMessagePolicyViolationDlpActionTypes = 1
+ // ChatMessagePolicyViolationDlpActionTypesVBlockAccess undocumented
+ ChatMessagePolicyViolationDlpActionTypesVBlockAccess ChatMessagePolicyViolationDlpActionTypes = 2
+ // ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal undocumented
+ ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal ChatMessagePolicyViolationDlpActionTypes = 4
+)
+
+// ChatMessagePolicyViolationDlpActionTypesPNone returns a pointer to ChatMessagePolicyViolationDlpActionTypesVNone
+func ChatMessagePolicyViolationDlpActionTypesPNone() *ChatMessagePolicyViolationDlpActionTypes {
+ v := ChatMessagePolicyViolationDlpActionTypesVNone
+ return &v
+}
+
+// ChatMessagePolicyViolationDlpActionTypesPNotifySender returns a pointer to ChatMessagePolicyViolationDlpActionTypesVNotifySender
+func ChatMessagePolicyViolationDlpActionTypesPNotifySender() *ChatMessagePolicyViolationDlpActionTypes {
+ v := ChatMessagePolicyViolationDlpActionTypesVNotifySender
+ return &v
+}
+
+// ChatMessagePolicyViolationDlpActionTypesPBlockAccess returns a pointer to ChatMessagePolicyViolationDlpActionTypesVBlockAccess
+func ChatMessagePolicyViolationDlpActionTypesPBlockAccess() *ChatMessagePolicyViolationDlpActionTypes {
+ v := ChatMessagePolicyViolationDlpActionTypesVBlockAccess
+ return &v
+}
+
+// ChatMessagePolicyViolationDlpActionTypesPBlockAccessExternal returns a pointer to ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal
+func ChatMessagePolicyViolationDlpActionTypesPBlockAccessExternal() *ChatMessagePolicyViolationDlpActionTypes {
+ v := ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationModel.go
new file mode 100644
index 00000000..129cbdc1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationPolicyTipModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationPolicyTipModel.go
new file mode 100644
index 00000000..00856cea
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationPolicyTipModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationUserActionTypesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationUserActionTypesEnum.go
new file mode 100644
index 00000000..1117d91f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationUserActionTypesEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessagePolicyViolationUserActionTypes undocumented
+type ChatMessagePolicyViolationUserActionTypes int
+
+const (
+ // ChatMessagePolicyViolationUserActionTypesVNone undocumented
+ ChatMessagePolicyViolationUserActionTypesVNone ChatMessagePolicyViolationUserActionTypes = 0
+ // ChatMessagePolicyViolationUserActionTypesVOverride undocumented
+ ChatMessagePolicyViolationUserActionTypesVOverride ChatMessagePolicyViolationUserActionTypes = 1
+ // ChatMessagePolicyViolationUserActionTypesVReportFalsePositive undocumented
+ ChatMessagePolicyViolationUserActionTypesVReportFalsePositive ChatMessagePolicyViolationUserActionTypes = 2
+)
+
+// ChatMessagePolicyViolationUserActionTypesPNone returns a pointer to ChatMessagePolicyViolationUserActionTypesVNone
+func ChatMessagePolicyViolationUserActionTypesPNone() *ChatMessagePolicyViolationUserActionTypes {
+ v := ChatMessagePolicyViolationUserActionTypesVNone
+ return &v
+}
+
+// ChatMessagePolicyViolationUserActionTypesPOverride returns a pointer to ChatMessagePolicyViolationUserActionTypesVOverride
+func ChatMessagePolicyViolationUserActionTypesPOverride() *ChatMessagePolicyViolationUserActionTypes {
+ v := ChatMessagePolicyViolationUserActionTypesVOverride
+ return &v
+}
+
+// ChatMessagePolicyViolationUserActionTypesPReportFalsePositive returns a pointer to ChatMessagePolicyViolationUserActionTypesVReportFalsePositive
+func ChatMessagePolicyViolationUserActionTypesPReportFalsePositive() *ChatMessagePolicyViolationUserActionTypes {
+ v := ChatMessagePolicyViolationUserActionTypesVReportFalsePositive
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationVerdictDetailsTypesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationVerdictDetailsTypesEnum.go
new file mode 100644
index 00000000..5b031fb1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationVerdictDetailsTypesEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessagePolicyViolationVerdictDetailsTypes undocumented
+type ChatMessagePolicyViolationVerdictDetailsTypes int
+
+const (
+ // ChatMessagePolicyViolationVerdictDetailsTypesVNone undocumented
+ ChatMessagePolicyViolationVerdictDetailsTypesVNone ChatMessagePolicyViolationVerdictDetailsTypes = 0
+ // ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride undocumented
+ ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride ChatMessagePolicyViolationVerdictDetailsTypes = 1
+ // ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification undocumented
+ ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification ChatMessagePolicyViolationVerdictDetailsTypes = 2
+ // ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification undocumented
+ ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification ChatMessagePolicyViolationVerdictDetailsTypes = 4
+)
+
+// ChatMessagePolicyViolationVerdictDetailsTypesPNone returns a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVNone
+func ChatMessagePolicyViolationVerdictDetailsTypesPNone() *ChatMessagePolicyViolationVerdictDetailsTypes {
+ v := ChatMessagePolicyViolationVerdictDetailsTypesVNone
+ return &v
+}
+
+// ChatMessagePolicyViolationVerdictDetailsTypesPAllowFalsePositiveOverride returns a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride
+func ChatMessagePolicyViolationVerdictDetailsTypesPAllowFalsePositiveOverride() *ChatMessagePolicyViolationVerdictDetailsTypes {
+ v := ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride
+ return &v
+}
+
+// ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithoutJustification returns a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification
+func ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithoutJustification() *ChatMessagePolicyViolationVerdictDetailsTypes {
+ v := ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification
+ return &v
+}
+
+// ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithJustification returns a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification
+func ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithJustification() *ChatMessagePolicyViolationVerdictDetailsTypes {
+ v := ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageReactionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageReactionModel.go
new file mode 100644
index 00000000..3f7bb4e5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageReactionModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/ChatMessageRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageRequest.go
new file mode 100644
index 00000000..6fbb30d2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ChatMessageHostedContent collection
+func (r *ChatMessageHostedContentsCollectionRequest) Get(ctx context.Context) ([]ChatMessageHostedContent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ChatMessage collection
+func (r *ChatMessageRepliesCollectionRequest) Get(ctx context.Context) ([]ChatMessage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ChatMessageTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageTypeEnum.go
new file mode 100644
index 00000000..48a98a6b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageTypeEnum.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessageType undocumented
+type ChatMessageType string
+/*
+
+const (
+ // ChatMessageTypeVMessage undocumented
+ ChatMessageTypeVMessage ChatMessageType = 0
+ // ChatMessageTypeVChatEvent undocumented
+ ChatMessageTypeVChatEvent ChatMessageType = 1
+ // ChatMessageTypeVTyping undocumented
+ ChatMessageTypeVTyping ChatMessageType = 2
+)
+
+// ChatMessageTypePMessage returns a pointer to ChatMessageTypeVMessage
+func ChatMessageTypePMessage() *ChatMessageType {
+ v := ChatMessageTypeVMessage
+ return &v
+}
+
+// ChatMessageTypePChatEvent returns a pointer to ChatMessageTypeVChatEvent
+func ChatMessageTypePChatEvent() *ChatMessageType {
+ v := ChatMessageTypeVChatEvent
+ return &v
+}
+
+// ChatMessageTypePTyping returns a pointer to ChatMessageTypeVTyping
+func ChatMessageTypePTyping() *ChatMessageType {
+ v := ChatMessageTypeVTyping
+ return &v
+}
+*/
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatModel.go
new file mode 100644
index 00000000..2f96e52d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatModel.go
@@ -0,0 +1,23 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChatRequest.go
new file mode 100644
index 00000000..27ea08a1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChatRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsAppInstallation collection
+func (r *ChatInstalledAppsCollectionRequest) Get(ctx context.Context) ([]TeamsAppInstallation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ConversationMember collection
+func (r *ChatMembersCollectionRequest) Get(ctx context.Context) ([]ConversationMember, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ChatMessage collection
+func (r *ChatMessagesCollectionRequest) Get(ctx context.Context) ([]ChatMessage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChoiceColumnModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChoiceColumnModel.go
new file mode 100644
index 00000000..58bbc919
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ChoiceColumnModel.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/matterbridge/msgraph.go/beta/CircularGeofenceManagementConditionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CircularGeofenceManagementConditionModel.go
new file mode 100644
index 00000000..85fa9195
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CircularGeofenceManagementConditionModel.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/matterbridge/msgraph.go/beta/ClassifcationErrorBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ClassifcationErrorBaseModel.go
new file mode 100644
index 00000000..cb76c084
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ClassifcationErrorBaseModel.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/matterbridge/msgraph.go/beta/ClassificationErrorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationErrorModel.go
new file mode 100644
index 00000000..6f430008
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationErrorModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ClassificationError undocumented
+type ClassificationError struct {
+ // ClassifcationErrorBase is the base model of ClassificationError
+ ClassifcationErrorBase
+ // Details undocumented
+ Details []ClassifcationErrorBase `json:"details,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationInnerErrorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationInnerErrorModel.go
new file mode 100644
index 00000000..ed09c201
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationInnerErrorModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationJobResponseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationJobResponseModel.go
new file mode 100644
index 00000000..4e84954f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationJobResponseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ClassificationJobResponse undocumented
+type ClassificationJobResponse struct {
+ // JobResponseBase is the base model of ClassificationJobResponse
+ JobResponseBase
+ // Result undocumented
+ Result *DetectedSensitiveContentWrapper `json:"result,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationResultModel.go
new file mode 100644
index 00000000..fc5ef1a1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationResultModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ClonableTeamPartsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ClonableTeamPartsEnum.go
new file mode 100644
index 00000000..8702762f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ClonableTeamPartsEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ClonableTeamParts undocumented
+type ClonableTeamParts int
+
+const (
+ // ClonableTeamPartsVApps undocumented
+ ClonableTeamPartsVApps ClonableTeamParts = 1
+ // ClonableTeamPartsVTabs undocumented
+ ClonableTeamPartsVTabs ClonableTeamParts = 2
+ // ClonableTeamPartsVSettings undocumented
+ ClonableTeamPartsVSettings ClonableTeamParts = 4
+ // ClonableTeamPartsVChannels undocumented
+ ClonableTeamPartsVChannels ClonableTeamParts = 8
+ // ClonableTeamPartsVMembers undocumented
+ ClonableTeamPartsVMembers ClonableTeamParts = 16
+)
+
+// ClonableTeamPartsPApps returns a pointer to ClonableTeamPartsVApps
+func ClonableTeamPartsPApps() *ClonableTeamParts {
+ v := ClonableTeamPartsVApps
+ return &v
+}
+
+// ClonableTeamPartsPTabs returns a pointer to ClonableTeamPartsVTabs
+func ClonableTeamPartsPTabs() *ClonableTeamParts {
+ v := ClonableTeamPartsVTabs
+ return &v
+}
+
+// ClonableTeamPartsPSettings returns a pointer to ClonableTeamPartsVSettings
+func ClonableTeamPartsPSettings() *ClonableTeamParts {
+ v := ClonableTeamPartsVSettings
+ return &v
+}
+
+// ClonableTeamPartsPChannels returns a pointer to ClonableTeamPartsVChannels
+func ClonableTeamPartsPChannels() *ClonableTeamParts {
+ v := ClonableTeamPartsVChannels
+ return &v
+}
+
+// ClonableTeamPartsPMembers returns a pointer to ClonableTeamPartsVMembers
+func ClonableTeamPartsPMembers() *ClonableTeamParts {
+ v := ClonableTeamPartsVMembers
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityProfileModel.go
new file mode 100644
index 00000000..6a07b741
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityProfileModel.go
@@ -0,0 +1,45 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityProfileRequest.go
new file mode 100644
index 00000000..04a15964
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecuritySessionControlModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecuritySessionControlModel.go
new file mode 100644
index 00000000..ead22dbb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecuritySessionControlModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CloudAppSecuritySessionControl undocumented
+type CloudAppSecuritySessionControl struct {
+ // ConditionalAccessSessionControl is the base model of CloudAppSecuritySessionControl
+ ConditionalAccessSessionControl
+ // CloudAppSecurityType undocumented
+ CloudAppSecurityType *CloudAppSecuritySessionControlType `json:"cloudAppSecurityType,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecuritySessionControlTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecuritySessionControlTypeEnum.go
new file mode 100644
index 00000000..94a6f1ee
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecuritySessionControlTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CloudAppSecuritySessionControlType undocumented
+type CloudAppSecuritySessionControlType int
+
+const (
+ // CloudAppSecuritySessionControlTypeVMcasConfigured undocumented
+ CloudAppSecuritySessionControlTypeVMcasConfigured CloudAppSecuritySessionControlType = 0
+ // CloudAppSecuritySessionControlTypeVMonitorOnly undocumented
+ CloudAppSecuritySessionControlTypeVMonitorOnly CloudAppSecuritySessionControlType = 1
+ // CloudAppSecuritySessionControlTypeVBlockDownloads undocumented
+ CloudAppSecuritySessionControlTypeVBlockDownloads CloudAppSecuritySessionControlType = 2
+)
+
+// CloudAppSecuritySessionControlTypePMcasConfigured returns a pointer to CloudAppSecuritySessionControlTypeVMcasConfigured
+func CloudAppSecuritySessionControlTypePMcasConfigured() *CloudAppSecuritySessionControlType {
+ v := CloudAppSecuritySessionControlTypeVMcasConfigured
+ return &v
+}
+
+// CloudAppSecuritySessionControlTypePMonitorOnly returns a pointer to CloudAppSecuritySessionControlTypeVMonitorOnly
+func CloudAppSecuritySessionControlTypePMonitorOnly() *CloudAppSecuritySessionControlType {
+ v := CloudAppSecuritySessionControlTypeVMonitorOnly
+ return &v
+}
+
+// CloudAppSecuritySessionControlTypePBlockDownloads returns a pointer to CloudAppSecuritySessionControlTypeVBlockDownloads
+func CloudAppSecuritySessionControlTypePBlockDownloads() *CloudAppSecuritySessionControlType {
+ v := CloudAppSecuritySessionControlTypeVBlockDownloads
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityStateModel.go
new file mode 100644
index 00000000..9466ff2b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityStateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsAction.go
new file mode 100644
index 00000000..f70f83c8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsAction.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// CloudCommunicationsGetPresencesByUserIDRequestParameter undocumented
+type CloudCommunicationsGetPresencesByUserIDRequestParameter struct {
+ // IDs undocumented
+ IDs []string `json:"ids,omitempty"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]Presence, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsModel.go
new file mode 100644
index 00000000..1d0c2913
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/CloudCommunicationsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsRequest.go
new file mode 100644
index 00000000..00299dc9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Call collection
+func (r *CloudCommunicationsCallsCollectionRequest) Get(ctx context.Context) ([]Call, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnlineMeeting collection
+func (r *CloudCommunicationsOnlineMeetingsCollectionRequest) Get(ctx context.Context) ([]OnlineMeeting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ColumnDefinitionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ColumnDefinitionModel.go
new file mode 100644
index 00000000..9a745e7b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ColumnDefinitionModel.go
@@ -0,0 +1,49 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ColumnDefinitionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ColumnDefinitionRequest.go
new file mode 100644
index 00000000..1b70a22e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ColumnDefinitionRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ColumnLinkModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ColumnLinkModel.go
new file mode 100644
index 00000000..5d4b0ae6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ColumnLinkModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ColumnLinkRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ColumnLinkRequest.go
new file mode 100644
index 00000000..92837d0b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ColumnLinkRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/CommandModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CommandModel.go
new file mode 100644
index 00000000..a4d6e887
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CommandModel.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/matterbridge/msgraph.go/beta/CommandRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CommandRequest.go
new file mode 100644
index 00000000..a3f18a9b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CommandRequest.go
@@ -0,0 +1,45 @@
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/CommentActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CommentActionModel.go
new file mode 100644
index 00000000..2b7daaef
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CommentActionModel.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/matterbridge/msgraph.go/beta/CommsApplicationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CommsApplicationModel.go
new file mode 100644
index 00000000..553a9e8b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CommsApplicationModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CommsApplicationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CommsApplicationRequest.go
new file mode 100644
index 00000000..87cea9bd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CommsApplicationRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Call collection
+func (r *CommsApplicationCallsCollectionRequest) Get(ctx context.Context) ([]Call, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnlineMeeting collection
+func (r *CommsApplicationOnlineMeetingsCollectionRequest) Get(ctx context.Context) ([]OnlineMeeting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/CommsNotificationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CommsNotificationModel.go
new file mode 100644
index 00000000..0446e97c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CommsNotificationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CommsNotificationsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CommsNotificationsModel.go
new file mode 100644
index 00000000..f916100a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CommsNotificationsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CommsNotifications undocumented
+type CommsNotifications struct {
+ // Object is the base model of CommsNotifications
+ Object
+ // Value undocumented
+ Value []CommsNotification `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CommsOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CommsOperationModel.go
new file mode 100644
index 00000000..a63ca776
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CommsOperationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/CommsOperationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CommsOperationRequest.go
new file mode 100644
index 00000000..536db576
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CommsOperationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/CompanyDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CompanyDetailModel.go
new file mode 100644
index 00000000..36ee49e8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CompanyDetailModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CompanyInformationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CompanyInformationModel.go
new file mode 100644
index 00000000..35e805de
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CompanyInformationModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CompanyInformationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CompanyInformationRequest.go
new file mode 100644
index 00000000..d0658457
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CompanyInformationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/CompanyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CompanyModel.go
new file mode 100644
index 00000000..97b3a923
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CompanyModel.go
@@ -0,0 +1,87 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CompanyPortalActionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CompanyPortalActionEnum.go
new file mode 100644
index 00000000..46712849
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CompanyPortalActionEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CompanyPortalAction undocumented
+type CompanyPortalAction int
+
+const (
+ // CompanyPortalActionVUnknown undocumented
+ CompanyPortalActionVUnknown CompanyPortalAction = 0
+ // CompanyPortalActionVRemove undocumented
+ CompanyPortalActionVRemove CompanyPortalAction = 1
+ // CompanyPortalActionVReset undocumented
+ CompanyPortalActionVReset CompanyPortalAction = 2
+)
+
+// CompanyPortalActionPUnknown returns a pointer to CompanyPortalActionVUnknown
+func CompanyPortalActionPUnknown() *CompanyPortalAction {
+ v := CompanyPortalActionVUnknown
+ return &v
+}
+
+// CompanyPortalActionPRemove returns a pointer to CompanyPortalActionVRemove
+func CompanyPortalActionPRemove() *CompanyPortalAction {
+ v := CompanyPortalActionVRemove
+ return &v
+}
+
+// CompanyPortalActionPReset returns a pointer to CompanyPortalActionVReset
+func CompanyPortalActionPReset() *CompanyPortalAction {
+ v := CompanyPortalActionVReset
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CompanyPortalBlockedActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CompanyPortalBlockedActionModel.go
new file mode 100644
index 00000000..257ccba9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CompanyPortalBlockedActionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/CompanyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CompanyRequest.go
new file mode 100644
index 00000000..e09e55db
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CompanyRequest.go
@@ -0,0 +1,3335 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Account collection
+func (r *CompanyAccountsCollectionRequest) Get(ctx context.Context) ([]Account, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AgedAccountsPayable collection
+func (r *CompanyAgedAccountsPayableCollectionRequest) Get(ctx context.Context) ([]AgedAccountsPayable, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AgedAccountsReceivable collection
+func (r *CompanyAgedAccountsReceivableCollectionRequest) Get(ctx context.Context) ([]AgedAccountsReceivable, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CompanyInformation collection
+func (r *CompanyCompanyInformationCollectionRequest) Get(ctx context.Context) ([]CompanyInformation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CountryRegion collection
+func (r *CompanyCountriesRegionsCollectionRequest) Get(ctx context.Context) ([]CountryRegion, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Currency collection
+func (r *CompanyCurrenciesCollectionRequest) Get(ctx context.Context) ([]Currency, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CustomerPaymentJournal collection
+func (r *CompanyCustomerPaymentJournalsCollectionRequest) Get(ctx context.Context) ([]CustomerPaymentJournal, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CustomerPayment collection
+func (r *CompanyCustomerPaymentsCollectionRequest) Get(ctx context.Context) ([]CustomerPayment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Customer collection
+func (r *CompanyCustomersCollectionRequest) Get(ctx context.Context) ([]Customer, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DimensionValue collection
+func (r *CompanyDimensionValuesCollectionRequest) Get(ctx context.Context) ([]DimensionValue, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Dimension collection
+func (r *CompanyDimensionsCollectionRequest) Get(ctx context.Context) ([]Dimension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Employee collection
+func (r *CompanyEmployeesCollectionRequest) Get(ctx context.Context) ([]Employee, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GeneralLedgerEntry collection
+func (r *CompanyGeneralLedgerEntriesCollectionRequest) Get(ctx context.Context) ([]GeneralLedgerEntry, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemCategory collection
+func (r *CompanyItemCategoriesCollectionRequest) Get(ctx context.Context) ([]ItemCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Item collection
+func (r *CompanyItemsCollectionRequest) Get(ctx context.Context) ([]Item, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JournalLine collection
+func (r *CompanyJournalLinesCollectionRequest) Get(ctx context.Context) ([]JournalLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Journal collection
+func (r *CompanyJournalsCollectionRequest) Get(ctx context.Context) ([]Journal, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PaymentMethod collection
+func (r *CompanyPaymentMethodsCollectionRequest) Get(ctx context.Context) ([]PaymentMethod, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PaymentTerm collection
+func (r *CompanyPaymentTermsCollectionRequest) Get(ctx context.Context) ([]PaymentTerm, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Picture collection
+func (r *CompanyPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PurchaseInvoiceLine collection
+func (r *CompanyPurchaseInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]PurchaseInvoiceLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PurchaseInvoice collection
+func (r *CompanyPurchaseInvoicesCollectionRequest) Get(ctx context.Context) ([]PurchaseInvoice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesCreditMemoLine collection
+func (r *CompanySalesCreditMemoLinesCollectionRequest) Get(ctx context.Context) ([]SalesCreditMemoLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesCreditMemo collection
+func (r *CompanySalesCreditMemosCollectionRequest) Get(ctx context.Context) ([]SalesCreditMemo, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesInvoiceLine collection
+func (r *CompanySalesInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]SalesInvoiceLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesInvoice collection
+func (r *CompanySalesInvoicesCollectionRequest) Get(ctx context.Context) ([]SalesInvoice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesOrderLine collection
+func (r *CompanySalesOrderLinesCollectionRequest) Get(ctx context.Context) ([]SalesOrderLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesOrder collection
+func (r *CompanySalesOrdersCollectionRequest) Get(ctx context.Context) ([]SalesOrder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesQuoteLine collection
+func (r *CompanySalesQuoteLinesCollectionRequest) Get(ctx context.Context) ([]SalesQuoteLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesQuote collection
+func (r *CompanySalesQuotesCollectionRequest) Get(ctx context.Context) ([]SalesQuote, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ShipmentMethod collection
+func (r *CompanyShipmentMethodsCollectionRequest) Get(ctx context.Context) ([]ShipmentMethod, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TaxArea collection
+func (r *CompanyTaxAreasCollectionRequest) Get(ctx context.Context) ([]TaxArea, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TaxGroup collection
+func (r *CompanyTaxGroupsCollectionRequest) Get(ctx context.Context) ([]TaxGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UnitOfMeasure collection
+func (r *CompanyUnitsOfMeasureCollectionRequest) Get(ctx context.Context) ([]UnitOfMeasure, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Vendor collection
+func (r *CompanyVendorsCollectionRequest) Get(ctx context.Context) ([]Vendor, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ComplexExtensionValueModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ComplexExtensionValueModel.go
new file mode 100644
index 00000000..032ff849
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ComplexExtensionValueModel.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/matterbridge/msgraph.go/beta/ComplianceInformationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceInformationModel.go
new file mode 100644
index 00000000..9924976b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceInformationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerAssignmentModel.go
new file mode 100644
index 00000000..3e1ba9ee
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ComplianceManagementPartnerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerModel.go
new file mode 100644
index 00000000..31263f12
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerRequest.go
new file mode 100644
index 00000000..1b2d8ded
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerRequest.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/matterbridge/msgraph.go/beta/ComplianceStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceStateEnum.go
new file mode 100644
index 00000000..478e7ab9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceStateEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ComplianceState undocumented
+type ComplianceState int
+
+const (
+ // ComplianceStateVUnknown undocumented
+ ComplianceStateVUnknown ComplianceState = 0
+ // ComplianceStateVCompliant undocumented
+ ComplianceStateVCompliant ComplianceState = 1
+ // ComplianceStateVNoncompliant undocumented
+ ComplianceStateVNoncompliant ComplianceState = 2
+ // ComplianceStateVConflict undocumented
+ ComplianceStateVConflict ComplianceState = 3
+ // ComplianceStateVError undocumented
+ ComplianceStateVError ComplianceState = 4
+ // ComplianceStateVInGracePeriod undocumented
+ ComplianceStateVInGracePeriod ComplianceState = 254
+ // ComplianceStateVConfigManager undocumented
+ ComplianceStateVConfigManager ComplianceState = 255
+)
+
+// ComplianceStatePUnknown returns a pointer to ComplianceStateVUnknown
+func ComplianceStatePUnknown() *ComplianceState {
+ v := ComplianceStateVUnknown
+ return &v
+}
+
+// ComplianceStatePCompliant returns a pointer to ComplianceStateVCompliant
+func ComplianceStatePCompliant() *ComplianceState {
+ v := ComplianceStateVCompliant
+ return &v
+}
+
+// ComplianceStatePNoncompliant returns a pointer to ComplianceStateVNoncompliant
+func ComplianceStatePNoncompliant() *ComplianceState {
+ v := ComplianceStateVNoncompliant
+ return &v
+}
+
+// ComplianceStatePConflict returns a pointer to ComplianceStateVConflict
+func ComplianceStatePConflict() *ComplianceState {
+ v := ComplianceStateVConflict
+ return &v
+}
+
+// ComplianceStatePError returns a pointer to ComplianceStateVError
+func ComplianceStatePError() *ComplianceState {
+ v := ComplianceStateVError
+ return &v
+}
+
+// ComplianceStatePInGracePeriod returns a pointer to ComplianceStateVInGracePeriod
+func ComplianceStatePInGracePeriod() *ComplianceState {
+ v := ComplianceStateVInGracePeriod
+ return &v
+}
+
+// ComplianceStatePConfigManager returns a pointer to ComplianceStateVConfigManager
+func ComplianceStatePConfigManager() *ComplianceState {
+ v := ComplianceStateVConfigManager
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceStatusEnum.go
new file mode 100644
index 00000000..86de83ac
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceStatusEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ComplianceStatus undocumented
+type ComplianceStatus int
+
+const (
+ // ComplianceStatusVUnknown undocumented
+ ComplianceStatusVUnknown ComplianceStatus = 0
+ // ComplianceStatusVNotApplicable undocumented
+ ComplianceStatusVNotApplicable ComplianceStatus = 1
+ // ComplianceStatusVCompliant undocumented
+ ComplianceStatusVCompliant ComplianceStatus = 2
+ // ComplianceStatusVRemediated undocumented
+ ComplianceStatusVRemediated ComplianceStatus = 3
+ // ComplianceStatusVNonCompliant undocumented
+ ComplianceStatusVNonCompliant ComplianceStatus = 4
+ // ComplianceStatusVError undocumented
+ ComplianceStatusVError ComplianceStatus = 5
+ // ComplianceStatusVConflict undocumented
+ ComplianceStatusVConflict ComplianceStatus = 6
+ // ComplianceStatusVNotAssigned undocumented
+ ComplianceStatusVNotAssigned ComplianceStatus = 7
+)
+
+// ComplianceStatusPUnknown returns a pointer to ComplianceStatusVUnknown
+func ComplianceStatusPUnknown() *ComplianceStatus {
+ v := ComplianceStatusVUnknown
+ return &v
+}
+
+// ComplianceStatusPNotApplicable returns a pointer to ComplianceStatusVNotApplicable
+func ComplianceStatusPNotApplicable() *ComplianceStatus {
+ v := ComplianceStatusVNotApplicable
+ return &v
+}
+
+// ComplianceStatusPCompliant returns a pointer to ComplianceStatusVCompliant
+func ComplianceStatusPCompliant() *ComplianceStatus {
+ v := ComplianceStatusVCompliant
+ return &v
+}
+
+// ComplianceStatusPRemediated returns a pointer to ComplianceStatusVRemediated
+func ComplianceStatusPRemediated() *ComplianceStatus {
+ v := ComplianceStatusVRemediated
+ return &v
+}
+
+// ComplianceStatusPNonCompliant returns a pointer to ComplianceStatusVNonCompliant
+func ComplianceStatusPNonCompliant() *ComplianceStatus {
+ v := ComplianceStatusVNonCompliant
+ return &v
+}
+
+// ComplianceStatusPError returns a pointer to ComplianceStatusVError
+func ComplianceStatusPError() *ComplianceStatus {
+ v := ComplianceStatusVError
+ return &v
+}
+
+// ComplianceStatusPConflict returns a pointer to ComplianceStatusVConflict
+func ComplianceStatusPConflict() *ComplianceStatus {
+ v := ComplianceStatusVConflict
+ return &v
+}
+
+// ComplianceStatusPNotAssigned returns a pointer to ComplianceStatusVNotAssigned
+func ComplianceStatusPNotAssigned() *ComplianceStatus {
+ v := ComplianceStatusVNotAssigned
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ComponentEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ComponentEnum.go
new file mode 100644
index 00000000..96cfe7a1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ComponentEnum.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Component undocumented
+type Component int
+
+const (
+ // ComponentVLabel undocumented
+ ComponentVLabel Component = 0
+)
+
+// ComponentPLabel returns a pointer to ComponentVLabel
+func ComponentPLabel() *Component {
+ v := ComponentVLabel
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessApplicationsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessApplicationsModel.go
new file mode 100644
index 00000000..9bb17c18
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessApplicationsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessClientAppEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessClientAppEnum.go
new file mode 100644
index 00000000..f0b85f60
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessClientAppEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessClientApp undocumented
+type ConditionalAccessClientApp int
+
+const (
+ // ConditionalAccessClientAppVBrowser undocumented
+ ConditionalAccessClientAppVBrowser ConditionalAccessClientApp = 0
+ // ConditionalAccessClientAppVModern undocumented
+ ConditionalAccessClientAppVModern ConditionalAccessClientApp = 1
+ // ConditionalAccessClientAppVEasSupported undocumented
+ ConditionalAccessClientAppVEasSupported ConditionalAccessClientApp = 2
+ // ConditionalAccessClientAppVEasUnsupported undocumented
+ ConditionalAccessClientAppVEasUnsupported ConditionalAccessClientApp = 3
+ // ConditionalAccessClientAppVOther undocumented
+ ConditionalAccessClientAppVOther ConditionalAccessClientApp = 4
+)
+
+// ConditionalAccessClientAppPBrowser returns a pointer to ConditionalAccessClientAppVBrowser
+func ConditionalAccessClientAppPBrowser() *ConditionalAccessClientApp {
+ v := ConditionalAccessClientAppVBrowser
+ return &v
+}
+
+// ConditionalAccessClientAppPModern returns a pointer to ConditionalAccessClientAppVModern
+func ConditionalAccessClientAppPModern() *ConditionalAccessClientApp {
+ v := ConditionalAccessClientAppVModern
+ return &v
+}
+
+// ConditionalAccessClientAppPEasSupported returns a pointer to ConditionalAccessClientAppVEasSupported
+func ConditionalAccessClientAppPEasSupported() *ConditionalAccessClientApp {
+ v := ConditionalAccessClientAppVEasSupported
+ return &v
+}
+
+// ConditionalAccessClientAppPEasUnsupported returns a pointer to ConditionalAccessClientAppVEasUnsupported
+func ConditionalAccessClientAppPEasUnsupported() *ConditionalAccessClientApp {
+ v := ConditionalAccessClientAppVEasUnsupported
+ return &v
+}
+
+// ConditionalAccessClientAppPOther returns a pointer to ConditionalAccessClientAppVOther
+func ConditionalAccessClientAppPOther() *ConditionalAccessClientApp {
+ v := ConditionalAccessClientAppVOther
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessConditionSetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessConditionSetModel.go
new file mode 100644
index 00000000..a3dafb7f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessConditionSetModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessConditionsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessConditionsEnum.go
new file mode 100644
index 00000000..08c9dcf7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessConditionsEnum.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessConditions undocumented
+type ConditionalAccessConditions int
+
+const (
+ // ConditionalAccessConditionsVNone undocumented
+ ConditionalAccessConditionsVNone ConditionalAccessConditions = 0
+ // ConditionalAccessConditionsVApplication undocumented
+ ConditionalAccessConditionsVApplication ConditionalAccessConditions = 1
+ // ConditionalAccessConditionsVUsers undocumented
+ ConditionalAccessConditionsVUsers ConditionalAccessConditions = 2
+ // ConditionalAccessConditionsVDevicePlatform undocumented
+ ConditionalAccessConditionsVDevicePlatform ConditionalAccessConditions = 4
+ // ConditionalAccessConditionsVLocation undocumented
+ ConditionalAccessConditionsVLocation ConditionalAccessConditions = 8
+ // ConditionalAccessConditionsVClientType undocumented
+ ConditionalAccessConditionsVClientType ConditionalAccessConditions = 16
+ // ConditionalAccessConditionsVSignInRisk undocumented
+ ConditionalAccessConditionsVSignInRisk ConditionalAccessConditions = 32
+ // ConditionalAccessConditionsVUserRisk undocumented
+ ConditionalAccessConditionsVUserRisk ConditionalAccessConditions = 64
+ // ConditionalAccessConditionsVTime undocumented
+ ConditionalAccessConditionsVTime ConditionalAccessConditions = 128
+ // ConditionalAccessConditionsVDeviceState undocumented
+ ConditionalAccessConditionsVDeviceState ConditionalAccessConditions = 256
+ // ConditionalAccessConditionsVClient undocumented
+ ConditionalAccessConditionsVClient ConditionalAccessConditions = 512
+)
+
+// ConditionalAccessConditionsPNone returns a pointer to ConditionalAccessConditionsVNone
+func ConditionalAccessConditionsPNone() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVNone
+ return &v
+}
+
+// ConditionalAccessConditionsPApplication returns a pointer to ConditionalAccessConditionsVApplication
+func ConditionalAccessConditionsPApplication() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVApplication
+ return &v
+}
+
+// ConditionalAccessConditionsPUsers returns a pointer to ConditionalAccessConditionsVUsers
+func ConditionalAccessConditionsPUsers() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVUsers
+ return &v
+}
+
+// ConditionalAccessConditionsPDevicePlatform returns a pointer to ConditionalAccessConditionsVDevicePlatform
+func ConditionalAccessConditionsPDevicePlatform() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVDevicePlatform
+ return &v
+}
+
+// ConditionalAccessConditionsPLocation returns a pointer to ConditionalAccessConditionsVLocation
+func ConditionalAccessConditionsPLocation() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVLocation
+ return &v
+}
+
+// ConditionalAccessConditionsPClientType returns a pointer to ConditionalAccessConditionsVClientType
+func ConditionalAccessConditionsPClientType() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVClientType
+ return &v
+}
+
+// ConditionalAccessConditionsPSignInRisk returns a pointer to ConditionalAccessConditionsVSignInRisk
+func ConditionalAccessConditionsPSignInRisk() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVSignInRisk
+ return &v
+}
+
+// ConditionalAccessConditionsPUserRisk returns a pointer to ConditionalAccessConditionsVUserRisk
+func ConditionalAccessConditionsPUserRisk() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVUserRisk
+ return &v
+}
+
+// ConditionalAccessConditionsPTime returns a pointer to ConditionalAccessConditionsVTime
+func ConditionalAccessConditionsPTime() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVTime
+ return &v
+}
+
+// ConditionalAccessConditionsPDeviceState returns a pointer to ConditionalAccessConditionsVDeviceState
+func ConditionalAccessConditionsPDeviceState() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVDeviceState
+ return &v
+}
+
+// ConditionalAccessConditionsPClient returns a pointer to ConditionalAccessConditionsVClient
+func ConditionalAccessConditionsPClient() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVClient
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessDevicePlatformEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessDevicePlatformEnum.go
new file mode 100644
index 00000000..b4366175
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessDevicePlatformEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessDevicePlatform undocumented
+type ConditionalAccessDevicePlatform int
+
+const (
+ // ConditionalAccessDevicePlatformVAndroid undocumented
+ ConditionalAccessDevicePlatformVAndroid ConditionalAccessDevicePlatform = 0
+ // ConditionalAccessDevicePlatformVIOS undocumented
+ ConditionalAccessDevicePlatformVIOS ConditionalAccessDevicePlatform = 1
+ // ConditionalAccessDevicePlatformVWindows undocumented
+ ConditionalAccessDevicePlatformVWindows ConditionalAccessDevicePlatform = 2
+ // ConditionalAccessDevicePlatformVWindowsPhone undocumented
+ ConditionalAccessDevicePlatformVWindowsPhone ConditionalAccessDevicePlatform = 3
+ // ConditionalAccessDevicePlatformVMacOS undocumented
+ ConditionalAccessDevicePlatformVMacOS ConditionalAccessDevicePlatform = 4
+ // ConditionalAccessDevicePlatformVAll undocumented
+ ConditionalAccessDevicePlatformVAll ConditionalAccessDevicePlatform = 5
+)
+
+// ConditionalAccessDevicePlatformPAndroid returns a pointer to ConditionalAccessDevicePlatformVAndroid
+func ConditionalAccessDevicePlatformPAndroid() *ConditionalAccessDevicePlatform {
+ v := ConditionalAccessDevicePlatformVAndroid
+ return &v
+}
+
+// ConditionalAccessDevicePlatformPIOS returns a pointer to ConditionalAccessDevicePlatformVIOS
+func ConditionalAccessDevicePlatformPIOS() *ConditionalAccessDevicePlatform {
+ v := ConditionalAccessDevicePlatformVIOS
+ return &v
+}
+
+// ConditionalAccessDevicePlatformPWindows returns a pointer to ConditionalAccessDevicePlatformVWindows
+func ConditionalAccessDevicePlatformPWindows() *ConditionalAccessDevicePlatform {
+ v := ConditionalAccessDevicePlatformVWindows
+ return &v
+}
+
+// ConditionalAccessDevicePlatformPWindowsPhone returns a pointer to ConditionalAccessDevicePlatformVWindowsPhone
+func ConditionalAccessDevicePlatformPWindowsPhone() *ConditionalAccessDevicePlatform {
+ v := ConditionalAccessDevicePlatformVWindowsPhone
+ return &v
+}
+
+// ConditionalAccessDevicePlatformPMacOS returns a pointer to ConditionalAccessDevicePlatformVMacOS
+func ConditionalAccessDevicePlatformPMacOS() *ConditionalAccessDevicePlatform {
+ v := ConditionalAccessDevicePlatformVMacOS
+ return &v
+}
+
+// ConditionalAccessDevicePlatformPAll returns a pointer to ConditionalAccessDevicePlatformVAll
+func ConditionalAccessDevicePlatformPAll() *ConditionalAccessDevicePlatform {
+ v := ConditionalAccessDevicePlatformVAll
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessDeviceStatesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessDeviceStatesModel.go
new file mode 100644
index 00000000..6f1303cd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessDeviceStatesModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessGrantControlEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessGrantControlEnum.go
new file mode 100644
index 00000000..52786133
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessGrantControlEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessGrantControl undocumented
+type ConditionalAccessGrantControl int
+
+const (
+ // ConditionalAccessGrantControlVBlock undocumented
+ ConditionalAccessGrantControlVBlock ConditionalAccessGrantControl = 0
+ // ConditionalAccessGrantControlVMFA undocumented
+ ConditionalAccessGrantControlVMFA ConditionalAccessGrantControl = 1
+ // ConditionalAccessGrantControlVCompliantDevice undocumented
+ ConditionalAccessGrantControlVCompliantDevice ConditionalAccessGrantControl = 2
+ // ConditionalAccessGrantControlVDomainJoinedDevice undocumented
+ ConditionalAccessGrantControlVDomainJoinedDevice ConditionalAccessGrantControl = 3
+ // ConditionalAccessGrantControlVApprovedApplication undocumented
+ ConditionalAccessGrantControlVApprovedApplication ConditionalAccessGrantControl = 4
+ // ConditionalAccessGrantControlVCompliantApplication undocumented
+ ConditionalAccessGrantControlVCompliantApplication ConditionalAccessGrantControl = 5
+)
+
+// ConditionalAccessGrantControlPBlock returns a pointer to ConditionalAccessGrantControlVBlock
+func ConditionalAccessGrantControlPBlock() *ConditionalAccessGrantControl {
+ v := ConditionalAccessGrantControlVBlock
+ return &v
+}
+
+// ConditionalAccessGrantControlPMFA returns a pointer to ConditionalAccessGrantControlVMFA
+func ConditionalAccessGrantControlPMFA() *ConditionalAccessGrantControl {
+ v := ConditionalAccessGrantControlVMFA
+ return &v
+}
+
+// ConditionalAccessGrantControlPCompliantDevice returns a pointer to ConditionalAccessGrantControlVCompliantDevice
+func ConditionalAccessGrantControlPCompliantDevice() *ConditionalAccessGrantControl {
+ v := ConditionalAccessGrantControlVCompliantDevice
+ return &v
+}
+
+// ConditionalAccessGrantControlPDomainJoinedDevice returns a pointer to ConditionalAccessGrantControlVDomainJoinedDevice
+func ConditionalAccessGrantControlPDomainJoinedDevice() *ConditionalAccessGrantControl {
+ v := ConditionalAccessGrantControlVDomainJoinedDevice
+ return &v
+}
+
+// ConditionalAccessGrantControlPApprovedApplication returns a pointer to ConditionalAccessGrantControlVApprovedApplication
+func ConditionalAccessGrantControlPApprovedApplication() *ConditionalAccessGrantControl {
+ v := ConditionalAccessGrantControlVApprovedApplication
+ return &v
+}
+
+// ConditionalAccessGrantControlPCompliantApplication returns a pointer to ConditionalAccessGrantControlVCompliantApplication
+func ConditionalAccessGrantControlPCompliantApplication() *ConditionalAccessGrantControl {
+ v := ConditionalAccessGrantControlVCompliantApplication
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessGrantControlsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessGrantControlsModel.go
new file mode 100644
index 00000000..d9c23587
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessGrantControlsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessLocationsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessLocationsModel.go
new file mode 100644
index 00000000..dae883ad
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessLocationsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPlatformsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPlatformsModel.go
new file mode 100644
index 00000000..1e484277
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPlatformsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyModel.go
new file mode 100644
index 00000000..fbad5ea6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyRequest.go
new file mode 100644
index 00000000..26f3ef1d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyStateEnum.go
new file mode 100644
index 00000000..080c00c4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessPolicyState undocumented
+type ConditionalAccessPolicyState int
+
+const (
+ // ConditionalAccessPolicyStateVEnabled undocumented
+ ConditionalAccessPolicyStateVEnabled ConditionalAccessPolicyState = 0
+ // ConditionalAccessPolicyStateVDisabled undocumented
+ ConditionalAccessPolicyStateVDisabled ConditionalAccessPolicyState = 1
+ // ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced undocumented
+ ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced ConditionalAccessPolicyState = 2
+)
+
+// ConditionalAccessPolicyStatePEnabled returns a pointer to ConditionalAccessPolicyStateVEnabled
+func ConditionalAccessPolicyStatePEnabled() *ConditionalAccessPolicyState {
+ v := ConditionalAccessPolicyStateVEnabled
+ return &v
+}
+
+// ConditionalAccessPolicyStatePDisabled returns a pointer to ConditionalAccessPolicyStateVDisabled
+func ConditionalAccessPolicyStatePDisabled() *ConditionalAccessPolicyState {
+ v := ConditionalAccessPolicyStateVDisabled
+ return &v
+}
+
+// ConditionalAccessPolicyStatePEnabledForReportingButNotEnforced returns a pointer to ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced
+func ConditionalAccessPolicyStatePEnabledForReportingButNotEnforced() *ConditionalAccessPolicyState {
+ v := ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessRootModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessRootModel.go
new file mode 100644
index 00000000..8f3da790
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessRootModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessRootRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessRootRequest.go
new file mode 100644
index 00000000..3bda23a4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessRootRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for NamedLocation collection
+func (r *ConditionalAccessRootNamedLocationsCollectionRequest) Get(ctx context.Context) ([]NamedLocation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ConditionalAccessPolicy collection
+func (r *ConditionalAccessRootPoliciesCollectionRequest) Get(ctx context.Context) ([]ConditionalAccessPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ConditionalAccessSessionControlModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessSessionControlModel.go
new file mode 100644
index 00000000..1c9f6925
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessSessionControlModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessSessionControl undocumented
+type ConditionalAccessSessionControl struct {
+ // Object is the base model of ConditionalAccessSessionControl
+ Object
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessSessionControlsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessSessionControlsModel.go
new file mode 100644
index 00000000..01ee8291
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessSessionControlsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessStatusEnum.go
new file mode 100644
index 00000000..c4d7a837
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessStatus undocumented
+type ConditionalAccessStatus int
+
+const (
+ // ConditionalAccessStatusVSuccess undocumented
+ ConditionalAccessStatusVSuccess ConditionalAccessStatus = 0
+ // ConditionalAccessStatusVFailure undocumented
+ ConditionalAccessStatusVFailure ConditionalAccessStatus = 1
+ // ConditionalAccessStatusVNotApplied undocumented
+ ConditionalAccessStatusVNotApplied ConditionalAccessStatus = 2
+ // ConditionalAccessStatusVUnknownFutureValue undocumented
+ ConditionalAccessStatusVUnknownFutureValue ConditionalAccessStatus = 3
+)
+
+// ConditionalAccessStatusPSuccess returns a pointer to ConditionalAccessStatusVSuccess
+func ConditionalAccessStatusPSuccess() *ConditionalAccessStatus {
+ v := ConditionalAccessStatusVSuccess
+ return &v
+}
+
+// ConditionalAccessStatusPFailure returns a pointer to ConditionalAccessStatusVFailure
+func ConditionalAccessStatusPFailure() *ConditionalAccessStatus {
+ v := ConditionalAccessStatusVFailure
+ return &v
+}
+
+// ConditionalAccessStatusPNotApplied returns a pointer to ConditionalAccessStatusVNotApplied
+func ConditionalAccessStatusPNotApplied() *ConditionalAccessStatus {
+ v := ConditionalAccessStatusVNotApplied
+ return &v
+}
+
+// ConditionalAccessStatusPUnknownFutureValue returns a pointer to ConditionalAccessStatusVUnknownFutureValue
+func ConditionalAccessStatusPUnknownFutureValue() *ConditionalAccessStatus {
+ v := ConditionalAccessStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessUsersModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessUsersModel.go
new file mode 100644
index 00000000..ca8916be
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessUsersModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ConfigurationManagerActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerActionModel.go
new file mode 100644
index 00000000..f19079d2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerActionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerActionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerActionTypeEnum.go
new file mode 100644
index 00000000..596cc4db
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerActionTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConfigurationManagerActionType undocumented
+type ConfigurationManagerActionType int
+
+const (
+ // ConfigurationManagerActionTypeVRefreshMachinePolicy undocumented
+ ConfigurationManagerActionTypeVRefreshMachinePolicy ConfigurationManagerActionType = 0
+ // ConfigurationManagerActionTypeVRefreshUserPolicy undocumented
+ ConfigurationManagerActionTypeVRefreshUserPolicy ConfigurationManagerActionType = 1
+ // ConfigurationManagerActionTypeVWakeUpClient undocumented
+ ConfigurationManagerActionTypeVWakeUpClient ConfigurationManagerActionType = 2
+ // ConfigurationManagerActionTypeVAppEvaluation undocumented
+ ConfigurationManagerActionTypeVAppEvaluation ConfigurationManagerActionType = 3
+)
+
+// ConfigurationManagerActionTypePRefreshMachinePolicy returns a pointer to ConfigurationManagerActionTypeVRefreshMachinePolicy
+func ConfigurationManagerActionTypePRefreshMachinePolicy() *ConfigurationManagerActionType {
+ v := ConfigurationManagerActionTypeVRefreshMachinePolicy
+ return &v
+}
+
+// ConfigurationManagerActionTypePRefreshUserPolicy returns a pointer to ConfigurationManagerActionTypeVRefreshUserPolicy
+func ConfigurationManagerActionTypePRefreshUserPolicy() *ConfigurationManagerActionType {
+ v := ConfigurationManagerActionTypeVRefreshUserPolicy
+ return &v
+}
+
+// ConfigurationManagerActionTypePWakeUpClient returns a pointer to ConfigurationManagerActionTypeVWakeUpClient
+func ConfigurationManagerActionTypePWakeUpClient() *ConfigurationManagerActionType {
+ v := ConfigurationManagerActionTypeVWakeUpClient
+ return &v
+}
+
+// ConfigurationManagerActionTypePAppEvaluation returns a pointer to ConfigurationManagerActionTypeVAppEvaluation
+func ConfigurationManagerActionTypePAppEvaluation() *ConfigurationManagerActionType {
+ v := ConfigurationManagerActionTypeVAppEvaluation
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientEnabledFeaturesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientEnabledFeaturesModel.go
new file mode 100644
index 00000000..26208bbc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientEnabledFeaturesModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientHealthStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientHealthStateModel.go
new file mode 100644
index 00000000..c207ffe8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientHealthStateModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientInformationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientInformationModel.go
new file mode 100644
index 00000000..d5c741b2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientInformationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ConfigurationManagerClientStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientStateEnum.go
new file mode 100644
index 00000000..6c11f637
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConfigurationManagerClientState undocumented
+type ConfigurationManagerClientState int
+
+const (
+ // ConfigurationManagerClientStateVUnknown undocumented
+ ConfigurationManagerClientStateVUnknown ConfigurationManagerClientState = 0
+ // ConfigurationManagerClientStateVInstalled undocumented
+ ConfigurationManagerClientStateVInstalled ConfigurationManagerClientState = 1
+ // ConfigurationManagerClientStateVHealthy undocumented
+ ConfigurationManagerClientStateVHealthy ConfigurationManagerClientState = 7
+ // ConfigurationManagerClientStateVInstallFailed undocumented
+ ConfigurationManagerClientStateVInstallFailed ConfigurationManagerClientState = 8
+ // ConfigurationManagerClientStateVUpdateFailed undocumented
+ ConfigurationManagerClientStateVUpdateFailed ConfigurationManagerClientState = 11
+ // ConfigurationManagerClientStateVCommunicationError undocumented
+ ConfigurationManagerClientStateVCommunicationError ConfigurationManagerClientState = 19
+)
+
+// ConfigurationManagerClientStatePUnknown returns a pointer to ConfigurationManagerClientStateVUnknown
+func ConfigurationManagerClientStatePUnknown() *ConfigurationManagerClientState {
+ v := ConfigurationManagerClientStateVUnknown
+ return &v
+}
+
+// ConfigurationManagerClientStatePInstalled returns a pointer to ConfigurationManagerClientStateVInstalled
+func ConfigurationManagerClientStatePInstalled() *ConfigurationManagerClientState {
+ v := ConfigurationManagerClientStateVInstalled
+ return &v
+}
+
+// ConfigurationManagerClientStatePHealthy returns a pointer to ConfigurationManagerClientStateVHealthy
+func ConfigurationManagerClientStatePHealthy() *ConfigurationManagerClientState {
+ v := ConfigurationManagerClientStateVHealthy
+ return &v
+}
+
+// ConfigurationManagerClientStatePInstallFailed returns a pointer to ConfigurationManagerClientStateVInstallFailed
+func ConfigurationManagerClientStatePInstallFailed() *ConfigurationManagerClientState {
+ v := ConfigurationManagerClientStateVInstallFailed
+ return &v
+}
+
+// ConfigurationManagerClientStatePUpdateFailed returns a pointer to ConfigurationManagerClientStateVUpdateFailed
+func ConfigurationManagerClientStatePUpdateFailed() *ConfigurationManagerClientState {
+ v := ConfigurationManagerClientStateVUpdateFailed
+ return &v
+}
+
+// ConfigurationManagerClientStatePCommunicationError returns a pointer to ConfigurationManagerClientStateVCommunicationError
+func ConfigurationManagerClientStatePCommunicationError() *ConfigurationManagerClientState {
+ v := ConfigurationManagerClientStateVCommunicationError
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationModel.go
new file mode 100644
index 00000000..f5c75301
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Configuration undocumented
+type Configuration struct {
+ // Object is the base model of Configuration
+ Object
+ // AuthorizedApps undocumented
+ AuthorizedApps []string `json:"authorizedApps,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationUsageEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationUsageEnum.go
new file mode 100644
index 00000000..7c58ce83
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationUsageEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConfigurationUsage undocumented
+type ConfigurationUsage int
+
+const (
+ // ConfigurationUsageVBlocked undocumented
+ ConfigurationUsageVBlocked ConfigurationUsage = 0
+ // ConfigurationUsageVRequired undocumented
+ ConfigurationUsageVRequired ConfigurationUsage = 1
+ // ConfigurationUsageVAllowed undocumented
+ ConfigurationUsageVAllowed ConfigurationUsage = 2
+)
+
+// ConfigurationUsagePBlocked returns a pointer to ConfigurationUsageVBlocked
+func ConfigurationUsagePBlocked() *ConfigurationUsage {
+ v := ConfigurationUsageVBlocked
+ return &v
+}
+
+// ConfigurationUsagePRequired returns a pointer to ConfigurationUsageVRequired
+func ConfigurationUsagePRequired() *ConfigurationUsage {
+ v := ConfigurationUsageVRequired
+ return &v
+}
+
+// ConfigurationUsagePAllowed returns a pointer to ConfigurationUsageVAllowed
+func ConfigurationUsagePAllowed() *ConfigurationUsage {
+ v := ConfigurationUsageVAllowed
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionDirectionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionDirectionEnum.go
new file mode 100644
index 00000000..46f15793
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionDirectionEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConnectionDirection undocumented
+type ConnectionDirection int
+
+const (
+ // ConnectionDirectionVUnknown undocumented
+ ConnectionDirectionVUnknown ConnectionDirection = 0
+ // ConnectionDirectionVInbound undocumented
+ ConnectionDirectionVInbound ConnectionDirection = 1
+ // ConnectionDirectionVOutbound undocumented
+ ConnectionDirectionVOutbound ConnectionDirection = 2
+ // ConnectionDirectionVUnknownFutureValue undocumented
+ ConnectionDirectionVUnknownFutureValue ConnectionDirection = 127
+)
+
+// ConnectionDirectionPUnknown returns a pointer to ConnectionDirectionVUnknown
+func ConnectionDirectionPUnknown() *ConnectionDirection {
+ v := ConnectionDirectionVUnknown
+ return &v
+}
+
+// ConnectionDirectionPInbound returns a pointer to ConnectionDirectionVInbound
+func ConnectionDirectionPInbound() *ConnectionDirection {
+ v := ConnectionDirectionVInbound
+ return &v
+}
+
+// ConnectionDirectionPOutbound returns a pointer to ConnectionDirectionVOutbound
+func ConnectionDirectionPOutbound() *ConnectionDirection {
+ v := ConnectionDirectionVOutbound
+ return &v
+}
+
+// ConnectionDirectionPUnknownFutureValue returns a pointer to ConnectionDirectionVUnknownFutureValue
+func ConnectionDirectionPUnknownFutureValue() *ConnectionDirection {
+ v := ConnectionDirectionVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationModel.go
new file mode 100644
index 00000000..a8d5e3b1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationModel.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/matterbridge/msgraph.go/beta/ConnectionOperationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationRequest.go
new file mode 100644
index 00000000..8d975eff
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationRequest.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/matterbridge/msgraph.go/beta/ConnectionOperationStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationStatusEnum.go
new file mode 100644
index 00000000..d6488cb3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConnectionOperationStatus undocumented
+type ConnectionOperationStatus int
+
+const (
+ // ConnectionOperationStatusVUnspecified undocumented
+ ConnectionOperationStatusVUnspecified ConnectionOperationStatus = 0
+ // ConnectionOperationStatusVInprogress undocumented
+ ConnectionOperationStatusVInprogress ConnectionOperationStatus = 1
+ // ConnectionOperationStatusVCompleted undocumented
+ ConnectionOperationStatusVCompleted ConnectionOperationStatus = 2
+ // ConnectionOperationStatusVFailed undocumented
+ ConnectionOperationStatusVFailed ConnectionOperationStatus = 3
+)
+
+// ConnectionOperationStatusPUnspecified returns a pointer to ConnectionOperationStatusVUnspecified
+func ConnectionOperationStatusPUnspecified() *ConnectionOperationStatus {
+ v := ConnectionOperationStatusVUnspecified
+ return &v
+}
+
+// ConnectionOperationStatusPInprogress returns a pointer to ConnectionOperationStatusVInprogress
+func ConnectionOperationStatusPInprogress() *ConnectionOperationStatus {
+ v := ConnectionOperationStatusVInprogress
+ return &v
+}
+
+// ConnectionOperationStatusPCompleted returns a pointer to ConnectionOperationStatusVCompleted
+func ConnectionOperationStatusPCompleted() *ConnectionOperationStatus {
+ v := ConnectionOperationStatusVCompleted
+ return &v
+}
+
+// ConnectionOperationStatusPFailed returns a pointer to ConnectionOperationStatusVFailed
+func ConnectionOperationStatusPFailed() *ConnectionOperationStatus {
+ v := ConnectionOperationStatusVFailed
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionStatusEnum.go
new file mode 100644
index 00000000..1e28b41f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConnectionStatus undocumented
+type ConnectionStatus int
+
+const (
+ // ConnectionStatusVUnknown undocumented
+ ConnectionStatusVUnknown ConnectionStatus = 0
+ // ConnectionStatusVAttempted undocumented
+ ConnectionStatusVAttempted ConnectionStatus = 1
+ // ConnectionStatusVSucceeded undocumented
+ ConnectionStatusVSucceeded ConnectionStatus = 2
+ // ConnectionStatusVBlocked undocumented
+ ConnectionStatusVBlocked ConnectionStatus = 3
+ // ConnectionStatusVFailed undocumented
+ ConnectionStatusVFailed ConnectionStatus = 4
+ // ConnectionStatusVUnknownFutureValue undocumented
+ ConnectionStatusVUnknownFutureValue ConnectionStatus = 127
+)
+
+// ConnectionStatusPUnknown returns a pointer to ConnectionStatusVUnknown
+func ConnectionStatusPUnknown() *ConnectionStatus {
+ v := ConnectionStatusVUnknown
+ return &v
+}
+
+// ConnectionStatusPAttempted returns a pointer to ConnectionStatusVAttempted
+func ConnectionStatusPAttempted() *ConnectionStatus {
+ v := ConnectionStatusVAttempted
+ return &v
+}
+
+// ConnectionStatusPSucceeded returns a pointer to ConnectionStatusVSucceeded
+func ConnectionStatusPSucceeded() *ConnectionStatus {
+ v := ConnectionStatusVSucceeded
+ return &v
+}
+
+// ConnectionStatusPBlocked returns a pointer to ConnectionStatusVBlocked
+func ConnectionStatusPBlocked() *ConnectionStatus {
+ v := ConnectionStatusVBlocked
+ return &v
+}
+
+// ConnectionStatusPFailed returns a pointer to ConnectionStatusVFailed
+func ConnectionStatusPFailed() *ConnectionStatus {
+ v := ConnectionStatusVFailed
+ return &v
+}
+
+// ConnectionStatusPUnknownFutureValue returns a pointer to ConnectionStatusVUnknownFutureValue
+func ConnectionStatusPUnknownFutureValue() *ConnectionStatus {
+ v := ConnectionStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ContactFolderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContactFolderModel.go
new file mode 100644
index 00000000..61ccbc0f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContactFolderModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ContactFolderRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContactFolderRequest.go
new file mode 100644
index 00000000..e7453529
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContactFolderRequest.go
@@ -0,0 +1,421 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ContactFolder collection
+func (r *ContactFolderChildFoldersCollectionRequest) Get(ctx context.Context) ([]ContactFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Contact collection
+func (r *ContactFolderContactsCollectionRequest) Get(ctx context.Context) ([]Contact, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *ContactFolderMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *ContactFolderSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ContactModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContactModel.go
new file mode 100644
index 00000000..56bf922e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContactModel.go
@@ -0,0 +1,85 @@
+// 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 *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ContactRelationshipEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContactRelationshipEnum.go
new file mode 100644
index 00000000..769ef825
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContactRelationshipEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContactRelationship undocumented
+type ContactRelationship int
+
+const (
+ // ContactRelationshipVParent undocumented
+ ContactRelationshipVParent ContactRelationship = 0
+ // ContactRelationshipVRelative undocumented
+ ContactRelationshipVRelative ContactRelationship = 1
+ // ContactRelationshipVAide undocumented
+ ContactRelationshipVAide ContactRelationship = 2
+ // ContactRelationshipVDoctor undocumented
+ ContactRelationshipVDoctor ContactRelationship = 3
+ // ContactRelationshipVGuardian undocumented
+ ContactRelationshipVGuardian ContactRelationship = 4
+ // ContactRelationshipVChild undocumented
+ ContactRelationshipVChild ContactRelationship = 5
+ // ContactRelationshipVOther undocumented
+ ContactRelationshipVOther ContactRelationship = 6
+ // ContactRelationshipVUnknownFutureValue undocumented
+ ContactRelationshipVUnknownFutureValue ContactRelationship = 7
+)
+
+// ContactRelationshipPParent returns a pointer to ContactRelationshipVParent
+func ContactRelationshipPParent() *ContactRelationship {
+ v := ContactRelationshipVParent
+ return &v
+}
+
+// ContactRelationshipPRelative returns a pointer to ContactRelationshipVRelative
+func ContactRelationshipPRelative() *ContactRelationship {
+ v := ContactRelationshipVRelative
+ return &v
+}
+
+// ContactRelationshipPAide returns a pointer to ContactRelationshipVAide
+func ContactRelationshipPAide() *ContactRelationship {
+ v := ContactRelationshipVAide
+ return &v
+}
+
+// ContactRelationshipPDoctor returns a pointer to ContactRelationshipVDoctor
+func ContactRelationshipPDoctor() *ContactRelationship {
+ v := ContactRelationshipVDoctor
+ return &v
+}
+
+// ContactRelationshipPGuardian returns a pointer to ContactRelationshipVGuardian
+func ContactRelationshipPGuardian() *ContactRelationship {
+ v := ContactRelationshipVGuardian
+ return &v
+}
+
+// ContactRelationshipPChild returns a pointer to ContactRelationshipVChild
+func ContactRelationshipPChild() *ContactRelationship {
+ v := ContactRelationshipVChild
+ return &v
+}
+
+// ContactRelationshipPOther returns a pointer to ContactRelationshipVOther
+func ContactRelationshipPOther() *ContactRelationship {
+ v := ContactRelationshipVOther
+ return &v
+}
+
+// ContactRelationshipPUnknownFutureValue returns a pointer to ContactRelationshipVUnknownFutureValue
+func ContactRelationshipPUnknownFutureValue() *ContactRelationship {
+ v := ContactRelationshipVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ContactRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContactRequest.go
new file mode 100644
index 00000000..8ffb7dc2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContactRequest.go
@@ -0,0 +1,334 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *ContactExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *ContactMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *ContactSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ContentAlignmentEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContentAlignmentEnum.go
new file mode 100644
index 00000000..8a27e451
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContentAlignmentEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContentAlignment undocumented
+type ContentAlignment int
+
+const (
+ // ContentAlignmentVLeft undocumented
+ ContentAlignmentVLeft ContentAlignment = 0
+ // ContentAlignmentVRight undocumented
+ ContentAlignmentVRight ContentAlignment = 1
+ // ContentAlignmentVCenter undocumented
+ ContentAlignmentVCenter ContentAlignment = 2
+)
+
+// ContentAlignmentPLeft returns a pointer to ContentAlignmentVLeft
+func ContentAlignmentPLeft() *ContentAlignment {
+ v := ContentAlignmentVLeft
+ return &v
+}
+
+// ContentAlignmentPRight returns a pointer to ContentAlignmentVRight
+func ContentAlignmentPRight() *ContentAlignment {
+ v := ContentAlignmentVRight
+ return &v
+}
+
+// ContentAlignmentPCenter returns a pointer to ContentAlignmentVCenter
+func ContentAlignmentPCenter() *ContentAlignment {
+ v := ContentAlignmentVCenter
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ContentClassificationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContentClassificationModel.go
new file mode 100644
index 00000000..67909aad
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContentClassificationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ContentFormatEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContentFormatEnum.go
new file mode 100644
index 00000000..2bd410b4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContentFormatEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContentFormat undocumented
+type ContentFormat int
+
+const (
+ // ContentFormatVDefault undocumented
+ ContentFormatVDefault ContentFormat = 0
+ // ContentFormatVEmail undocumented
+ ContentFormatVEmail ContentFormat = 1
+)
+
+// ContentFormatPDefault returns a pointer to ContentFormatVDefault
+func ContentFormatPDefault() *ContentFormat {
+ v := ContentFormatVDefault
+ return &v
+}
+
+// ContentFormatPEmail returns a pointer to ContentFormatVEmail
+func ContentFormatPEmail() *ContentFormat {
+ v := ContentFormatVEmail
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ContentInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContentInfoModel.go
new file mode 100644
index 00000000..83fbca1f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContentInfoModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ContentMetadataModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContentMetadataModel.go
new file mode 100644
index 00000000..93b21872
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContentMetadataModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContentMetadata undocumented
+type ContentMetadata struct {
+ // Object is the base model of ContentMetadata
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ContentPropertiesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContentPropertiesModel.go
new file mode 100644
index 00000000..bc71d64c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContentPropertiesModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ContentStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContentStateEnum.go
new file mode 100644
index 00000000..45d4b973
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContentStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContentState undocumented
+type ContentState int
+
+const (
+ // ContentStateVRest undocumented
+ ContentStateVRest ContentState = 0
+ // ContentStateVMotion undocumented
+ ContentStateVMotion ContentState = 1
+ // ContentStateVUse undocumented
+ ContentStateVUse ContentState = 2
+)
+
+// ContentStatePRest returns a pointer to ContentStateVRest
+func ContentStatePRest() *ContentState {
+ v := ContentStateVRest
+ return &v
+}
+
+// ContentStatePMotion returns a pointer to ContentStateVMotion
+func ContentStatePMotion() *ContentState {
+ v := ContentStateVMotion
+ return &v
+}
+
+// ContentStatePUse returns a pointer to ContentStateVUse
+func ContentStatePUse() *ContentState {
+ v := ContentStateVUse
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeInfoModel.go
new file mode 100644
index 00000000..f600f4ae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeInfoModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeModel.go
new file mode 100644
index 00000000..0b2e76cc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeOrderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeOrderModel.go
new file mode 100644
index 00000000..dcdb966b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeOrderModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ContentTypeRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeRequest.go
new file mode 100644
index 00000000..2380040a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ColumnLink collection
+func (r *ContentTypeColumnLinksCollectionRequest) Get(ctx context.Context) ([]ColumnLink, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ContractModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContractModel.go
new file mode 100644
index 00000000..3e9ab95c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContractModel.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/matterbridge/msgraph.go/beta/ContractRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ContractRequest.go
new file mode 100644
index 00000000..d8465c8f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ContractRequest.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/matterbridge/msgraph.go/beta/ControlScoreModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ControlScoreModel.go
new file mode 100644
index 00000000..5153f2eb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ControlScoreModel.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/matterbridge/msgraph.go/beta/ConversationIdentityTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationIdentityTypeEnum.go
new file mode 100644
index 00000000..a20c19d8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationIdentityTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConversationIdentityType undocumented
+type ConversationIdentityType int
+
+const (
+ // ConversationIdentityTypeVTeam undocumented
+ ConversationIdentityTypeVTeam ConversationIdentityType = 0
+ // ConversationIdentityTypeVChannel undocumented
+ ConversationIdentityTypeVChannel ConversationIdentityType = 1
+)
+
+// ConversationIdentityTypePTeam returns a pointer to ConversationIdentityTypeVTeam
+func ConversationIdentityTypePTeam() *ConversationIdentityType {
+ v := ConversationIdentityTypeVTeam
+ return &v
+}
+
+// ConversationIdentityTypePChannel returns a pointer to ConversationIdentityTypeVChannel
+func ConversationIdentityTypePChannel() *ConversationIdentityType {
+ v := ConversationIdentityTypeVChannel
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberModel.go
new file mode 100644
index 00000000..f3fde9b0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberRequest.go
new file mode 100644
index 00000000..7785f3ec
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberRolesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberRolesModel.go
new file mode 100644
index 00000000..63746df1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberRolesModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConversationMemberRoles undocumented
+type ConversationMemberRoles struct {
+ // Object is the base model of ConversationMemberRoles
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConversationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationModel.go
new file mode 100644
index 00000000..cff50a02
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationModel.go
@@ -0,0 +1,23 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConversationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationRequest.go
new file mode 100644
index 00000000..6255c04c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ConversationThread collection
+func (r *ConversationThreadsCollectionRequest) Get(ctx context.Context) ([]ConversationThread, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadAction.go
new file mode 100644
index 00000000..756eb873
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ConversationThreadReplyRequestParameter undocumented
+type ConversationThreadReplyRequestParameter struct {
+ // Post undocumented
+ Post *Post `json:"Post,omitempty"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/ConversationThreadModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadModel.go
new file mode 100644
index 00000000..1cbeb64f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/ConversationThreadRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadRequest.go
new file mode 100644
index 00000000..cd1ebdeb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Post collection
+func (r *ConversationThreadPostsCollectionRequest) Get(ctx context.Context) ([]Post, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ConvertIDResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConvertIDResultModel.go
new file mode 100644
index 00000000..ff076bbb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ConvertIDResultModel.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/matterbridge/msgraph.go/beta/CopyNotebookModelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CopyNotebookModelModel.go
new file mode 100644
index 00000000..368e21f9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CopyNotebookModelModel.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/matterbridge/msgraph.go/beta/CountryNamedLocationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CountryNamedLocationModel.go
new file mode 100644
index 00000000..9c8500c7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CountryNamedLocationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CountryRegionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CountryRegionModel.go
new file mode 100644
index 00000000..9a59e86e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CountryRegionModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/CountryRegionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CountryRegionRequest.go
new file mode 100644
index 00000000..1a37db72
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CountryRegionRequest.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/matterbridge/msgraph.go/beta/CreateActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CreateActionModel.go
new file mode 100644
index 00000000..8d598713
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CreateActionModel.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/matterbridge/msgraph.go/beta/CredentialModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CredentialModel.go
new file mode 100644
index 00000000..cc4164f5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CredentialModel.go
@@ -0,0 +1,15 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CredentialSingleSignOnExtensionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CredentialSingleSignOnExtensionModel.go
new file mode 100644
index 00000000..6f560e20
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CredentialSingleSignOnExtensionModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CredentialUsageSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CredentialUsageSummaryModel.go
new file mode 100644
index 00000000..4a73ecf3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CredentialUsageSummaryModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationCountModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationCountModel.go
new file mode 100644
index 00000000..1d74a5f0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationCountModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationDetailsModel.go
new file mode 100644
index 00000000..153e690b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationDetailsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/CredentialUserRegistrationDetailsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationDetailsRequest.go
new file mode 100644
index 00000000..3e2a29f3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationDetailsRequest.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/matterbridge/msgraph.go/beta/CurrencyColumnModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CurrencyColumnModel.go
new file mode 100644
index 00000000..c1cb1c53
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CurrencyColumnModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/CurrencyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CurrencyModel.go
new file mode 100644
index 00000000..7d8aaa59
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CurrencyModel.go
@@ -0,0 +1,23 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CurrencyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CurrencyRequest.go
new file mode 100644
index 00000000..3605e038
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CurrencyRequest.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/matterbridge/msgraph.go/beta/CurrentLabelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CurrentLabelModel.go
new file mode 100644
index 00000000..03afed08
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CurrentLabelModel.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/matterbridge/msgraph.go/beta/CustomActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CustomActionModel.go
new file mode 100644
index 00000000..338d6ebd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CustomActionModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CustomSubjectAlternativeNameModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CustomSubjectAlternativeNameModel.go
new file mode 100644
index 00000000..2b91ae09
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CustomSubjectAlternativeNameModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CustomTimeZoneModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CustomTimeZoneModel.go
new file mode 100644
index 00000000..d8c81fe6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CustomTimeZoneModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/CustomerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CustomerModel.go
new file mode 100644
index 00000000..e5f4efc0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CustomerModel.go
@@ -0,0 +1,57 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentJournalModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentJournalModel.go
new file mode 100644
index 00000000..b52aefb1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentJournalModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/CustomerPaymentJournalRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentJournalRequest.go
new file mode 100644
index 00000000..d3c606f0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentJournalRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CustomerPayment collection
+func (r *CustomerPaymentJournalCustomerPaymentsCollectionRequest) Get(ctx context.Context) ([]CustomerPayment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/CustomerPaymentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentModel.go
new file mode 100644
index 00000000..e15bb841
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentRequest.go
new file mode 100644
index 00000000..db2d49ad
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Customer is navigation property
+func (b *CustomerPaymentRequestBuilder) Customer() *CustomerRequestBuilder {
+ bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customer"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CustomerRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CustomerRequest.go
new file mode 100644
index 00000000..61bc3629
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/CustomerRequest.go
@@ -0,0 +1,167 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Picture collection
+func (r *CustomerPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DailyScheduleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DailyScheduleModel.go
new file mode 100644
index 00000000..22d5c90b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DailyScheduleModel.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/matterbridge/msgraph.go/beta/DataClassificationServiceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DataClassificationServiceModel.go
new file mode 100644
index 00000000..48234991
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DataClassificationServiceModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DataClassificationServiceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DataClassificationServiceRequest.go
new file mode 100644
index 00000000..0ff75578
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DataClassificationServiceRequest.go
@@ -0,0 +1,1173 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for FileClassificationRequestObject collection
+func (r *DataClassificationServiceClassifyFileCollectionRequest) Get(ctx context.Context) ([]FileClassificationRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceClassifyFileJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TextClassificationRequestObject collection
+func (r *DataClassificationServiceClassifyTextCollectionRequest) Get(ctx context.Context) ([]TextClassificationRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceClassifyTextJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceEvaluateLabelJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ExactMatchDataStore collection
+func (r *DataClassificationServiceExactMatchDataStoresCollectionRequest) Get(ctx context.Context) ([]ExactMatchDataStore, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ExactMatchUploadAgent collection
+func (r *DataClassificationServiceExactMatchUploadAgentsCollectionRequest) Get(ctx context.Context) ([]ExactMatchUploadAgent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SensitiveType collection
+func (r *DataClassificationServiceSensitiveTypesCollectionRequest) Get(ctx context.Context) ([]SensitiveType, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SensitivityLabel collection
+func (r *DataClassificationServiceSensitivityLabelsCollectionRequest) Get(ctx context.Context) ([]SensitivityLabel, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/DataLossPreventionPolicyAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyAction.go
new file mode 100644
index 00000000..3320b921
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyAction.go
@@ -0,0 +1,42 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyModel.go
new file mode 100644
index 00000000..848c095d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyRequest.go
new file mode 100644
index 00000000..65db4284
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationModel.go
new file mode 100644
index 00000000..1cb4477e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationRequest.go
new file mode 100644
index 00000000..5e443ca0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationStatusEnum.go
new file mode 100644
index 00000000..9dd1bfb6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DataPolicyOperationStatus undocumented
+type DataPolicyOperationStatus int
+
+const (
+ // DataPolicyOperationStatusVNotStarted undocumented
+ DataPolicyOperationStatusVNotStarted DataPolicyOperationStatus = 0
+ // DataPolicyOperationStatusVRunning undocumented
+ DataPolicyOperationStatusVRunning DataPolicyOperationStatus = 1
+ // DataPolicyOperationStatusVComplete undocumented
+ DataPolicyOperationStatusVComplete DataPolicyOperationStatus = 2
+ // DataPolicyOperationStatusVFailed undocumented
+ DataPolicyOperationStatusVFailed DataPolicyOperationStatus = 3
+ // DataPolicyOperationStatusVUnknownFutureValue undocumented
+ DataPolicyOperationStatusVUnknownFutureValue DataPolicyOperationStatus = 4
+)
+
+// DataPolicyOperationStatusPNotStarted returns a pointer to DataPolicyOperationStatusVNotStarted
+func DataPolicyOperationStatusPNotStarted() *DataPolicyOperationStatus {
+ v := DataPolicyOperationStatusVNotStarted
+ return &v
+}
+
+// DataPolicyOperationStatusPRunning returns a pointer to DataPolicyOperationStatusVRunning
+func DataPolicyOperationStatusPRunning() *DataPolicyOperationStatus {
+ v := DataPolicyOperationStatusVRunning
+ return &v
+}
+
+// DataPolicyOperationStatusPComplete returns a pointer to DataPolicyOperationStatusVComplete
+func DataPolicyOperationStatusPComplete() *DataPolicyOperationStatus {
+ v := DataPolicyOperationStatusVComplete
+ return &v
+}
+
+// DataPolicyOperationStatusPFailed returns a pointer to DataPolicyOperationStatusVFailed
+func DataPolicyOperationStatusPFailed() *DataPolicyOperationStatus {
+ v := DataPolicyOperationStatusVFailed
+ return &v
+}
+
+// DataPolicyOperationStatusPUnknownFutureValue returns a pointer to DataPolicyOperationStatusVUnknownFutureValue
+func DataPolicyOperationStatusPUnknownFutureValue() *DataPolicyOperationStatus {
+ v := DataPolicyOperationStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentAction.go
new file mode 100644
index 00000000..eeb2d520
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentAction.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DataSharingConsentConsentToDataSharingRequestParameter undocumented
+type DataSharingConsentConsentToDataSharingRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/DataSharingConsentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentModel.go
new file mode 100644
index 00000000..323f6d03
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentRequest.go
new file mode 100644
index 00000000..2f617003
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DataStoreFieldModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DataStoreFieldModel.go
new file mode 100644
index 00000000..2d7326d4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DataStoreFieldModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/DateTimeColumnModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DateTimeColumnModel.go
new file mode 100644
index 00000000..97e60cfa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DateTimeColumnModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DateTimeTimeZoneModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DateTimeTimeZoneModel.go
new file mode 100644
index 00000000..84e890f5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DateTimeTimeZoneModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DateTimeTimeZoneTypeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DateTimeTimeZoneTypeModel.go
new file mode 100644
index 00000000..5219d147
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DateTimeTimeZoneTypeModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/DayOfWeekEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DayOfWeekEnum.go
new file mode 100644
index 00000000..310f11c2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DayOfWeekEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DayOfWeek undocumented
+type DayOfWeek int
+
+const (
+ // DayOfWeekVSunday undocumented
+ DayOfWeekVSunday DayOfWeek = 0
+ // DayOfWeekVMonday undocumented
+ DayOfWeekVMonday DayOfWeek = 1
+ // DayOfWeekVTuesday undocumented
+ DayOfWeekVTuesday DayOfWeek = 2
+ // DayOfWeekVWednesday undocumented
+ DayOfWeekVWednesday DayOfWeek = 3
+ // DayOfWeekVThursday undocumented
+ DayOfWeekVThursday DayOfWeek = 4
+ // DayOfWeekVFriday undocumented
+ DayOfWeekVFriday DayOfWeek = 5
+ // DayOfWeekVSaturday undocumented
+ DayOfWeekVSaturday DayOfWeek = 6
+)
+
+// DayOfWeekPSunday returns a pointer to DayOfWeekVSunday
+func DayOfWeekPSunday() *DayOfWeek {
+ v := DayOfWeekVSunday
+ return &v
+}
+
+// DayOfWeekPMonday returns a pointer to DayOfWeekVMonday
+func DayOfWeekPMonday() *DayOfWeek {
+ v := DayOfWeekVMonday
+ return &v
+}
+
+// DayOfWeekPTuesday returns a pointer to DayOfWeekVTuesday
+func DayOfWeekPTuesday() *DayOfWeek {
+ v := DayOfWeekVTuesday
+ return &v
+}
+
+// DayOfWeekPWednesday returns a pointer to DayOfWeekVWednesday
+func DayOfWeekPWednesday() *DayOfWeek {
+ v := DayOfWeekVWednesday
+ return &v
+}
+
+// DayOfWeekPThursday returns a pointer to DayOfWeekVThursday
+func DayOfWeekPThursday() *DayOfWeek {
+ v := DayOfWeekVThursday
+ return &v
+}
+
+// DayOfWeekPFriday returns a pointer to DayOfWeekVFriday
+func DayOfWeekPFriday() *DayOfWeek {
+ v := DayOfWeekVFriday
+ return &v
+}
+
+// DayOfWeekPSaturday returns a pointer to DayOfWeekVSaturday
+func DayOfWeekPSaturday() *DayOfWeek {
+ v := DayOfWeekVSaturday
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DaylightTimeZoneOffsetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DaylightTimeZoneOffsetModel.go
new file mode 100644
index 00000000..48cc72c9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DaylightTimeZoneOffsetModel.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/matterbridge/msgraph.go/beta/DefaultColumnValueModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefaultColumnValueModel.go
new file mode 100644
index 00000000..b6771b48
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefaultColumnValueModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DefaultDeviceCompliancePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefaultDeviceCompliancePolicyModel.go
new file mode 100644
index 00000000..6959f504
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefaultDeviceCompliancePolicyModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefaultDeviceCompliancePolicy Default device compliance policy rules that are enforced account wide.
+type DefaultDeviceCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of DefaultDeviceCompliancePolicy
+ DeviceCompliancePolicy
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DefaultManagedAppProtectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefaultManagedAppProtectionModel.go
new file mode 100644
index 00000000..34458e68
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefaultManagedAppProtectionModel.go
@@ -0,0 +1,77 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/DefaultManagedAppProtectionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefaultManagedAppProtectionRequest.go
new file mode 100644
index 00000000..103d4320
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefaultManagedAppProtectionRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedMobileApp collection
+func (r *DefaultManagedAppProtectionAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/DefenderAttackSurfaceTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderAttackSurfaceTypeEnum.go
new file mode 100644
index 00000000..0fe2c716
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderAttackSurfaceTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderAttackSurfaceType undocumented
+type DefenderAttackSurfaceType int
+
+const (
+ // DefenderAttackSurfaceTypeVUserDefined undocumented
+ DefenderAttackSurfaceTypeVUserDefined DefenderAttackSurfaceType = 0
+ // DefenderAttackSurfaceTypeVBlock undocumented
+ DefenderAttackSurfaceTypeVBlock DefenderAttackSurfaceType = 1
+ // DefenderAttackSurfaceTypeVAuditMode undocumented
+ DefenderAttackSurfaceTypeVAuditMode DefenderAttackSurfaceType = 2
+)
+
+// DefenderAttackSurfaceTypePUserDefined returns a pointer to DefenderAttackSurfaceTypeVUserDefined
+func DefenderAttackSurfaceTypePUserDefined() *DefenderAttackSurfaceType {
+ v := DefenderAttackSurfaceTypeVUserDefined
+ return &v
+}
+
+// DefenderAttackSurfaceTypePBlock returns a pointer to DefenderAttackSurfaceTypeVBlock
+func DefenderAttackSurfaceTypePBlock() *DefenderAttackSurfaceType {
+ v := DefenderAttackSurfaceTypeVBlock
+ return &v
+}
+
+// DefenderAttackSurfaceTypePAuditMode returns a pointer to DefenderAttackSurfaceTypeVAuditMode
+func DefenderAttackSurfaceTypePAuditMode() *DefenderAttackSurfaceType {
+ v := DefenderAttackSurfaceTypeVAuditMode
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderCloudBlockLevelTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderCloudBlockLevelTypeEnum.go
new file mode 100644
index 00000000..fc80296d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderCloudBlockLevelTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderCloudBlockLevelType undocumented
+type DefenderCloudBlockLevelType int
+
+const (
+ // DefenderCloudBlockLevelTypeVNotConfigured undocumented
+ DefenderCloudBlockLevelTypeVNotConfigured DefenderCloudBlockLevelType = 0
+ // DefenderCloudBlockLevelTypeVHigh undocumented
+ DefenderCloudBlockLevelTypeVHigh DefenderCloudBlockLevelType = 1
+ // DefenderCloudBlockLevelTypeVHighPlus undocumented
+ DefenderCloudBlockLevelTypeVHighPlus DefenderCloudBlockLevelType = 2
+ // DefenderCloudBlockLevelTypeVZeroTolerance undocumented
+ DefenderCloudBlockLevelTypeVZeroTolerance DefenderCloudBlockLevelType = 3
+)
+
+// DefenderCloudBlockLevelTypePNotConfigured returns a pointer to DefenderCloudBlockLevelTypeVNotConfigured
+func DefenderCloudBlockLevelTypePNotConfigured() *DefenderCloudBlockLevelType {
+ v := DefenderCloudBlockLevelTypeVNotConfigured
+ return &v
+}
+
+// DefenderCloudBlockLevelTypePHigh returns a pointer to DefenderCloudBlockLevelTypeVHigh
+func DefenderCloudBlockLevelTypePHigh() *DefenderCloudBlockLevelType {
+ v := DefenderCloudBlockLevelTypeVHigh
+ return &v
+}
+
+// DefenderCloudBlockLevelTypePHighPlus returns a pointer to DefenderCloudBlockLevelTypeVHighPlus
+func DefenderCloudBlockLevelTypePHighPlus() *DefenderCloudBlockLevelType {
+ v := DefenderCloudBlockLevelTypeVHighPlus
+ return &v
+}
+
+// DefenderCloudBlockLevelTypePZeroTolerance returns a pointer to DefenderCloudBlockLevelTypeVZeroTolerance
+func DefenderCloudBlockLevelTypePZeroTolerance() *DefenderCloudBlockLevelType {
+ v := DefenderCloudBlockLevelTypeVZeroTolerance
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderDetectedMalwareActionsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderDetectedMalwareActionsModel.go
new file mode 100644
index 00000000..92a09305
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderDetectedMalwareActionsModel.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/matterbridge/msgraph.go/beta/DefenderMonitorFileActivityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderMonitorFileActivityEnum.go
new file mode 100644
index 00000000..5ace9e98
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderMonitorFileActivityEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderMonitorFileActivity undocumented
+type DefenderMonitorFileActivity int
+
+const (
+ // DefenderMonitorFileActivityVUserDefined undocumented
+ DefenderMonitorFileActivityVUserDefined DefenderMonitorFileActivity = 0
+ // DefenderMonitorFileActivityVDisable undocumented
+ DefenderMonitorFileActivityVDisable DefenderMonitorFileActivity = 1
+ // DefenderMonitorFileActivityVMonitorAllFiles undocumented
+ DefenderMonitorFileActivityVMonitorAllFiles DefenderMonitorFileActivity = 2
+ // DefenderMonitorFileActivityVMonitorIncomingFilesOnly undocumented
+ DefenderMonitorFileActivityVMonitorIncomingFilesOnly DefenderMonitorFileActivity = 3
+ // DefenderMonitorFileActivityVMonitorOutgoingFilesOnly undocumented
+ DefenderMonitorFileActivityVMonitorOutgoingFilesOnly DefenderMonitorFileActivity = 4
+)
+
+// DefenderMonitorFileActivityPUserDefined returns a pointer to DefenderMonitorFileActivityVUserDefined
+func DefenderMonitorFileActivityPUserDefined() *DefenderMonitorFileActivity {
+ v := DefenderMonitorFileActivityVUserDefined
+ return &v
+}
+
+// DefenderMonitorFileActivityPDisable returns a pointer to DefenderMonitorFileActivityVDisable
+func DefenderMonitorFileActivityPDisable() *DefenderMonitorFileActivity {
+ v := DefenderMonitorFileActivityVDisable
+ return &v
+}
+
+// DefenderMonitorFileActivityPMonitorAllFiles returns a pointer to DefenderMonitorFileActivityVMonitorAllFiles
+func DefenderMonitorFileActivityPMonitorAllFiles() *DefenderMonitorFileActivity {
+ v := DefenderMonitorFileActivityVMonitorAllFiles
+ return &v
+}
+
+// DefenderMonitorFileActivityPMonitorIncomingFilesOnly returns a pointer to DefenderMonitorFileActivityVMonitorIncomingFilesOnly
+func DefenderMonitorFileActivityPMonitorIncomingFilesOnly() *DefenderMonitorFileActivity {
+ v := DefenderMonitorFileActivityVMonitorIncomingFilesOnly
+ return &v
+}
+
+// DefenderMonitorFileActivityPMonitorOutgoingFilesOnly returns a pointer to DefenderMonitorFileActivityVMonitorOutgoingFilesOnly
+func DefenderMonitorFileActivityPMonitorOutgoingFilesOnly() *DefenderMonitorFileActivity {
+ v := DefenderMonitorFileActivityVMonitorOutgoingFilesOnly
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderPotentiallyUnwantedAppActionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderPotentiallyUnwantedAppActionEnum.go
new file mode 100644
index 00000000..ad431bbb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderPotentiallyUnwantedAppActionEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderPotentiallyUnwantedAppAction undocumented
+type DefenderPotentiallyUnwantedAppAction int
+
+const (
+ // DefenderPotentiallyUnwantedAppActionVDeviceDefault undocumented
+ DefenderPotentiallyUnwantedAppActionVDeviceDefault DefenderPotentiallyUnwantedAppAction = 0
+ // DefenderPotentiallyUnwantedAppActionVBlock undocumented
+ DefenderPotentiallyUnwantedAppActionVBlock DefenderPotentiallyUnwantedAppAction = 1
+ // DefenderPotentiallyUnwantedAppActionVAudit undocumented
+ DefenderPotentiallyUnwantedAppActionVAudit DefenderPotentiallyUnwantedAppAction = 2
+)
+
+// DefenderPotentiallyUnwantedAppActionPDeviceDefault returns a pointer to DefenderPotentiallyUnwantedAppActionVDeviceDefault
+func DefenderPotentiallyUnwantedAppActionPDeviceDefault() *DefenderPotentiallyUnwantedAppAction {
+ v := DefenderPotentiallyUnwantedAppActionVDeviceDefault
+ return &v
+}
+
+// DefenderPotentiallyUnwantedAppActionPBlock returns a pointer to DefenderPotentiallyUnwantedAppActionVBlock
+func DefenderPotentiallyUnwantedAppActionPBlock() *DefenderPotentiallyUnwantedAppAction {
+ v := DefenderPotentiallyUnwantedAppActionVBlock
+ return &v
+}
+
+// DefenderPotentiallyUnwantedAppActionPAudit returns a pointer to DefenderPotentiallyUnwantedAppActionVAudit
+func DefenderPotentiallyUnwantedAppActionPAudit() *DefenderPotentiallyUnwantedAppAction {
+ v := DefenderPotentiallyUnwantedAppActionVAudit
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderPromptForSampleSubmissionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderPromptForSampleSubmissionEnum.go
new file mode 100644
index 00000000..b2a2d208
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderPromptForSampleSubmissionEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderPromptForSampleSubmission undocumented
+type DefenderPromptForSampleSubmission int
+
+const (
+ // DefenderPromptForSampleSubmissionVUserDefined undocumented
+ DefenderPromptForSampleSubmissionVUserDefined DefenderPromptForSampleSubmission = 0
+ // DefenderPromptForSampleSubmissionVAlwaysPrompt undocumented
+ DefenderPromptForSampleSubmissionVAlwaysPrompt DefenderPromptForSampleSubmission = 1
+ // DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData undocumented
+ DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData DefenderPromptForSampleSubmission = 2
+ // DefenderPromptForSampleSubmissionVNeverSendData undocumented
+ DefenderPromptForSampleSubmissionVNeverSendData DefenderPromptForSampleSubmission = 3
+ // DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting undocumented
+ DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting DefenderPromptForSampleSubmission = 4
+)
+
+// DefenderPromptForSampleSubmissionPUserDefined returns a pointer to DefenderPromptForSampleSubmissionVUserDefined
+func DefenderPromptForSampleSubmissionPUserDefined() *DefenderPromptForSampleSubmission {
+ v := DefenderPromptForSampleSubmissionVUserDefined
+ return &v
+}
+
+// DefenderPromptForSampleSubmissionPAlwaysPrompt returns a pointer to DefenderPromptForSampleSubmissionVAlwaysPrompt
+func DefenderPromptForSampleSubmissionPAlwaysPrompt() *DefenderPromptForSampleSubmission {
+ v := DefenderPromptForSampleSubmissionVAlwaysPrompt
+ return &v
+}
+
+// DefenderPromptForSampleSubmissionPPromptBeforeSendingPersonalData returns a pointer to DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData
+func DefenderPromptForSampleSubmissionPPromptBeforeSendingPersonalData() *DefenderPromptForSampleSubmission {
+ v := DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData
+ return &v
+}
+
+// DefenderPromptForSampleSubmissionPNeverSendData returns a pointer to DefenderPromptForSampleSubmissionVNeverSendData
+func DefenderPromptForSampleSubmissionPNeverSendData() *DefenderPromptForSampleSubmission {
+ v := DefenderPromptForSampleSubmissionVNeverSendData
+ return &v
+}
+
+// DefenderPromptForSampleSubmissionPSendAllDataWithoutPrompting returns a pointer to DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting
+func DefenderPromptForSampleSubmissionPSendAllDataWithoutPrompting() *DefenderPromptForSampleSubmission {
+ v := DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderProtectionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderProtectionTypeEnum.go
new file mode 100644
index 00000000..1479d39a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderProtectionTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderProtectionType undocumented
+type DefenderProtectionType int
+
+const (
+ // DefenderProtectionTypeVUserDefined undocumented
+ DefenderProtectionTypeVUserDefined DefenderProtectionType = 0
+ // DefenderProtectionTypeVEnable undocumented
+ DefenderProtectionTypeVEnable DefenderProtectionType = 1
+ // DefenderProtectionTypeVAuditMode undocumented
+ DefenderProtectionTypeVAuditMode DefenderProtectionType = 2
+)
+
+// DefenderProtectionTypePUserDefined returns a pointer to DefenderProtectionTypeVUserDefined
+func DefenderProtectionTypePUserDefined() *DefenderProtectionType {
+ v := DefenderProtectionTypeVUserDefined
+ return &v
+}
+
+// DefenderProtectionTypePEnable returns a pointer to DefenderProtectionTypeVEnable
+func DefenderProtectionTypePEnable() *DefenderProtectionType {
+ v := DefenderProtectionTypeVEnable
+ return &v
+}
+
+// DefenderProtectionTypePAuditMode returns a pointer to DefenderProtectionTypeVAuditMode
+func DefenderProtectionTypePAuditMode() *DefenderProtectionType {
+ v := DefenderProtectionTypeVAuditMode
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderScanTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderScanTypeEnum.go
new file mode 100644
index 00000000..19588595
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderScanTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderScanType undocumented
+type DefenderScanType int
+
+const (
+ // DefenderScanTypeVUserDefined undocumented
+ DefenderScanTypeVUserDefined DefenderScanType = 0
+ // DefenderScanTypeVDisabled undocumented
+ DefenderScanTypeVDisabled DefenderScanType = 1
+ // DefenderScanTypeVQuick undocumented
+ DefenderScanTypeVQuick DefenderScanType = 2
+ // DefenderScanTypeVFull undocumented
+ DefenderScanTypeVFull DefenderScanType = 3
+)
+
+// DefenderScanTypePUserDefined returns a pointer to DefenderScanTypeVUserDefined
+func DefenderScanTypePUserDefined() *DefenderScanType {
+ v := DefenderScanTypeVUserDefined
+ return &v
+}
+
+// DefenderScanTypePDisabled returns a pointer to DefenderScanTypeVDisabled
+func DefenderScanTypePDisabled() *DefenderScanType {
+ v := DefenderScanTypeVDisabled
+ return &v
+}
+
+// DefenderScanTypePQuick returns a pointer to DefenderScanTypeVQuick
+func DefenderScanTypePQuick() *DefenderScanType {
+ v := DefenderScanTypeVQuick
+ return &v
+}
+
+// DefenderScanTypePFull returns a pointer to DefenderScanTypeVFull
+func DefenderScanTypePFull() *DefenderScanType {
+ v := DefenderScanTypeVFull
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderSecurityCenterITContactDisplayTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderSecurityCenterITContactDisplayTypeEnum.go
new file mode 100644
index 00000000..5cf5c940
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderSecurityCenterITContactDisplayTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderSecurityCenterITContactDisplayType undocumented
+type DefenderSecurityCenterITContactDisplayType int
+
+const (
+ // DefenderSecurityCenterITContactDisplayTypeVNotConfigured undocumented
+ DefenderSecurityCenterITContactDisplayTypeVNotConfigured DefenderSecurityCenterITContactDisplayType = 0
+ // DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications undocumented
+ DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications DefenderSecurityCenterITContactDisplayType = 1
+ // DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp undocumented
+ DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp DefenderSecurityCenterITContactDisplayType = 2
+ // DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications undocumented
+ DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications DefenderSecurityCenterITContactDisplayType = 3
+)
+
+// DefenderSecurityCenterITContactDisplayTypePNotConfigured returns a pointer to DefenderSecurityCenterITContactDisplayTypeVNotConfigured
+func DefenderSecurityCenterITContactDisplayTypePNotConfigured() *DefenderSecurityCenterITContactDisplayType {
+ v := DefenderSecurityCenterITContactDisplayTypeVNotConfigured
+ return &v
+}
+
+// DefenderSecurityCenterITContactDisplayTypePDisplayInAppAndInNotifications returns a pointer to DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications
+func DefenderSecurityCenterITContactDisplayTypePDisplayInAppAndInNotifications() *DefenderSecurityCenterITContactDisplayType {
+ v := DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications
+ return &v
+}
+
+// DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInApp returns a pointer to DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp
+func DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInApp() *DefenderSecurityCenterITContactDisplayType {
+ v := DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp
+ return &v
+}
+
+// DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInNotifications returns a pointer to DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications
+func DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInNotifications() *DefenderSecurityCenterITContactDisplayType {
+ v := DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderSecurityCenterNotificationsFromAppTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderSecurityCenterNotificationsFromAppTypeEnum.go
new file mode 100644
index 00000000..9a99bafd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderSecurityCenterNotificationsFromAppTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderSecurityCenterNotificationsFromAppType undocumented
+type DefenderSecurityCenterNotificationsFromAppType int
+
+const (
+ // DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured undocumented
+ DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured DefenderSecurityCenterNotificationsFromAppType = 0
+ // DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications undocumented
+ DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications DefenderSecurityCenterNotificationsFromAppType = 1
+ // DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications undocumented
+ DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications DefenderSecurityCenterNotificationsFromAppType = 2
+)
+
+// DefenderSecurityCenterNotificationsFromAppTypePNotConfigured returns a pointer to DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured
+func DefenderSecurityCenterNotificationsFromAppTypePNotConfigured() *DefenderSecurityCenterNotificationsFromAppType {
+ v := DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured
+ return &v
+}
+
+// DefenderSecurityCenterNotificationsFromAppTypePBlockNoncriticalNotifications returns a pointer to DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications
+func DefenderSecurityCenterNotificationsFromAppTypePBlockNoncriticalNotifications() *DefenderSecurityCenterNotificationsFromAppType {
+ v := DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications
+ return &v
+}
+
+// DefenderSecurityCenterNotificationsFromAppTypePBlockAllNotifications returns a pointer to DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications
+func DefenderSecurityCenterNotificationsFromAppTypePBlockAllNotifications() *DefenderSecurityCenterNotificationsFromAppType {
+ v := DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderSubmitSamplesConsentTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderSubmitSamplesConsentTypeEnum.go
new file mode 100644
index 00000000..3a4de7c7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderSubmitSamplesConsentTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderSubmitSamplesConsentType undocumented
+type DefenderSubmitSamplesConsentType int
+
+const (
+ // DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically undocumented
+ DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically DefenderSubmitSamplesConsentType = 0
+ // DefenderSubmitSamplesConsentTypeVAlwaysPrompt undocumented
+ DefenderSubmitSamplesConsentTypeVAlwaysPrompt DefenderSubmitSamplesConsentType = 1
+ // DefenderSubmitSamplesConsentTypeVNeverSend undocumented
+ DefenderSubmitSamplesConsentTypeVNeverSend DefenderSubmitSamplesConsentType = 2
+ // DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically undocumented
+ DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically DefenderSubmitSamplesConsentType = 3
+)
+
+// DefenderSubmitSamplesConsentTypePSendSafeSamplesAutomatically returns a pointer to DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically
+func DefenderSubmitSamplesConsentTypePSendSafeSamplesAutomatically() *DefenderSubmitSamplesConsentType {
+ v := DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically
+ return &v
+}
+
+// DefenderSubmitSamplesConsentTypePAlwaysPrompt returns a pointer to DefenderSubmitSamplesConsentTypeVAlwaysPrompt
+func DefenderSubmitSamplesConsentTypePAlwaysPrompt() *DefenderSubmitSamplesConsentType {
+ v := DefenderSubmitSamplesConsentTypeVAlwaysPrompt
+ return &v
+}
+
+// DefenderSubmitSamplesConsentTypePNeverSend returns a pointer to DefenderSubmitSamplesConsentTypeVNeverSend
+func DefenderSubmitSamplesConsentTypePNeverSend() *DefenderSubmitSamplesConsentType {
+ v := DefenderSubmitSamplesConsentTypeVNeverSend
+ return &v
+}
+
+// DefenderSubmitSamplesConsentTypePSendAllSamplesAutomatically returns a pointer to DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically
+func DefenderSubmitSamplesConsentTypePSendAllSamplesAutomatically() *DefenderSubmitSamplesConsentType {
+ v := DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderThreatActionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderThreatActionEnum.go
new file mode 100644
index 00000000..62d2e240
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderThreatActionEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderThreatAction undocumented
+type DefenderThreatAction int
+
+const (
+ // DefenderThreatActionVDeviceDefault undocumented
+ DefenderThreatActionVDeviceDefault DefenderThreatAction = 0
+ // DefenderThreatActionVClean undocumented
+ DefenderThreatActionVClean DefenderThreatAction = 1
+ // DefenderThreatActionVQuarantine undocumented
+ DefenderThreatActionVQuarantine DefenderThreatAction = 2
+ // DefenderThreatActionVRemove undocumented
+ DefenderThreatActionVRemove DefenderThreatAction = 3
+ // DefenderThreatActionVAllow undocumented
+ DefenderThreatActionVAllow DefenderThreatAction = 4
+ // DefenderThreatActionVUserDefined undocumented
+ DefenderThreatActionVUserDefined DefenderThreatAction = 5
+ // DefenderThreatActionVBlock undocumented
+ DefenderThreatActionVBlock DefenderThreatAction = 6
+)
+
+// DefenderThreatActionPDeviceDefault returns a pointer to DefenderThreatActionVDeviceDefault
+func DefenderThreatActionPDeviceDefault() *DefenderThreatAction {
+ v := DefenderThreatActionVDeviceDefault
+ return &v
+}
+
+// DefenderThreatActionPClean returns a pointer to DefenderThreatActionVClean
+func DefenderThreatActionPClean() *DefenderThreatAction {
+ v := DefenderThreatActionVClean
+ return &v
+}
+
+// DefenderThreatActionPQuarantine returns a pointer to DefenderThreatActionVQuarantine
+func DefenderThreatActionPQuarantine() *DefenderThreatAction {
+ v := DefenderThreatActionVQuarantine
+ return &v
+}
+
+// DefenderThreatActionPRemove returns a pointer to DefenderThreatActionVRemove
+func DefenderThreatActionPRemove() *DefenderThreatAction {
+ v := DefenderThreatActionVRemove
+ return &v
+}
+
+// DefenderThreatActionPAllow returns a pointer to DefenderThreatActionVAllow
+func DefenderThreatActionPAllow() *DefenderThreatAction {
+ v := DefenderThreatActionVAllow
+ return &v
+}
+
+// DefenderThreatActionPUserDefined returns a pointer to DefenderThreatActionVUserDefined
+func DefenderThreatActionPUserDefined() *DefenderThreatAction {
+ v := DefenderThreatActionVUserDefined
+ return &v
+}
+
+// DefenderThreatActionPBlock returns a pointer to DefenderThreatActionVBlock
+func DefenderThreatActionPBlock() *DefenderThreatAction {
+ v := DefenderThreatActionVBlock
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DelegateMeetingMessageDeliveryOptionsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DelegateMeetingMessageDeliveryOptionsEnum.go
new file mode 100644
index 00000000..2bfb1b95
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DelegateMeetingMessageDeliveryOptionsEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DelegateMeetingMessageDeliveryOptions undocumented
+type DelegateMeetingMessageDeliveryOptions int
+
+const (
+ // DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal undocumented
+ DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal DelegateMeetingMessageDeliveryOptions = 0
+ // DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal undocumented
+ DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal DelegateMeetingMessageDeliveryOptions = 1
+ // DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly undocumented
+ DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly DelegateMeetingMessageDeliveryOptions = 2
+)
+
+// DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndInformationToPrincipal returns a pointer to DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal
+func DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndInformationToPrincipal() *DelegateMeetingMessageDeliveryOptions {
+ v := DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal
+ return &v
+}
+
+// DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndPrincipal returns a pointer to DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal
+func DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndPrincipal() *DelegateMeetingMessageDeliveryOptions {
+ v := DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal
+ return &v
+}
+
+// DelegateMeetingMessageDeliveryOptionsPSendToDelegateOnly returns a pointer to DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly
+func DelegateMeetingMessageDeliveryOptionsPSendToDelegateOnly() *DelegateMeetingMessageDeliveryOptions {
+ v := DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DelegatedPermissionClassificationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DelegatedPermissionClassificationModel.go
new file mode 100644
index 00000000..6409dc8e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DelegatedPermissionClassificationModel.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/matterbridge/msgraph.go/beta/DeleteActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeleteActionModel.go
new file mode 100644
index 00000000..47164ec9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeleteActionModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeleteUserFromSharedAppleDeviceActionResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeleteUserFromSharedAppleDeviceActionResultModel.go
new file mode 100644
index 00000000..3cd94d2c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeleteUserFromSharedAppleDeviceActionResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/DeletedModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeletedModel.go
new file mode 100644
index 00000000..6e58e673
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeletedModel.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/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthAbsoluteModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthAbsoluteModel.go
new file mode 100644
index 00000000..6264e3ad
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthAbsoluteModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthBusinessHoursLimitModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthBusinessHoursLimitModel.go
new file mode 100644
index 00000000..4b7dc4d3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthBusinessHoursLimitModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthHoursWithPercentageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthHoursWithPercentageModel.go
new file mode 100644
index 00000000..2b7d1ac6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthHoursWithPercentageModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthModel.go
new file mode 100644
index 00000000..5d7e72da
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationBandwidth undocumented
+type DeliveryOptimizationBandwidth struct {
+ // Object is the base model of DeliveryOptimizationBandwidth
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthPercentageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthPercentageModel.go
new file mode 100644
index 00000000..107148e4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthPercentageModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDCustomModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDCustomModel.go
new file mode 100644
index 00000000..8e5d2001
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDCustomModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDOptionsTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDOptionsTypeEnum.go
new file mode 100644
index 00000000..94042652
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDOptionsTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationGroupIDOptionsType undocumented
+type DeliveryOptimizationGroupIDOptionsType int
+
+const (
+ // DeliveryOptimizationGroupIDOptionsTypeVNotConfigured undocumented
+ DeliveryOptimizationGroupIDOptionsTypeVNotConfigured DeliveryOptimizationGroupIDOptionsType = 0
+ // DeliveryOptimizationGroupIDOptionsTypeVAdSite undocumented
+ DeliveryOptimizationGroupIDOptionsTypeVAdSite DeliveryOptimizationGroupIDOptionsType = 1
+ // DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid undocumented
+ DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid DeliveryOptimizationGroupIDOptionsType = 2
+ // DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption undocumented
+ DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption DeliveryOptimizationGroupIDOptionsType = 3
+ // DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix undocumented
+ DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix DeliveryOptimizationGroupIDOptionsType = 4
+)
+
+// DeliveryOptimizationGroupIDOptionsTypePNotConfigured returns a pointer to DeliveryOptimizationGroupIDOptionsTypeVNotConfigured
+func DeliveryOptimizationGroupIDOptionsTypePNotConfigured() *DeliveryOptimizationGroupIDOptionsType {
+ v := DeliveryOptimizationGroupIDOptionsTypeVNotConfigured
+ return &v
+}
+
+// DeliveryOptimizationGroupIDOptionsTypePAdSite returns a pointer to DeliveryOptimizationGroupIDOptionsTypeVAdSite
+func DeliveryOptimizationGroupIDOptionsTypePAdSite() *DeliveryOptimizationGroupIDOptionsType {
+ v := DeliveryOptimizationGroupIDOptionsTypeVAdSite
+ return &v
+}
+
+// DeliveryOptimizationGroupIDOptionsTypePAuthenticatedDomainSid returns a pointer to DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid
+func DeliveryOptimizationGroupIDOptionsTypePAuthenticatedDomainSid() *DeliveryOptimizationGroupIDOptionsType {
+ v := DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid
+ return &v
+}
+
+// DeliveryOptimizationGroupIDOptionsTypePDhcpUserOption returns a pointer to DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption
+func DeliveryOptimizationGroupIDOptionsTypePDhcpUserOption() *DeliveryOptimizationGroupIDOptionsType {
+ v := DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption
+ return &v
+}
+
+// DeliveryOptimizationGroupIDOptionsTypePDNSSuffix returns a pointer to DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix
+func DeliveryOptimizationGroupIDOptionsTypePDNSSuffix() *DeliveryOptimizationGroupIDOptionsType {
+ v := DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDSourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDSourceModel.go
new file mode 100644
index 00000000..45ab6547
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDSourceModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationGroupIDSource undocumented
+type DeliveryOptimizationGroupIDSource struct {
+ // Object is the base model of DeliveryOptimizationGroupIDSource
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDSourceOptionsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDSourceOptionsModel.go
new file mode 100644
index 00000000..a7957541
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDSourceOptionsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeAbsoluteModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeAbsoluteModel.go
new file mode 100644
index 00000000..ff1e33bc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeAbsoluteModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeModel.go
new file mode 100644
index 00000000..7f1723f4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationMaxCacheSize undocumented
+type DeliveryOptimizationMaxCacheSize struct {
+ // Object is the base model of DeliveryOptimizationMaxCacheSize
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizePercentageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizePercentageModel.go
new file mode 100644
index 00000000..9eefd0b5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizePercentageModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/DeliveryOptimizationRestrictPeerSelectionByOptionsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationRestrictPeerSelectionByOptionsEnum.go
new file mode 100644
index 00000000..d4ca9d58
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationRestrictPeerSelectionByOptionsEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationRestrictPeerSelectionByOptions undocumented
+type DeliveryOptimizationRestrictPeerSelectionByOptions int
+
+const (
+ // DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured undocumented
+ DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured DeliveryOptimizationRestrictPeerSelectionByOptions = 0
+ // DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask undocumented
+ DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask DeliveryOptimizationRestrictPeerSelectionByOptions = 1
+)
+
+// DeliveryOptimizationRestrictPeerSelectionByOptionsPNotConfigured returns a pointer to DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured
+func DeliveryOptimizationRestrictPeerSelectionByOptionsPNotConfigured() *DeliveryOptimizationRestrictPeerSelectionByOptions {
+ v := DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured
+ return &v
+}
+
+// DeliveryOptimizationRestrictPeerSelectionByOptionsPSubnetMask returns a pointer to DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask
+func DeliveryOptimizationRestrictPeerSelectionByOptionsPSubnetMask() *DeliveryOptimizationRestrictPeerSelectionByOptions {
+ v := DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DepEnrollmentBaseProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DepEnrollmentBaseProfileModel.go
new file mode 100644
index 00000000..605fad19
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DepEnrollmentBaseProfileModel.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DepEnrollmentProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DepEnrollmentProfileModel.go
new file mode 100644
index 00000000..54db70b8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DepEnrollmentProfileModel.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DepIOSEnrollmentProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DepIOSEnrollmentProfileModel.go
new file mode 100644
index 00000000..e4b8ad2d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DepIOSEnrollmentProfileModel.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DepIOSEnrollmentProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DepIOSEnrollmentProfileRequest.go
new file mode 100644
index 00000000..7d8c74b4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DepIOSEnrollmentProfileRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DepMacOSEnrollmentProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DepMacOSEnrollmentProfileModel.go
new file mode 100644
index 00000000..4f4203ca
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DepMacOSEnrollmentProfileModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DepMacOSEnrollmentProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DepMacOSEnrollmentProfileRequest.go
new file mode 100644
index 00000000..5b00e343
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DepMacOSEnrollmentProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingAction.go
new file mode 100644
index 00000000..d3fc24be
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingAction.go
@@ -0,0 +1,129 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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 {
+}
+
+//
+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/matterbridge/msgraph.go/beta/DepOnboardingSettingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingModel.go
new file mode 100644
index 00000000..ea4aabfe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/DepOnboardingSettingRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingRequest.go
new file mode 100644
index 00000000..001a22d5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingRequest.go
@@ -0,0 +1,247 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EnrollmentProfile collection
+func (r *DepOnboardingSettingEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]EnrollmentProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ImportedAppleDeviceIdentity collection
+func (r *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedAppleDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/DepTokenTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DepTokenTypeEnum.go
new file mode 100644
index 00000000..3ad5f559
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DepTokenTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DepTokenType undocumented
+type DepTokenType int
+
+const (
+ // DepTokenTypeVNone undocumented
+ DepTokenTypeVNone DepTokenType = 0
+ // DepTokenTypeVDep undocumented
+ DepTokenTypeVDep DepTokenType = 1
+ // DepTokenTypeVAppleSchoolManager undocumented
+ DepTokenTypeVAppleSchoolManager DepTokenType = 2
+)
+
+// DepTokenTypePNone returns a pointer to DepTokenTypeVNone
+func DepTokenTypePNone() *DepTokenType {
+ v := DepTokenTypeVNone
+ return &v
+}
+
+// DepTokenTypePDep returns a pointer to DepTokenTypeVDep
+func DepTokenTypePDep() *DepTokenType {
+ v := DepTokenTypeVDep
+ return &v
+}
+
+// DepTokenTypePAppleSchoolManager returns a pointer to DepTokenTypeVAppleSchoolManager
+func DepTokenTypePAppleSchoolManager() *DepTokenType {
+ v := DepTokenTypeVAppleSchoolManager
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DerivedCredentialProviderTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DerivedCredentialProviderTypeEnum.go
new file mode 100644
index 00000000..3022db6c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DerivedCredentialProviderTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DerivedCredentialProviderType undocumented
+type DerivedCredentialProviderType int
+
+const (
+ // DerivedCredentialProviderTypeVNotConfigured undocumented
+ DerivedCredentialProviderTypeVNotConfigured DerivedCredentialProviderType = 0
+ // DerivedCredentialProviderTypeVEntrustDataCard undocumented
+ DerivedCredentialProviderTypeVEntrustDataCard DerivedCredentialProviderType = 1
+ // DerivedCredentialProviderTypeVPurebred undocumented
+ DerivedCredentialProviderTypeVPurebred DerivedCredentialProviderType = 2
+ // DerivedCredentialProviderTypeVXTec undocumented
+ DerivedCredentialProviderTypeVXTec DerivedCredentialProviderType = 3
+ // DerivedCredentialProviderTypeVIntercede undocumented
+ DerivedCredentialProviderTypeVIntercede DerivedCredentialProviderType = 4
+)
+
+// DerivedCredentialProviderTypePNotConfigured returns a pointer to DerivedCredentialProviderTypeVNotConfigured
+func DerivedCredentialProviderTypePNotConfigured() *DerivedCredentialProviderType {
+ v := DerivedCredentialProviderTypeVNotConfigured
+ return &v
+}
+
+// DerivedCredentialProviderTypePEntrustDataCard returns a pointer to DerivedCredentialProviderTypeVEntrustDataCard
+func DerivedCredentialProviderTypePEntrustDataCard() *DerivedCredentialProviderType {
+ v := DerivedCredentialProviderTypeVEntrustDataCard
+ return &v
+}
+
+// DerivedCredentialProviderTypePPurebred returns a pointer to DerivedCredentialProviderTypeVPurebred
+func DerivedCredentialProviderTypePPurebred() *DerivedCredentialProviderType {
+ v := DerivedCredentialProviderTypeVPurebred
+ return &v
+}
+
+// DerivedCredentialProviderTypePXTec returns a pointer to DerivedCredentialProviderTypeVXTec
+func DerivedCredentialProviderTypePXTec() *DerivedCredentialProviderType {
+ v := DerivedCredentialProviderTypeVXTec
+ return &v
+}
+
+// DerivedCredentialProviderTypePIntercede returns a pointer to DerivedCredentialProviderTypeVIntercede
+func DerivedCredentialProviderTypePIntercede() *DerivedCredentialProviderType {
+ v := DerivedCredentialProviderTypeVIntercede
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DetailsInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DetailsInfoModel.go
new file mode 100644
index 00000000..b8dea67f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DetailsInfoModel.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/matterbridge/msgraph.go/beta/DetectedAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DetectedAppModel.go
new file mode 100644
index 00000000..f1593f6c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DetectedAppModel.go
@@ -0,0 +1,19 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DetectedAppRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DetectedAppRequest.go
new file mode 100644
index 00000000..60555fc7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DetectedAppRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDevice collection
+func (r *DetectedAppManagedDevicesCollectionRequest) Get(ctx context.Context) ([]ManagedDevice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/DetectedSensitiveContentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DetectedSensitiveContentModel.go
new file mode 100644
index 00000000..d6a19c25
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DetectedSensitiveContentModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DetectedSensitiveContentWrapperModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DetectedSensitiveContentWrapperModel.go
new file mode 100644
index 00000000..e2fc47b9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DetectedSensitiveContentWrapperModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/DeviceActionResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceActionResultModel.go
new file mode 100644
index 00000000..3e00ab4b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceActionResultModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignedRoleDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignedRoleDetailsModel.go
new file mode 100644
index 00000000..3a1928eb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignedRoleDetailsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignmentSourceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignmentSourceEnum.go
new file mode 100644
index 00000000..2d0a06a9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignmentSourceEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAndAppManagementAssignmentSource undocumented
+type DeviceAndAppManagementAssignmentSource int
+
+const (
+ // DeviceAndAppManagementAssignmentSourceVDirect undocumented
+ DeviceAndAppManagementAssignmentSourceVDirect DeviceAndAppManagementAssignmentSource = 0
+ // DeviceAndAppManagementAssignmentSourceVPolicySets undocumented
+ DeviceAndAppManagementAssignmentSourceVPolicySets DeviceAndAppManagementAssignmentSource = 1
+)
+
+// DeviceAndAppManagementAssignmentSourcePDirect returns a pointer to DeviceAndAppManagementAssignmentSourceVDirect
+func DeviceAndAppManagementAssignmentSourcePDirect() *DeviceAndAppManagementAssignmentSource {
+ v := DeviceAndAppManagementAssignmentSourceVDirect
+ return &v
+}
+
+// DeviceAndAppManagementAssignmentSourcePPolicySets returns a pointer to DeviceAndAppManagementAssignmentSourceVPolicySets
+func DeviceAndAppManagementAssignmentSourcePPolicySets() *DeviceAndAppManagementAssignmentSource {
+ v := DeviceAndAppManagementAssignmentSourceVPolicySets
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignmentTargetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignmentTargetModel.go
new file mode 100644
index 00000000..2493b8ac
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignmentTargetModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAndAppManagementAssignmentTarget undocumented
+type DeviceAndAppManagementAssignmentTarget struct {
+ // Object is the base model of DeviceAndAppManagementAssignmentTarget
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementDataModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementDataModel.go
new file mode 100644
index 00000000..57131e29
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementDataModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAndAppManagementData undocumented
+type DeviceAndAppManagementData struct {
+ // Object is the base model of DeviceAndAppManagementData
+ Object
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentModel.go
new file mode 100644
index 00000000..bac66fab
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentRequest.go
new file mode 100644
index 00000000..d1f82041
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RoleScopeTag collection
+func (r *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest) Get(ctx context.Context) ([]RoleScopeTag, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleDefinitionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleDefinitionModel.go
new file mode 100644
index 00000000..6c80fd03
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleDefinitionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementAction.go
new file mode 100644
index 00000000..265ff631
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestParameter undocumented
+type DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestParameter struct {
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementModel.go
new file mode 100644
index 00000000..3b4251eb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementModel.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementRequest.go
new file mode 100644
index 00000000..24d497ad
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementRequest.go
@@ -0,0 +1,2221 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AndroidManagedAppProtection collection
+func (r *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest) Get(ctx context.Context) ([]AndroidManagedAppProtection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DefaultManagedAppProtection collection
+func (r *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest) Get(ctx context.Context) ([]DefaultManagedAppProtection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceAppManagementTask collection
+func (r *DeviceAppManagementDeviceAppManagementTasksCollectionRequest) Get(ctx context.Context) ([]DeviceAppManagementTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EnterpriseCodeSigningCertificate collection
+func (r *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest) Get(ctx context.Context) ([]EnterpriseCodeSigningCertificate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IOSLobAppProvisioningConfiguration collection
+func (r *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest) Get(ctx context.Context) ([]IOSLobAppProvisioningConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IOSManagedAppProtection collection
+func (r *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest) Get(ctx context.Context) ([]IOSManagedAppProtection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAppPolicy collection
+func (r *DeviceAppManagementManagedAppPoliciesCollectionRequest) Get(ctx context.Context) ([]ManagedAppPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAppRegistration collection
+func (r *DeviceAppManagementManagedAppRegistrationsCollectionRequest) Get(ctx context.Context) ([]ManagedAppRegistration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAppStatus collection
+func (r *DeviceAppManagementManagedAppStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedAppStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedEBookCategory collection
+func (r *DeviceAppManagementManagedEBookCategoriesCollectionRequest) Get(ctx context.Context) ([]ManagedEBookCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedEBook collection
+func (r *DeviceAppManagementManagedEBooksCollectionRequest) Get(ctx context.Context) ([]ManagedEBook, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MdmWindowsInformationProtectionPolicy collection
+func (r *DeviceAppManagementMdmWindowsInformationProtectionPoliciesCollectionRequest) Get(ctx context.Context) ([]MdmWindowsInformationProtectionPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppCategory collection
+func (r *DeviceAppManagementMobileAppCategoriesCollectionRequest) Get(ctx context.Context) ([]MobileAppCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfiguration collection
+func (r *DeviceAppManagementMobileAppConfigurationsCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileApp collection
+func (r *DeviceAppManagementMobileAppsCollectionRequest) Get(ctx context.Context) ([]MobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PolicySet collection
+func (r *DeviceAppManagementPolicySetsCollectionRequest) Get(ctx context.Context) ([]PolicySet, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SideLoadingKey collection
+func (r *DeviceAppManagementSideLoadingKeysCollectionRequest) Get(ctx context.Context) ([]SideLoadingKey, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TargetedManagedAppConfiguration collection
+func (r *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest) Get(ctx context.Context) ([]TargetedManagedAppConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for VppToken collection
+func (r *DeviceAppManagementVppTokensCollectionRequest) Get(ctx context.Context) ([]VppToken, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicy collection
+func (r *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest) Get(ctx context.Context) ([]WindowsDefenderApplicationControlSupplementalPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsInformationProtectionDeviceRegistration collection
+func (r *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionDeviceRegistration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsInformationProtectionPolicy collection
+func (r *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsInformationProtectionWipeAction collection
+func (r *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionWipeAction, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskAction.go
new file mode 100644
index 00000000..57148226
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskAction.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceAppManagementTaskUpdateStatusRequestParameter undocumented
+type DeviceAppManagementTaskUpdateStatusRequestParameter struct {
+ // Status undocumented
+ Status *DeviceAppManagementTaskStatus `json:"status,omitempty"`
+ // Note undocumented
+ Note *string `json:"note,omitempty"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskCategoryEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskCategoryEnum.go
new file mode 100644
index 00000000..c6fc64e6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskCategoryEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAppManagementTaskCategory undocumented
+type DeviceAppManagementTaskCategory int
+
+const (
+ // DeviceAppManagementTaskCategoryVUnknown undocumented
+ DeviceAppManagementTaskCategoryVUnknown DeviceAppManagementTaskCategory = 0
+ // DeviceAppManagementTaskCategoryVAdvancedThreatProtection undocumented
+ DeviceAppManagementTaskCategoryVAdvancedThreatProtection DeviceAppManagementTaskCategory = 1
+)
+
+// DeviceAppManagementTaskCategoryPUnknown returns a pointer to DeviceAppManagementTaskCategoryVUnknown
+func DeviceAppManagementTaskCategoryPUnknown() *DeviceAppManagementTaskCategory {
+ v := DeviceAppManagementTaskCategoryVUnknown
+ return &v
+}
+
+// DeviceAppManagementTaskCategoryPAdvancedThreatProtection returns a pointer to DeviceAppManagementTaskCategoryVAdvancedThreatProtection
+func DeviceAppManagementTaskCategoryPAdvancedThreatProtection() *DeviceAppManagementTaskCategory {
+ v := DeviceAppManagementTaskCategoryVAdvancedThreatProtection
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskModel.go
new file mode 100644
index 00000000..fff86b3e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskPriorityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskPriorityEnum.go
new file mode 100644
index 00000000..34cf2d60
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskPriorityEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAppManagementTaskPriority undocumented
+type DeviceAppManagementTaskPriority int
+
+const (
+ // DeviceAppManagementTaskPriorityVNone undocumented
+ DeviceAppManagementTaskPriorityVNone DeviceAppManagementTaskPriority = 0
+ // DeviceAppManagementTaskPriorityVHigh undocumented
+ DeviceAppManagementTaskPriorityVHigh DeviceAppManagementTaskPriority = 1
+ // DeviceAppManagementTaskPriorityVLow undocumented
+ DeviceAppManagementTaskPriorityVLow DeviceAppManagementTaskPriority = 2
+)
+
+// DeviceAppManagementTaskPriorityPNone returns a pointer to DeviceAppManagementTaskPriorityVNone
+func DeviceAppManagementTaskPriorityPNone() *DeviceAppManagementTaskPriority {
+ v := DeviceAppManagementTaskPriorityVNone
+ return &v
+}
+
+// DeviceAppManagementTaskPriorityPHigh returns a pointer to DeviceAppManagementTaskPriorityVHigh
+func DeviceAppManagementTaskPriorityPHigh() *DeviceAppManagementTaskPriority {
+ v := DeviceAppManagementTaskPriorityVHigh
+ return &v
+}
+
+// DeviceAppManagementTaskPriorityPLow returns a pointer to DeviceAppManagementTaskPriorityVLow
+func DeviceAppManagementTaskPriorityPLow() *DeviceAppManagementTaskPriority {
+ v := DeviceAppManagementTaskPriorityVLow
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskRequest.go
new file mode 100644
index 00000000..e190e5d8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskStatusEnum.go
new file mode 100644
index 00000000..7c5ce4c0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAppManagementTaskStatus undocumented
+type DeviceAppManagementTaskStatus int
+
+const (
+ // DeviceAppManagementTaskStatusVUnknown undocumented
+ DeviceAppManagementTaskStatusVUnknown DeviceAppManagementTaskStatus = 0
+ // DeviceAppManagementTaskStatusVPending undocumented
+ DeviceAppManagementTaskStatusVPending DeviceAppManagementTaskStatus = 1
+ // DeviceAppManagementTaskStatusVActive undocumented
+ DeviceAppManagementTaskStatusVActive DeviceAppManagementTaskStatus = 2
+ // DeviceAppManagementTaskStatusVCompleted undocumented
+ DeviceAppManagementTaskStatusVCompleted DeviceAppManagementTaskStatus = 3
+ // DeviceAppManagementTaskStatusVRejected undocumented
+ DeviceAppManagementTaskStatusVRejected DeviceAppManagementTaskStatus = 4
+)
+
+// DeviceAppManagementTaskStatusPUnknown returns a pointer to DeviceAppManagementTaskStatusVUnknown
+func DeviceAppManagementTaskStatusPUnknown() *DeviceAppManagementTaskStatus {
+ v := DeviceAppManagementTaskStatusVUnknown
+ return &v
+}
+
+// DeviceAppManagementTaskStatusPPending returns a pointer to DeviceAppManagementTaskStatusVPending
+func DeviceAppManagementTaskStatusPPending() *DeviceAppManagementTaskStatus {
+ v := DeviceAppManagementTaskStatusVPending
+ return &v
+}
+
+// DeviceAppManagementTaskStatusPActive returns a pointer to DeviceAppManagementTaskStatusVActive
+func DeviceAppManagementTaskStatusPActive() *DeviceAppManagementTaskStatus {
+ v := DeviceAppManagementTaskStatusVActive
+ return &v
+}
+
+// DeviceAppManagementTaskStatusPCompleted returns a pointer to DeviceAppManagementTaskStatusVCompleted
+func DeviceAppManagementTaskStatusPCompleted() *DeviceAppManagementTaskStatus {
+ v := DeviceAppManagementTaskStatusVCompleted
+ return &v
+}
+
+// DeviceAppManagementTaskStatusPRejected returns a pointer to DeviceAppManagementTaskStatusVRejected
+func DeviceAppManagementTaskStatusPRejected() *DeviceAppManagementTaskStatus {
+ v := DeviceAppManagementTaskStatusVRejected
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCategoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCategoryModel.go
new file mode 100644
index 00000000..3aa58b42
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCategoryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCategoryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCategoryRequest.go
new file mode 100644
index 00000000..0523ac45
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCategoryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionItemModel.go
new file mode 100644
index 00000000..af4d8a1c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionItemModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionItemRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionItemRequest.go
new file mode 100644
index 00000000..9133321d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionItemRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionTypeEnum.go
new file mode 100644
index 00000000..f8faed51
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceComplianceActionType undocumented
+type DeviceComplianceActionType int
+
+const (
+ // DeviceComplianceActionTypeVNoAction undocumented
+ DeviceComplianceActionTypeVNoAction DeviceComplianceActionType = 0
+ // DeviceComplianceActionTypeVNotification undocumented
+ DeviceComplianceActionTypeVNotification DeviceComplianceActionType = 1
+ // DeviceComplianceActionTypeVBlock undocumented
+ DeviceComplianceActionTypeVBlock DeviceComplianceActionType = 2
+ // DeviceComplianceActionTypeVRetire undocumented
+ DeviceComplianceActionTypeVRetire DeviceComplianceActionType = 3
+ // DeviceComplianceActionTypeVWipe undocumented
+ DeviceComplianceActionTypeVWipe DeviceComplianceActionType = 4
+ // DeviceComplianceActionTypeVRemoveResourceAccessProfiles undocumented
+ DeviceComplianceActionTypeVRemoveResourceAccessProfiles DeviceComplianceActionType = 5
+ // DeviceComplianceActionTypeVPushNotification undocumented
+ DeviceComplianceActionTypeVPushNotification DeviceComplianceActionType = 9
+ // DeviceComplianceActionTypeVRemoteLock undocumented
+ DeviceComplianceActionTypeVRemoteLock DeviceComplianceActionType = 10
+)
+
+// DeviceComplianceActionTypePNoAction returns a pointer to DeviceComplianceActionTypeVNoAction
+func DeviceComplianceActionTypePNoAction() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVNoAction
+ return &v
+}
+
+// DeviceComplianceActionTypePNotification returns a pointer to DeviceComplianceActionTypeVNotification
+func DeviceComplianceActionTypePNotification() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVNotification
+ return &v
+}
+
+// DeviceComplianceActionTypePBlock returns a pointer to DeviceComplianceActionTypeVBlock
+func DeviceComplianceActionTypePBlock() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVBlock
+ return &v
+}
+
+// DeviceComplianceActionTypePRetire returns a pointer to DeviceComplianceActionTypeVRetire
+func DeviceComplianceActionTypePRetire() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVRetire
+ return &v
+}
+
+// DeviceComplianceActionTypePWipe returns a pointer to DeviceComplianceActionTypeVWipe
+func DeviceComplianceActionTypePWipe() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVWipe
+ return &v
+}
+
+// DeviceComplianceActionTypePRemoveResourceAccessProfiles returns a pointer to DeviceComplianceActionTypeVRemoveResourceAccessProfiles
+func DeviceComplianceActionTypePRemoveResourceAccessProfiles() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVRemoveResourceAccessProfiles
+ return &v
+}
+
+// DeviceComplianceActionTypePPushNotification returns a pointer to DeviceComplianceActionTypeVPushNotification
+func DeviceComplianceActionTypePPushNotification() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVPushNotification
+ return &v
+}
+
+// DeviceComplianceActionTypePRemoteLock returns a pointer to DeviceComplianceActionTypeVRemoteLock
+func DeviceComplianceActionTypePRemoteLock() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVRemoteLock
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceOverviewModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceOverviewModel.go
new file mode 100644
index 00000000..9cd4dfd7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceOverviewModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceOverviewRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceOverviewRequest.go
new file mode 100644
index 00000000..12cfb672
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceOverviewRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceStatusModel.go
new file mode 100644
index 00000000..f1569335
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceStatusModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceStatusRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceStatusRequest.go
new file mode 100644
index 00000000..d4805d52
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAction.go
new file mode 100644
index 00000000..d3309fd3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAction.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/matterbridge/msgraph.go/jsonx"
+)
+
+// DeviceCompliancePolicyCollectionHasPayloadLinksRequestParameter undocumented
+type DeviceCompliancePolicyCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestParameter undocumented
+type DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestParameter struct {
+}
+
+// DeviceCompliancePolicyAssignRequestParameter undocumented
+type DeviceCompliancePolicyAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []DeviceCompliancePolicyAssignment `json:"assignments,omitempty"`
+}
+
+// DeviceCompliancePolicyScheduleActionsForRulesRequestParameter undocumented
+type DeviceCompliancePolicyScheduleActionsForRulesRequestParameter struct {
+ // DeviceComplianceScheduledActionForRules undocumented
+ DeviceComplianceScheduledActionForRules []DeviceComplianceScheduledActionForRule `json:"deviceComplianceScheduledActionForRules,omitempty"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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 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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]DeviceCompliancePolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAssignmentModel.go
new file mode 100644
index 00000000..26797c62
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAssignmentRequest.go
new file mode 100644
index 00000000..d08178fb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryModel.go
new file mode 100644
index 00000000..41060c50
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryRequest.go
new file mode 100644
index 00000000..c76b6817
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentModel.go
new file mode 100644
index 00000000..3db43cf0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentRequest.go
new file mode 100644
index 00000000..1ecf815c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// DeviceCompliancePolicy is navigation property
+func (b *DeviceCompliancePolicyGroupAssignmentRequestBuilder) DeviceCompliancePolicy() *DeviceCompliancePolicyRequestBuilder {
+ bb := &DeviceCompliancePolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceCompliancePolicy"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyModel.go
new file mode 100644
index 00000000..e147b185
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyPolicySetItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyPolicySetItemModel.go
new file mode 100644
index 00000000..c0a77006
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyPolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceCompliancePolicyPolicySetItem A class containing the properties used for device compliance policy PolicySetItem.
+type DeviceCompliancePolicyPolicySetItem struct {
+ // PolicySetItem is the base model of DeviceCompliancePolicyPolicySetItem
+ PolicySetItem
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyRequest.go
new file mode 100644
index 00000000..6197116e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyRequest.go
@@ -0,0 +1,529 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceCompliancePolicyAssignment collection
+func (r *DeviceCompliancePolicyAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SettingStateDeviceSummary collection
+func (r *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]SettingStateDeviceSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceComplianceDeviceStatus collection
+func (r *DeviceCompliancePolicyDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceDeviceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceComplianceScheduledActionForRule collection
+func (r *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceScheduledActionForRule, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceComplianceUserStatus collection
+func (r *DeviceCompliancePolicyUserStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceUserStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateModel.go
new file mode 100644
index 00000000..485c65f7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryModel.go
new file mode 100644
index 00000000..7f56178b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryRequest.go
new file mode 100644
index 00000000..2896f5f5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceComplianceSettingState collection
+func (r *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceSettingState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyStateModel.go
new file mode 100644
index 00000000..86d6650c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyStateModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyStateRequest.go
new file mode 100644
index 00000000..fd324d1c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceScheduledActionForRuleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceScheduledActionForRuleModel.go
new file mode 100644
index 00000000..6295c0f0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceScheduledActionForRuleModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceScheduledActionForRuleRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceScheduledActionForRuleRequest.go
new file mode 100644
index 00000000..7f3abab7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceScheduledActionForRuleRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceComplianceActionItem collection
+func (r *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceActionItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceSettingStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceSettingStateModel.go
new file mode 100644
index 00000000..09c2ff4f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceSettingStateModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceSettingStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceSettingStateRequest.go
new file mode 100644
index 00000000..07a524af
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceSettingStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserOverviewModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserOverviewModel.go
new file mode 100644
index 00000000..ac030716
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserOverviewModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserOverviewRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserOverviewRequest.go
new file mode 100644
index 00000000..ef459d35
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserOverviewRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserStatusModel.go
new file mode 100644
index 00000000..1adbdec0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserStatusModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserStatusRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserStatusRequest.go
new file mode 100644
index 00000000..8c81da8c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAction.go
new file mode 100644
index 00000000..0c0e788b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAction.go
@@ -0,0 +1,358 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// DeviceConfigurationCollectionHasPayloadLinksRequestParameter undocumented
+type DeviceConfigurationCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestParameter undocumented
+type DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestParameter struct {
+ // DeviceConfigurationIDs undocumented
+ DeviceConfigurationIDs []string `json:"deviceConfigurationIds,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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]DeviceConfigurationTargetedUserAndDevice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, 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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]DeviceConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAssignmentModel.go
new file mode 100644
index 00000000..a70244e0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAssignmentRequest.go
new file mode 100644
index 00000000..c96cdee5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationConflictSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationConflictSummaryModel.go
new file mode 100644
index 00000000..a6e73272
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationConflictSummaryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationConflictSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationConflictSummaryRequest.go
new file mode 100644
index 00000000..be59d3e7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationConflictSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceOverviewModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceOverviewModel.go
new file mode 100644
index 00000000..fbbdd193
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceOverviewModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceOverviewRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceOverviewRequest.go
new file mode 100644
index 00000000..ccf588b7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceOverviewRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryModel.go
new file mode 100644
index 00000000..13f92c9c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryRequest.go
new file mode 100644
index 00000000..9fc4976e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStatusModel.go
new file mode 100644
index 00000000..764b75b8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStatusModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStatusRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStatusRequest.go
new file mode 100644
index 00000000..2d831375
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationGroupAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationGroupAssignmentModel.go
new file mode 100644
index 00000000..64772f6a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationGroupAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationGroupAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationGroupAssignmentRequest.go
new file mode 100644
index 00000000..bd20e038
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationGroupAssignmentRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// DeviceConfiguration is navigation property
+func (b *DeviceConfigurationGroupAssignmentRequestBuilder) DeviceConfiguration() *DeviceConfigurationRequestBuilder {
+ bb := &DeviceConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfiguration"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationModel.go
new file mode 100644
index 00000000..dc0369e9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationPolicySetItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationPolicySetItemModel.go
new file mode 100644
index 00000000..8e43c98a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationPolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceConfigurationPolicySetItem A class containing the properties used for device configuration PolicySetItem.
+type DeviceConfigurationPolicySetItem struct {
+ // PolicySetItem is the base model of DeviceConfigurationPolicySetItem
+ PolicySetItem
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationRequest.go
new file mode 100644
index 00000000..c0bf5ecc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationRequest.go
@@ -0,0 +1,529 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfigurationAssignment collection
+func (r *DeviceConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SettingStateDeviceSummary collection
+func (r *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]SettingStateDeviceSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfigurationDeviceStatus collection
+func (r *DeviceConfigurationDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationDeviceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfigurationGroupAssignment collection
+func (r *DeviceConfigurationGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationGroupAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfigurationUserStatus collection
+func (r *DeviceConfigurationUserStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationUserStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationSettingStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationSettingStateModel.go
new file mode 100644
index 00000000..32dc620e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationSettingStateModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationStateModel.go
new file mode 100644
index 00000000..e3e4c6f0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationStateModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationStateRequest.go
new file mode 100644
index 00000000..72323c3d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationTargetedUserAndDeviceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationTargetedUserAndDeviceModel.go
new file mode 100644
index 00000000..32b4b408
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationTargetedUserAndDeviceModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserOverviewModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserOverviewModel.go
new file mode 100644
index 00000000..8a5a5293
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserOverviewModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserOverviewRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserOverviewRequest.go
new file mode 100644
index 00000000..9d603631
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserOverviewRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStateSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStateSummaryModel.go
new file mode 100644
index 00000000..d60d5bb9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStateSummaryModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStateSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStateSummaryRequest.go
new file mode 100644
index 00000000..bd315803
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStatusModel.go
new file mode 100644
index 00000000..2db48021
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStatusModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStatusRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStatusRequest.go
new file mode 100644
index 00000000..4750918d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceDetailModel.go
new file mode 100644
index 00000000..fd41b219
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceDetailModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationAction.go
new file mode 100644
index 00000000..3e7def8e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationAction.go
@@ -0,0 +1,172 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestParameter undocumented
+type DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationModel.go
new file mode 100644
index 00000000..1f4d2f07
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationRequest.go
new file mode 100644
index 00000000..3db357fe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EnrollmentConfigurationAssignment collection
+func (r *DeviceEnrollmentConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]EnrollmentConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentFailureReasonEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentFailureReasonEnum.go
new file mode 100644
index 00000000..f807eace
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentFailureReasonEnum.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceEnrollmentFailureReason undocumented
+type DeviceEnrollmentFailureReason int
+
+const (
+ // DeviceEnrollmentFailureReasonVUnknown undocumented
+ DeviceEnrollmentFailureReasonVUnknown DeviceEnrollmentFailureReason = 0
+ // DeviceEnrollmentFailureReasonVAuthentication undocumented
+ DeviceEnrollmentFailureReasonVAuthentication DeviceEnrollmentFailureReason = 1
+ // DeviceEnrollmentFailureReasonVAuthorization undocumented
+ DeviceEnrollmentFailureReasonVAuthorization DeviceEnrollmentFailureReason = 2
+ // DeviceEnrollmentFailureReasonVAccountValidation undocumented
+ DeviceEnrollmentFailureReasonVAccountValidation DeviceEnrollmentFailureReason = 3
+ // DeviceEnrollmentFailureReasonVUserValidation undocumented
+ DeviceEnrollmentFailureReasonVUserValidation DeviceEnrollmentFailureReason = 4
+ // DeviceEnrollmentFailureReasonVDeviceNotSupported undocumented
+ DeviceEnrollmentFailureReasonVDeviceNotSupported DeviceEnrollmentFailureReason = 5
+ // DeviceEnrollmentFailureReasonVInMaintenance undocumented
+ DeviceEnrollmentFailureReasonVInMaintenance DeviceEnrollmentFailureReason = 6
+ // DeviceEnrollmentFailureReasonVBadRequest undocumented
+ DeviceEnrollmentFailureReasonVBadRequest DeviceEnrollmentFailureReason = 7
+ // DeviceEnrollmentFailureReasonVFeatureNotSupported undocumented
+ DeviceEnrollmentFailureReasonVFeatureNotSupported DeviceEnrollmentFailureReason = 8
+ // DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced undocumented
+ DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced DeviceEnrollmentFailureReason = 9
+ // DeviceEnrollmentFailureReasonVClientDisconnected undocumented
+ DeviceEnrollmentFailureReasonVClientDisconnected DeviceEnrollmentFailureReason = 10
+ // DeviceEnrollmentFailureReasonVUserAbandonment undocumented
+ DeviceEnrollmentFailureReasonVUserAbandonment DeviceEnrollmentFailureReason = 11
+)
+
+// DeviceEnrollmentFailureReasonPUnknown returns a pointer to DeviceEnrollmentFailureReasonVUnknown
+func DeviceEnrollmentFailureReasonPUnknown() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVUnknown
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPAuthentication returns a pointer to DeviceEnrollmentFailureReasonVAuthentication
+func DeviceEnrollmentFailureReasonPAuthentication() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVAuthentication
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPAuthorization returns a pointer to DeviceEnrollmentFailureReasonVAuthorization
+func DeviceEnrollmentFailureReasonPAuthorization() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVAuthorization
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPAccountValidation returns a pointer to DeviceEnrollmentFailureReasonVAccountValidation
+func DeviceEnrollmentFailureReasonPAccountValidation() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVAccountValidation
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPUserValidation returns a pointer to DeviceEnrollmentFailureReasonVUserValidation
+func DeviceEnrollmentFailureReasonPUserValidation() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVUserValidation
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPDeviceNotSupported returns a pointer to DeviceEnrollmentFailureReasonVDeviceNotSupported
+func DeviceEnrollmentFailureReasonPDeviceNotSupported() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVDeviceNotSupported
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPInMaintenance returns a pointer to DeviceEnrollmentFailureReasonVInMaintenance
+func DeviceEnrollmentFailureReasonPInMaintenance() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVInMaintenance
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPBadRequest returns a pointer to DeviceEnrollmentFailureReasonVBadRequest
+func DeviceEnrollmentFailureReasonPBadRequest() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVBadRequest
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPFeatureNotSupported returns a pointer to DeviceEnrollmentFailureReasonVFeatureNotSupported
+func DeviceEnrollmentFailureReasonPFeatureNotSupported() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVFeatureNotSupported
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPEnrollmentRestrictionsEnforced returns a pointer to DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced
+func DeviceEnrollmentFailureReasonPEnrollmentRestrictionsEnforced() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPClientDisconnected returns a pointer to DeviceEnrollmentFailureReasonVClientDisconnected
+func DeviceEnrollmentFailureReasonPClientDisconnected() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVClientDisconnected
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPUserAbandonment returns a pointer to DeviceEnrollmentFailureReasonVUserAbandonment
+func DeviceEnrollmentFailureReasonPUserAbandonment() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVUserAbandonment
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentLimitConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentLimitConfigurationModel.go
new file mode 100644
index 00000000..6938d30a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentLimitConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionModel.go
new file mode 100644
index 00000000..4ab86e86
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionsConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionsConfigurationModel.go
new file mode 100644
index 00000000..dcb50c7f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionsConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentTypeEnum.go
new file mode 100644
index 00000000..b597b9d7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentTypeEnum.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceEnrollmentType undocumented
+type DeviceEnrollmentType int
+
+const (
+ // DeviceEnrollmentTypeVUnknown undocumented
+ DeviceEnrollmentTypeVUnknown DeviceEnrollmentType = 0
+ // DeviceEnrollmentTypeVUserEnrollment undocumented
+ DeviceEnrollmentTypeVUserEnrollment DeviceEnrollmentType = 1
+ // DeviceEnrollmentTypeVDeviceEnrollmentManager undocumented
+ DeviceEnrollmentTypeVDeviceEnrollmentManager DeviceEnrollmentType = 2
+ // DeviceEnrollmentTypeVAppleBulkWithUser undocumented
+ DeviceEnrollmentTypeVAppleBulkWithUser DeviceEnrollmentType = 3
+ // DeviceEnrollmentTypeVAppleBulkWithoutUser undocumented
+ DeviceEnrollmentTypeVAppleBulkWithoutUser DeviceEnrollmentType = 4
+ // DeviceEnrollmentTypeVWindowsAzureADJoin undocumented
+ DeviceEnrollmentTypeVWindowsAzureADJoin DeviceEnrollmentType = 5
+ // DeviceEnrollmentTypeVWindowsBulkUserless undocumented
+ DeviceEnrollmentTypeVWindowsBulkUserless DeviceEnrollmentType = 6
+ // DeviceEnrollmentTypeVWindowsAutoEnrollment undocumented
+ DeviceEnrollmentTypeVWindowsAutoEnrollment DeviceEnrollmentType = 7
+ // DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin undocumented
+ DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin DeviceEnrollmentType = 8
+ // DeviceEnrollmentTypeVWindowsCoManagement undocumented
+ DeviceEnrollmentTypeVWindowsCoManagement DeviceEnrollmentType = 9
+ // DeviceEnrollmentTypeVAppleUserEnrollment undocumented
+ DeviceEnrollmentTypeVAppleUserEnrollment DeviceEnrollmentType = 11
+ // DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount undocumented
+ DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount DeviceEnrollmentType = 12
+)
+
+// DeviceEnrollmentTypePUnknown returns a pointer to DeviceEnrollmentTypeVUnknown
+func DeviceEnrollmentTypePUnknown() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVUnknown
+ return &v
+}
+
+// DeviceEnrollmentTypePUserEnrollment returns a pointer to DeviceEnrollmentTypeVUserEnrollment
+func DeviceEnrollmentTypePUserEnrollment() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVUserEnrollment
+ return &v
+}
+
+// DeviceEnrollmentTypePDeviceEnrollmentManager returns a pointer to DeviceEnrollmentTypeVDeviceEnrollmentManager
+func DeviceEnrollmentTypePDeviceEnrollmentManager() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVDeviceEnrollmentManager
+ return &v
+}
+
+// DeviceEnrollmentTypePAppleBulkWithUser returns a pointer to DeviceEnrollmentTypeVAppleBulkWithUser
+func DeviceEnrollmentTypePAppleBulkWithUser() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVAppleBulkWithUser
+ return &v
+}
+
+// DeviceEnrollmentTypePAppleBulkWithoutUser returns a pointer to DeviceEnrollmentTypeVAppleBulkWithoutUser
+func DeviceEnrollmentTypePAppleBulkWithoutUser() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVAppleBulkWithoutUser
+ return &v
+}
+
+// DeviceEnrollmentTypePWindowsAzureADJoin returns a pointer to DeviceEnrollmentTypeVWindowsAzureADJoin
+func DeviceEnrollmentTypePWindowsAzureADJoin() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVWindowsAzureADJoin
+ return &v
+}
+
+// DeviceEnrollmentTypePWindowsBulkUserless returns a pointer to DeviceEnrollmentTypeVWindowsBulkUserless
+func DeviceEnrollmentTypePWindowsBulkUserless() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVWindowsBulkUserless
+ return &v
+}
+
+// DeviceEnrollmentTypePWindowsAutoEnrollment returns a pointer to DeviceEnrollmentTypeVWindowsAutoEnrollment
+func DeviceEnrollmentTypePWindowsAutoEnrollment() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVWindowsAutoEnrollment
+ return &v
+}
+
+// DeviceEnrollmentTypePWindowsBulkAzureDomainJoin returns a pointer to DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin
+func DeviceEnrollmentTypePWindowsBulkAzureDomainJoin() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin
+ return &v
+}
+
+// DeviceEnrollmentTypePWindowsCoManagement returns a pointer to DeviceEnrollmentTypeVWindowsCoManagement
+func DeviceEnrollmentTypePWindowsCoManagement() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVWindowsCoManagement
+ return &v
+}
+
+// DeviceEnrollmentTypePAppleUserEnrollment returns a pointer to DeviceEnrollmentTypeVAppleUserEnrollment
+func DeviceEnrollmentTypePAppleUserEnrollment() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVAppleUserEnrollment
+ return &v
+}
+
+// DeviceEnrollmentTypePAppleUserEnrollmentWithServiceAccount returns a pointer to DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount
+func DeviceEnrollmentTypePAppleUserEnrollmentWithServiceAccount() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentWindowsHelloForBusinessConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentWindowsHelloForBusinessConfigurationModel.go
new file mode 100644
index 00000000..504a2c35
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentWindowsHelloForBusinessConfigurationModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceExchangeAccessStateSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceExchangeAccessStateSummaryModel.go
new file mode 100644
index 00000000..e53ba177
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceExchangeAccessStateSummaryModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGeoLocationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGeoLocationModel.go
new file mode 100644
index 00000000..1b7024b0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGeoLocationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardStateEnum.go
new file mode 100644
index 00000000..4f044482
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardStateEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardState undocumented
+type DeviceGuardLocalSystemAuthorityCredentialGuardState int
+
+const (
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning DeviceGuardLocalSystemAuthorityCredentialGuardState = 0
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired DeviceGuardLocalSystemAuthorityCredentialGuardState = 1
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed DeviceGuardLocalSystemAuthorityCredentialGuardState = 2
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured DeviceGuardLocalSystemAuthorityCredentialGuardState = 3
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning DeviceGuardLocalSystemAuthorityCredentialGuardState = 4
+)
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardStatePRunning returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning
+func DeviceGuardLocalSystemAuthorityCredentialGuardStatePRunning() *DeviceGuardLocalSystemAuthorityCredentialGuardState {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning
+ return &v
+}
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardStatePRebootRequired returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired
+func DeviceGuardLocalSystemAuthorityCredentialGuardStatePRebootRequired() *DeviceGuardLocalSystemAuthorityCredentialGuardState {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired
+ return &v
+}
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotLicensed returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed
+func DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotLicensed() *DeviceGuardLocalSystemAuthorityCredentialGuardState {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed
+ return &v
+}
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotConfigured returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured
+func DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotConfigured() *DeviceGuardLocalSystemAuthorityCredentialGuardState {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured
+ return &v
+}
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardStatePVirtualizationBasedSecurityNotRunning returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning
+func DeviceGuardLocalSystemAuthorityCredentialGuardStatePVirtualizationBasedSecurityNotRunning() *DeviceGuardLocalSystemAuthorityCredentialGuardState {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardTypeEnum.go
new file mode 100644
index 00000000..16653fa2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardType undocumented
+type DeviceGuardLocalSystemAuthorityCredentialGuardType int
+
+const (
+ // DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured DeviceGuardLocalSystemAuthorityCredentialGuardType = 0
+ // DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock DeviceGuardLocalSystemAuthorityCredentialGuardType = 1
+ // DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock DeviceGuardLocalSystemAuthorityCredentialGuardType = 2
+)
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardTypePNotConfigured returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured
+func DeviceGuardLocalSystemAuthorityCredentialGuardTypePNotConfigured() *DeviceGuardLocalSystemAuthorityCredentialGuardType {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured
+ return &v
+}
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithUEFILock returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock
+func DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithUEFILock() *DeviceGuardLocalSystemAuthorityCredentialGuardType {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock
+ return &v
+}
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithoutUEFILock returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock
+func DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithoutUEFILock() *DeviceGuardLocalSystemAuthorityCredentialGuardType {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateEnum.go
new file mode 100644
index 00000000..ebb19cbc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceGuardVirtualizationBasedSecurityHardwareRequirementState undocumented
+type DeviceGuardVirtualizationBasedSecurityHardwareRequirementState int
+
+const (
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements undocumented
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = 0
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired undocumented
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = 1
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDmaProtectionRequired undocumented
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDmaProtectionRequired DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = 2
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM undocumented
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = 4
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable undocumented
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = 8
+)
+
+// DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePMeetHardwareRequirements returns a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements
+func DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePMeetHardwareRequirements() *DeviceGuardVirtualizationBasedSecurityHardwareRequirementState {
+ v := DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePSecureBootRequired returns a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired
+func DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePSecureBootRequired() *DeviceGuardVirtualizationBasedSecurityHardwareRequirementState {
+ v := DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePDmaProtectionRequired returns a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDmaProtectionRequired
+func DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePDmaProtectionRequired() *DeviceGuardVirtualizationBasedSecurityHardwareRequirementState {
+ v := DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDmaProtectionRequired
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotSupportedForGuestVM returns a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM
+func DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotSupportedForGuestVM() *DeviceGuardVirtualizationBasedSecurityHardwareRequirementState {
+ v := DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotAvailable returns a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable
+func DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotAvailable() *DeviceGuardVirtualizationBasedSecurityHardwareRequirementState {
+ v := DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityStateEnum.go
new file mode 100644
index 00000000..b52a70cb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityStateEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceGuardVirtualizationBasedSecurityState undocumented
+type DeviceGuardVirtualizationBasedSecurityState int
+
+const (
+ // DeviceGuardVirtualizationBasedSecurityStateVRunning undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVRunning DeviceGuardVirtualizationBasedSecurityState = 0
+ // DeviceGuardVirtualizationBasedSecurityStateVRebootRequired undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVRebootRequired DeviceGuardVirtualizationBasedSecurityState = 1
+ // DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture DeviceGuardVirtualizationBasedSecurityState = 2
+ // DeviceGuardVirtualizationBasedSecurityStateVNotLicensed undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVNotLicensed DeviceGuardVirtualizationBasedSecurityState = 3
+ // DeviceGuardVirtualizationBasedSecurityStateVNotConfigured undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVNotConfigured DeviceGuardVirtualizationBasedSecurityState = 4
+ // DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements DeviceGuardVirtualizationBasedSecurityState = 5
+ // DeviceGuardVirtualizationBasedSecurityStateVOther undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVOther DeviceGuardVirtualizationBasedSecurityState = 42
+)
+
+// DeviceGuardVirtualizationBasedSecurityStatePRunning returns a pointer to DeviceGuardVirtualizationBasedSecurityStateVRunning
+func DeviceGuardVirtualizationBasedSecurityStatePRunning() *DeviceGuardVirtualizationBasedSecurityState {
+ v := DeviceGuardVirtualizationBasedSecurityStateVRunning
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityStatePRebootRequired returns a pointer to DeviceGuardVirtualizationBasedSecurityStateVRebootRequired
+func DeviceGuardVirtualizationBasedSecurityStatePRebootRequired() *DeviceGuardVirtualizationBasedSecurityState {
+ v := DeviceGuardVirtualizationBasedSecurityStateVRebootRequired
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityStatePRequire64BitArchitecture returns a pointer to DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture
+func DeviceGuardVirtualizationBasedSecurityStatePRequire64BitArchitecture() *DeviceGuardVirtualizationBasedSecurityState {
+ v := DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityStatePNotLicensed returns a pointer to DeviceGuardVirtualizationBasedSecurityStateVNotLicensed
+func DeviceGuardVirtualizationBasedSecurityStatePNotLicensed() *DeviceGuardVirtualizationBasedSecurityState {
+ v := DeviceGuardVirtualizationBasedSecurityStateVNotLicensed
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityStatePNotConfigured returns a pointer to DeviceGuardVirtualizationBasedSecurityStateVNotConfigured
+func DeviceGuardVirtualizationBasedSecurityStatePNotConfigured() *DeviceGuardVirtualizationBasedSecurityState {
+ v := DeviceGuardVirtualizationBasedSecurityStateVNotConfigured
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityStatePDoesNotMeetHardwareRequirements returns a pointer to DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements
+func DeviceGuardVirtualizationBasedSecurityStatePDoesNotMeetHardwareRequirements() *DeviceGuardVirtualizationBasedSecurityState {
+ v := DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityStatePOther returns a pointer to DeviceGuardVirtualizationBasedSecurityStateVOther
+func DeviceGuardVirtualizationBasedSecurityStatePOther() *DeviceGuardVirtualizationBasedSecurityState {
+ v := DeviceGuardVirtualizationBasedSecurityStateVOther
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthAttestationStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthAttestationStateModel.go
new file mode 100644
index 00000000..9817406e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthAttestationStateModel.go
@@ -0,0 +1,75 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAction.go
new file mode 100644
index 00000000..7558b383
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceHealthScriptAssignRequestParameter undocumented
+type DeviceHealthScriptAssignRequestParameter struct {
+ // DeviceHealthScriptAssignments undocumented
+ DeviceHealthScriptAssignments []DeviceHealthScriptAssignment `json:"deviceHealthScriptAssignments,omitempty"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAssignmentModel.go
new file mode 100644
index 00000000..9adc1b08
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAssignmentRequest.go
new file mode 100644
index 00000000..4462aa51
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptDeviceStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptDeviceStateModel.go
new file mode 100644
index 00000000..1d7ee1a6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptDeviceStateModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptDeviceStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptDeviceStateRequest.go
new file mode 100644
index 00000000..ca40e53d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptDeviceStateRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// ManagedDevice is navigation property
+func (b *DeviceHealthScriptDeviceStateRequestBuilder) ManagedDevice() *ManagedDeviceRequestBuilder {
+ bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDevice"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptModel.go
new file mode 100644
index 00000000..62a00f31
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRequest.go
new file mode 100644
index 00000000..d6e4aca1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceHealthScriptAssignment collection
+func (r *DeviceHealthScriptAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceHealthScriptAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceHealthScriptDeviceState collection
+func (r *DeviceHealthScriptDeviceRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceHealthScriptDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRunSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRunSummaryModel.go
new file mode 100644
index 00000000..43819a58
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRunSummaryModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRunSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRunSummaryRequest.go
new file mode 100644
index 00000000..3f97bce1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRunSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceInstallStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceInstallStateModel.go
new file mode 100644
index 00000000..d2095b0d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceInstallStateModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceInstallStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceInstallStateRequest.go
new file mode 100644
index 00000000..afef33fc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceInstallStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceKeyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceKeyModel.go
new file mode 100644
index 00000000..fd0ae467
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceKeyModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingDefinitionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingDefinitionModel.go
new file mode 100644
index 00000000..829342ca
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingDefinitionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceModel.go
new file mode 100644
index 00000000..a88397e4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceRequest.go
new file mode 100644
index 00000000..a9a3c1d6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAction.go
new file mode 100644
index 00000000..98a5e64a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAction.go
@@ -0,0 +1,101 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleDeviceModeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleDeviceModeModel.go
new file mode 100644
index 00000000..62ea55a3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleDeviceModeModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleOsEditionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleOsEditionModel.go
new file mode 100644
index 00000000..b2dac2b9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleOsEditionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleOsVersionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleOsVersionModel.go
new file mode 100644
index 00000000..74c1fc86
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleOsVersionModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleTypeEnum.go
new file mode 100644
index 00000000..740364dc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementApplicabilityRuleType undocumented
+type DeviceManagementApplicabilityRuleType int
+
+const (
+ // DeviceManagementApplicabilityRuleTypeVInclude undocumented
+ DeviceManagementApplicabilityRuleTypeVInclude DeviceManagementApplicabilityRuleType = 0
+ // DeviceManagementApplicabilityRuleTypeVExclude undocumented
+ DeviceManagementApplicabilityRuleTypeVExclude DeviceManagementApplicabilityRuleType = 1
+)
+
+// DeviceManagementApplicabilityRuleTypePInclude returns a pointer to DeviceManagementApplicabilityRuleTypeVInclude
+func DeviceManagementApplicabilityRuleTypePInclude() *DeviceManagementApplicabilityRuleType {
+ v := DeviceManagementApplicabilityRuleTypeVInclude
+ return &v
+}
+
+// DeviceManagementApplicabilityRuleTypePExclude returns a pointer to DeviceManagementApplicabilityRuleTypeVExclude
+func DeviceManagementApplicabilityRuleTypePExclude() *DeviceManagementApplicabilityRuleType {
+ v := DeviceManagementApplicabilityRuleTypeVExclude
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAutopilotEventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAutopilotEventModel.go
new file mode 100644
index 00000000..fb593c4d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAutopilotEventModel.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Duration `json:"deploymentDuration,omitempty"`
+ // DeploymentTotalDuration Total deployment duration from enrollment to Desktop screen.
+ DeploymentTotalDuration *time.Duration `json:"deploymentTotalDuration,omitempty"`
+ // DevicePreparationDuration Time spent in device enrollment.
+ DevicePreparationDuration *time.Duration `json:"devicePreparationDuration,omitempty"`
+ // DeviceSetupDuration Time spent in device ESP.
+ DeviceSetupDuration *time.Duration `json:"deviceSetupDuration,omitempty"`
+ // AccountSetupDuration Time spent in user ESP.
+ AccountSetupDuration *time.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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAutopilotEventRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAutopilotEventRequest.go
new file mode 100644
index 00000000..4b471019
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAutopilotEventRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementBooleanSettingInstanceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementBooleanSettingInstanceModel.go
new file mode 100644
index 00000000..2641fcac
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementBooleanSettingInstanceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCachedReportConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCachedReportConfigurationModel.go
new file mode 100644
index 00000000..bc3480c2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCachedReportConfigurationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCachedReportConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCachedReportConfigurationRequest.go
new file mode 100644
index 00000000..f253128b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCachedReportConfigurationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingDefinitionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingDefinitionModel.go
new file mode 100644
index 00000000..f9f8da13
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingDefinitionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingInstanceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingInstanceModel.go
new file mode 100644
index 00000000..99dee4c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingInstanceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingInstanceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingInstanceRequest.go
new file mode 100644
index 00000000..4ff53978
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingInstanceRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementCollectionSettingInstanceValueCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComparisonResultEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComparisonResultEnum.go
new file mode 100644
index 00000000..336dafb6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComparisonResultEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementComparisonResult undocumented
+type DeviceManagementComparisonResult int
+
+const (
+ // DeviceManagementComparisonResultVUnknown undocumented
+ DeviceManagementComparisonResultVUnknown DeviceManagementComparisonResult = 0
+ // DeviceManagementComparisonResultVEqual undocumented
+ DeviceManagementComparisonResultVEqual DeviceManagementComparisonResult = 1
+ // DeviceManagementComparisonResultVNotEqual undocumented
+ DeviceManagementComparisonResultVNotEqual DeviceManagementComparisonResult = 2
+ // DeviceManagementComparisonResultVAdded undocumented
+ DeviceManagementComparisonResultVAdded DeviceManagementComparisonResult = 3
+ // DeviceManagementComparisonResultVRemoved undocumented
+ DeviceManagementComparisonResultVRemoved DeviceManagementComparisonResult = 4
+)
+
+// DeviceManagementComparisonResultPUnknown returns a pointer to DeviceManagementComparisonResultVUnknown
+func DeviceManagementComparisonResultPUnknown() *DeviceManagementComparisonResult {
+ v := DeviceManagementComparisonResultVUnknown
+ return &v
+}
+
+// DeviceManagementComparisonResultPEqual returns a pointer to DeviceManagementComparisonResultVEqual
+func DeviceManagementComparisonResultPEqual() *DeviceManagementComparisonResult {
+ v := DeviceManagementComparisonResultVEqual
+ return &v
+}
+
+// DeviceManagementComparisonResultPNotEqual returns a pointer to DeviceManagementComparisonResultVNotEqual
+func DeviceManagementComparisonResultPNotEqual() *DeviceManagementComparisonResult {
+ v := DeviceManagementComparisonResultVNotEqual
+ return &v
+}
+
+// DeviceManagementComparisonResultPAdded returns a pointer to DeviceManagementComparisonResultVAdded
+func DeviceManagementComparisonResultPAdded() *DeviceManagementComparisonResult {
+ v := DeviceManagementComparisonResultVAdded
+ return &v
+}
+
+// DeviceManagementComparisonResultPRemoved returns a pointer to DeviceManagementComparisonResultVRemoved
+func DeviceManagementComparisonResultPRemoved() *DeviceManagementComparisonResult {
+ v := DeviceManagementComparisonResultVRemoved
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingDefinitionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingDefinitionModel.go
new file mode 100644
index 00000000..bc29d202
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingDefinitionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingInstanceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingInstanceModel.go
new file mode 100644
index 00000000..9f6e3c10
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingInstanceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingInstanceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingInstanceRequest.go
new file mode 100644
index 00000000..2ba7d82b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingInstanceRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementComplexSettingInstanceValueCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementConstraintModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementConstraintModel.go
new file mode 100644
index 00000000..487079df
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementConstraintModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementConstraint undocumented
+type DeviceManagementConstraint struct {
+ // Object is the base model of DeviceManagementConstraint
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialIssuerEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialIssuerEnum.go
new file mode 100644
index 00000000..02fe0238
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialIssuerEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementDerivedCredentialIssuer undocumented
+type DeviceManagementDerivedCredentialIssuer int
+
+const (
+ // DeviceManagementDerivedCredentialIssuerVIntercede undocumented
+ DeviceManagementDerivedCredentialIssuerVIntercede DeviceManagementDerivedCredentialIssuer = 0
+ // DeviceManagementDerivedCredentialIssuerVEntrustDatacard undocumented
+ DeviceManagementDerivedCredentialIssuerVEntrustDatacard DeviceManagementDerivedCredentialIssuer = 1
+ // DeviceManagementDerivedCredentialIssuerVPurebred undocumented
+ DeviceManagementDerivedCredentialIssuerVPurebred DeviceManagementDerivedCredentialIssuer = 2
+)
+
+// DeviceManagementDerivedCredentialIssuerPIntercede returns a pointer to DeviceManagementDerivedCredentialIssuerVIntercede
+func DeviceManagementDerivedCredentialIssuerPIntercede() *DeviceManagementDerivedCredentialIssuer {
+ v := DeviceManagementDerivedCredentialIssuerVIntercede
+ return &v
+}
+
+// DeviceManagementDerivedCredentialIssuerPEntrustDatacard returns a pointer to DeviceManagementDerivedCredentialIssuerVEntrustDatacard
+func DeviceManagementDerivedCredentialIssuerPEntrustDatacard() *DeviceManagementDerivedCredentialIssuer {
+ v := DeviceManagementDerivedCredentialIssuerVEntrustDatacard
+ return &v
+}
+
+// DeviceManagementDerivedCredentialIssuerPPurebred returns a pointer to DeviceManagementDerivedCredentialIssuerVPurebred
+func DeviceManagementDerivedCredentialIssuerPPurebred() *DeviceManagementDerivedCredentialIssuer {
+ v := DeviceManagementDerivedCredentialIssuerVPurebred
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialNotificationTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialNotificationTypeEnum.go
new file mode 100644
index 00000000..4b00a34a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialNotificationTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementDerivedCredentialNotificationType undocumented
+type DeviceManagementDerivedCredentialNotificationType int
+
+const (
+ // DeviceManagementDerivedCredentialNotificationTypeVNone undocumented
+ DeviceManagementDerivedCredentialNotificationTypeVNone DeviceManagementDerivedCredentialNotificationType = 0
+ // DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal undocumented
+ DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal DeviceManagementDerivedCredentialNotificationType = 1
+ // DeviceManagementDerivedCredentialNotificationTypeVEmail undocumented
+ DeviceManagementDerivedCredentialNotificationTypeVEmail DeviceManagementDerivedCredentialNotificationType = 2
+)
+
+// DeviceManagementDerivedCredentialNotificationTypePNone returns a pointer to DeviceManagementDerivedCredentialNotificationTypeVNone
+func DeviceManagementDerivedCredentialNotificationTypePNone() *DeviceManagementDerivedCredentialNotificationType {
+ v := DeviceManagementDerivedCredentialNotificationTypeVNone
+ return &v
+}
+
+// DeviceManagementDerivedCredentialNotificationTypePCompanyPortal returns a pointer to DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal
+func DeviceManagementDerivedCredentialNotificationTypePCompanyPortal() *DeviceManagementDerivedCredentialNotificationType {
+ v := DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal
+ return &v
+}
+
+// DeviceManagementDerivedCredentialNotificationTypePEmail returns a pointer to DeviceManagementDerivedCredentialNotificationTypeVEmail
+func DeviceManagementDerivedCredentialNotificationTypePEmail() *DeviceManagementDerivedCredentialNotificationType {
+ v := DeviceManagementDerivedCredentialNotificationTypeVEmail
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsModel.go
new file mode 100644
index 00000000..7aff8ff9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsRequest.go
new file mode 100644
index 00000000..c6016e3a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorModel.go
new file mode 100644
index 00000000..4ee7d7ed
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorRequest.go
new file mode 100644
index 00000000..908b289b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorStateEnum.go
new file mode 100644
index 00000000..23669ae8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementDomainJoinConnectorState undocumented
+type DeviceManagementDomainJoinConnectorState int
+
+const (
+ // DeviceManagementDomainJoinConnectorStateVActive undocumented
+ DeviceManagementDomainJoinConnectorStateVActive DeviceManagementDomainJoinConnectorState = 0
+ // DeviceManagementDomainJoinConnectorStateVError undocumented
+ DeviceManagementDomainJoinConnectorStateVError DeviceManagementDomainJoinConnectorState = 1
+ // DeviceManagementDomainJoinConnectorStateVInactive undocumented
+ DeviceManagementDomainJoinConnectorStateVInactive DeviceManagementDomainJoinConnectorState = 2
+)
+
+// DeviceManagementDomainJoinConnectorStatePActive returns a pointer to DeviceManagementDomainJoinConnectorStateVActive
+func DeviceManagementDomainJoinConnectorStatePActive() *DeviceManagementDomainJoinConnectorState {
+ v := DeviceManagementDomainJoinConnectorStateVActive
+ return &v
+}
+
+// DeviceManagementDomainJoinConnectorStatePError returns a pointer to DeviceManagementDomainJoinConnectorStateVError
+func DeviceManagementDomainJoinConnectorStatePError() *DeviceManagementDomainJoinConnectorState {
+ v := DeviceManagementDomainJoinConnectorStateVError
+ return &v
+}
+
+// DeviceManagementDomainJoinConnectorStatePInactive returns a pointer to DeviceManagementDomainJoinConnectorStateVInactive
+func DeviceManagementDomainJoinConnectorStatePInactive() *DeviceManagementDomainJoinConnectorState {
+ v := DeviceManagementDomainJoinConnectorStateVInactive
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementEnumConstraintModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementEnumConstraintModel.go
new file mode 100644
index 00000000..d90c73cd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementEnumConstraintModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementEnumValueModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementEnumValueModel.go
new file mode 100644
index 00000000..81c6d16b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementEnumValueModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessLevelEnum.go
new file mode 100644
index 00000000..98a559e7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessLevelEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeAccessLevel undocumented
+type DeviceManagementExchangeAccessLevel int
+
+const (
+ // DeviceManagementExchangeAccessLevelVNone undocumented
+ DeviceManagementExchangeAccessLevelVNone DeviceManagementExchangeAccessLevel = 0
+ // DeviceManagementExchangeAccessLevelVAllow undocumented
+ DeviceManagementExchangeAccessLevelVAllow DeviceManagementExchangeAccessLevel = 1
+ // DeviceManagementExchangeAccessLevelVBlock undocumented
+ DeviceManagementExchangeAccessLevelVBlock DeviceManagementExchangeAccessLevel = 2
+ // DeviceManagementExchangeAccessLevelVQuarantine undocumented
+ DeviceManagementExchangeAccessLevelVQuarantine DeviceManagementExchangeAccessLevel = 3
+)
+
+// DeviceManagementExchangeAccessLevelPNone returns a pointer to DeviceManagementExchangeAccessLevelVNone
+func DeviceManagementExchangeAccessLevelPNone() *DeviceManagementExchangeAccessLevel {
+ v := DeviceManagementExchangeAccessLevelVNone
+ return &v
+}
+
+// DeviceManagementExchangeAccessLevelPAllow returns a pointer to DeviceManagementExchangeAccessLevelVAllow
+func DeviceManagementExchangeAccessLevelPAllow() *DeviceManagementExchangeAccessLevel {
+ v := DeviceManagementExchangeAccessLevelVAllow
+ return &v
+}
+
+// DeviceManagementExchangeAccessLevelPBlock returns a pointer to DeviceManagementExchangeAccessLevelVBlock
+func DeviceManagementExchangeAccessLevelPBlock() *DeviceManagementExchangeAccessLevel {
+ v := DeviceManagementExchangeAccessLevelVBlock
+ return &v
+}
+
+// DeviceManagementExchangeAccessLevelPQuarantine returns a pointer to DeviceManagementExchangeAccessLevelVQuarantine
+func DeviceManagementExchangeAccessLevelPQuarantine() *DeviceManagementExchangeAccessLevel {
+ v := DeviceManagementExchangeAccessLevelVQuarantine
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessRuleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessRuleModel.go
new file mode 100644
index 00000000..18f0059c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessRuleModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessRuleTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessRuleTypeEnum.go
new file mode 100644
index 00000000..ee7514ad
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessRuleTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeAccessRuleType undocumented
+type DeviceManagementExchangeAccessRuleType int
+
+const (
+ // DeviceManagementExchangeAccessRuleTypeVFamily undocumented
+ DeviceManagementExchangeAccessRuleTypeVFamily DeviceManagementExchangeAccessRuleType = 0
+ // DeviceManagementExchangeAccessRuleTypeVModel undocumented
+ DeviceManagementExchangeAccessRuleTypeVModel DeviceManagementExchangeAccessRuleType = 1
+)
+
+// DeviceManagementExchangeAccessRuleTypePFamily returns a pointer to DeviceManagementExchangeAccessRuleTypeVFamily
+func DeviceManagementExchangeAccessRuleTypePFamily() *DeviceManagementExchangeAccessRuleType {
+ v := DeviceManagementExchangeAccessRuleTypeVFamily
+ return &v
+}
+
+// DeviceManagementExchangeAccessRuleTypePModel returns a pointer to DeviceManagementExchangeAccessRuleTypeVModel
+func DeviceManagementExchangeAccessRuleTypePModel() *DeviceManagementExchangeAccessRuleType {
+ v := DeviceManagementExchangeAccessRuleTypeVModel
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessStateEnum.go
new file mode 100644
index 00000000..19156f8c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessStateEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeAccessState undocumented
+type DeviceManagementExchangeAccessState int
+
+const (
+ // DeviceManagementExchangeAccessStateVNone undocumented
+ DeviceManagementExchangeAccessStateVNone DeviceManagementExchangeAccessState = 0
+ // DeviceManagementExchangeAccessStateVUnknown undocumented
+ DeviceManagementExchangeAccessStateVUnknown DeviceManagementExchangeAccessState = 1
+ // DeviceManagementExchangeAccessStateVAllowed undocumented
+ DeviceManagementExchangeAccessStateVAllowed DeviceManagementExchangeAccessState = 2
+ // DeviceManagementExchangeAccessStateVBlocked undocumented
+ DeviceManagementExchangeAccessStateVBlocked DeviceManagementExchangeAccessState = 3
+ // DeviceManagementExchangeAccessStateVQuarantined undocumented
+ DeviceManagementExchangeAccessStateVQuarantined DeviceManagementExchangeAccessState = 4
+)
+
+// DeviceManagementExchangeAccessStatePNone returns a pointer to DeviceManagementExchangeAccessStateVNone
+func DeviceManagementExchangeAccessStatePNone() *DeviceManagementExchangeAccessState {
+ v := DeviceManagementExchangeAccessStateVNone
+ return &v
+}
+
+// DeviceManagementExchangeAccessStatePUnknown returns a pointer to DeviceManagementExchangeAccessStateVUnknown
+func DeviceManagementExchangeAccessStatePUnknown() *DeviceManagementExchangeAccessState {
+ v := DeviceManagementExchangeAccessStateVUnknown
+ return &v
+}
+
+// DeviceManagementExchangeAccessStatePAllowed returns a pointer to DeviceManagementExchangeAccessStateVAllowed
+func DeviceManagementExchangeAccessStatePAllowed() *DeviceManagementExchangeAccessState {
+ v := DeviceManagementExchangeAccessStateVAllowed
+ return &v
+}
+
+// DeviceManagementExchangeAccessStatePBlocked returns a pointer to DeviceManagementExchangeAccessStateVBlocked
+func DeviceManagementExchangeAccessStatePBlocked() *DeviceManagementExchangeAccessState {
+ v := DeviceManagementExchangeAccessStateVBlocked
+ return &v
+}
+
+// DeviceManagementExchangeAccessStatePQuarantined returns a pointer to DeviceManagementExchangeAccessStateVQuarantined
+func DeviceManagementExchangeAccessStatePQuarantined() *DeviceManagementExchangeAccessState {
+ v := DeviceManagementExchangeAccessStateVQuarantined
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessStateReasonEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessStateReasonEnum.go
new file mode 100644
index 00000000..05e6d673
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessStateReasonEnum.go
@@ -0,0 +1,137 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeAccessStateReason undocumented
+type DeviceManagementExchangeAccessStateReason int
+
+const (
+ // DeviceManagementExchangeAccessStateReasonVNone undocumented
+ DeviceManagementExchangeAccessStateReasonVNone DeviceManagementExchangeAccessStateReason = 0
+ // DeviceManagementExchangeAccessStateReasonVUnknown undocumented
+ DeviceManagementExchangeAccessStateReasonVUnknown DeviceManagementExchangeAccessStateReason = 1
+ // DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule undocumented
+ DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule DeviceManagementExchangeAccessStateReason = 2
+ // DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule undocumented
+ DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule DeviceManagementExchangeAccessStateReason = 3
+ // DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule undocumented
+ DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule DeviceManagementExchangeAccessStateReason = 4
+ // DeviceManagementExchangeAccessStateReasonVExchangeUpgrade undocumented
+ DeviceManagementExchangeAccessStateReasonVExchangeUpgrade DeviceManagementExchangeAccessStateReason = 5
+ // DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy undocumented
+ DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy DeviceManagementExchangeAccessStateReason = 6
+ // DeviceManagementExchangeAccessStateReasonVOther undocumented
+ DeviceManagementExchangeAccessStateReasonVOther DeviceManagementExchangeAccessStateReason = 7
+ // DeviceManagementExchangeAccessStateReasonVCompliant undocumented
+ DeviceManagementExchangeAccessStateReasonVCompliant DeviceManagementExchangeAccessStateReason = 8
+ // DeviceManagementExchangeAccessStateReasonVNotCompliant undocumented
+ DeviceManagementExchangeAccessStateReasonVNotCompliant DeviceManagementExchangeAccessStateReason = 9
+ // DeviceManagementExchangeAccessStateReasonVNotEnrolled undocumented
+ DeviceManagementExchangeAccessStateReasonVNotEnrolled DeviceManagementExchangeAccessStateReason = 10
+ // DeviceManagementExchangeAccessStateReasonVUnknownLocation undocumented
+ DeviceManagementExchangeAccessStateReasonVUnknownLocation DeviceManagementExchangeAccessStateReason = 12
+ // DeviceManagementExchangeAccessStateReasonVMFARequired undocumented
+ DeviceManagementExchangeAccessStateReasonVMFARequired DeviceManagementExchangeAccessStateReason = 13
+ // DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy undocumented
+ DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy DeviceManagementExchangeAccessStateReason = 14
+ // DeviceManagementExchangeAccessStateReasonVCompromisedPassword undocumented
+ DeviceManagementExchangeAccessStateReasonVCompromisedPassword DeviceManagementExchangeAccessStateReason = 15
+ // DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp undocumented
+ DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp DeviceManagementExchangeAccessStateReason = 16
+)
+
+// DeviceManagementExchangeAccessStateReasonPNone returns a pointer to DeviceManagementExchangeAccessStateReasonVNone
+func DeviceManagementExchangeAccessStateReasonPNone() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVNone
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPUnknown returns a pointer to DeviceManagementExchangeAccessStateReasonVUnknown
+func DeviceManagementExchangeAccessStateReasonPUnknown() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVUnknown
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPExchangeGlobalRule returns a pointer to DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule
+func DeviceManagementExchangeAccessStateReasonPExchangeGlobalRule() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPExchangeIndividualRule returns a pointer to DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule
+func DeviceManagementExchangeAccessStateReasonPExchangeIndividualRule() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPExchangeDeviceRule returns a pointer to DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule
+func DeviceManagementExchangeAccessStateReasonPExchangeDeviceRule() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPExchangeUpgrade returns a pointer to DeviceManagementExchangeAccessStateReasonVExchangeUpgrade
+func DeviceManagementExchangeAccessStateReasonPExchangeUpgrade() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVExchangeUpgrade
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPExchangeMailboxPolicy returns a pointer to DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy
+func DeviceManagementExchangeAccessStateReasonPExchangeMailboxPolicy() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPOther returns a pointer to DeviceManagementExchangeAccessStateReasonVOther
+func DeviceManagementExchangeAccessStateReasonPOther() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVOther
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPCompliant returns a pointer to DeviceManagementExchangeAccessStateReasonVCompliant
+func DeviceManagementExchangeAccessStateReasonPCompliant() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVCompliant
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPNotCompliant returns a pointer to DeviceManagementExchangeAccessStateReasonVNotCompliant
+func DeviceManagementExchangeAccessStateReasonPNotCompliant() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVNotCompliant
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPNotEnrolled returns a pointer to DeviceManagementExchangeAccessStateReasonVNotEnrolled
+func DeviceManagementExchangeAccessStateReasonPNotEnrolled() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVNotEnrolled
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPUnknownLocation returns a pointer to DeviceManagementExchangeAccessStateReasonVUnknownLocation
+func DeviceManagementExchangeAccessStateReasonPUnknownLocation() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVUnknownLocation
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPMFARequired returns a pointer to DeviceManagementExchangeAccessStateReasonVMFARequired
+func DeviceManagementExchangeAccessStateReasonPMFARequired() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVMFARequired
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPAzureADBlockDueToAccessPolicy returns a pointer to DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy
+func DeviceManagementExchangeAccessStateReasonPAzureADBlockDueToAccessPolicy() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPCompromisedPassword returns a pointer to DeviceManagementExchangeAccessStateReasonVCompromisedPassword
+func DeviceManagementExchangeAccessStateReasonPCompromisedPassword() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVCompromisedPassword
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPDeviceNotKnownWithManagedApp returns a pointer to DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp
+func DeviceManagementExchangeAccessStateReasonPDeviceNotKnownWithManagedApp() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorAction.go
new file mode 100644
index 00000000..7883b0ce
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementExchangeConnectorSyncRequestParameter undocumented
+type DeviceManagementExchangeConnectorSyncRequestParameter struct {
+ // SyncType undocumented
+ SyncType *DeviceManagementExchangeConnectorSyncType `json:"syncType,omitempty"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorModel.go
new file mode 100644
index 00000000..c0857f8e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorRequest.go
new file mode 100644
index 00000000..aee34980
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorStatusEnum.go
new file mode 100644
index 00000000..93b1913b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeConnectorStatus undocumented
+type DeviceManagementExchangeConnectorStatus int
+
+const (
+ // DeviceManagementExchangeConnectorStatusVNone undocumented
+ DeviceManagementExchangeConnectorStatusVNone DeviceManagementExchangeConnectorStatus = 0
+ // DeviceManagementExchangeConnectorStatusVConnectionPending undocumented
+ DeviceManagementExchangeConnectorStatusVConnectionPending DeviceManagementExchangeConnectorStatus = 1
+ // DeviceManagementExchangeConnectorStatusVConnected undocumented
+ DeviceManagementExchangeConnectorStatusVConnected DeviceManagementExchangeConnectorStatus = 2
+ // DeviceManagementExchangeConnectorStatusVDisconnected undocumented
+ DeviceManagementExchangeConnectorStatusVDisconnected DeviceManagementExchangeConnectorStatus = 3
+)
+
+// DeviceManagementExchangeConnectorStatusPNone returns a pointer to DeviceManagementExchangeConnectorStatusVNone
+func DeviceManagementExchangeConnectorStatusPNone() *DeviceManagementExchangeConnectorStatus {
+ v := DeviceManagementExchangeConnectorStatusVNone
+ return &v
+}
+
+// DeviceManagementExchangeConnectorStatusPConnectionPending returns a pointer to DeviceManagementExchangeConnectorStatusVConnectionPending
+func DeviceManagementExchangeConnectorStatusPConnectionPending() *DeviceManagementExchangeConnectorStatus {
+ v := DeviceManagementExchangeConnectorStatusVConnectionPending
+ return &v
+}
+
+// DeviceManagementExchangeConnectorStatusPConnected returns a pointer to DeviceManagementExchangeConnectorStatusVConnected
+func DeviceManagementExchangeConnectorStatusPConnected() *DeviceManagementExchangeConnectorStatus {
+ v := DeviceManagementExchangeConnectorStatusVConnected
+ return &v
+}
+
+// DeviceManagementExchangeConnectorStatusPDisconnected returns a pointer to DeviceManagementExchangeConnectorStatusVDisconnected
+func DeviceManagementExchangeConnectorStatusPDisconnected() *DeviceManagementExchangeConnectorStatus {
+ v := DeviceManagementExchangeConnectorStatusVDisconnected
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorSyncTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorSyncTypeEnum.go
new file mode 100644
index 00000000..358efc6c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorSyncTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeConnectorSyncType undocumented
+type DeviceManagementExchangeConnectorSyncType int
+
+const (
+ // DeviceManagementExchangeConnectorSyncTypeVFullSync undocumented
+ DeviceManagementExchangeConnectorSyncTypeVFullSync DeviceManagementExchangeConnectorSyncType = 0
+ // DeviceManagementExchangeConnectorSyncTypeVDeltaSync undocumented
+ DeviceManagementExchangeConnectorSyncTypeVDeltaSync DeviceManagementExchangeConnectorSyncType = 1
+)
+
+// DeviceManagementExchangeConnectorSyncTypePFullSync returns a pointer to DeviceManagementExchangeConnectorSyncTypeVFullSync
+func DeviceManagementExchangeConnectorSyncTypePFullSync() *DeviceManagementExchangeConnectorSyncType {
+ v := DeviceManagementExchangeConnectorSyncTypeVFullSync
+ return &v
+}
+
+// DeviceManagementExchangeConnectorSyncTypePDeltaSync returns a pointer to DeviceManagementExchangeConnectorSyncTypeVDeltaSync
+func DeviceManagementExchangeConnectorSyncTypePDeltaSync() *DeviceManagementExchangeConnectorSyncType {
+ v := DeviceManagementExchangeConnectorSyncTypeVDeltaSync
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorTypeEnum.go
new file mode 100644
index 00000000..cac15843
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeConnectorType undocumented
+type DeviceManagementExchangeConnectorType int
+
+const (
+ // DeviceManagementExchangeConnectorTypeVOnPremises undocumented
+ DeviceManagementExchangeConnectorTypeVOnPremises DeviceManagementExchangeConnectorType = 0
+ // DeviceManagementExchangeConnectorTypeVHosted undocumented
+ DeviceManagementExchangeConnectorTypeVHosted DeviceManagementExchangeConnectorType = 1
+ // DeviceManagementExchangeConnectorTypeVServiceToService undocumented
+ DeviceManagementExchangeConnectorTypeVServiceToService DeviceManagementExchangeConnectorType = 2
+ // DeviceManagementExchangeConnectorTypeVDedicated undocumented
+ DeviceManagementExchangeConnectorTypeVDedicated DeviceManagementExchangeConnectorType = 3
+)
+
+// DeviceManagementExchangeConnectorTypePOnPremises returns a pointer to DeviceManagementExchangeConnectorTypeVOnPremises
+func DeviceManagementExchangeConnectorTypePOnPremises() *DeviceManagementExchangeConnectorType {
+ v := DeviceManagementExchangeConnectorTypeVOnPremises
+ return &v
+}
+
+// DeviceManagementExchangeConnectorTypePHosted returns a pointer to DeviceManagementExchangeConnectorTypeVHosted
+func DeviceManagementExchangeConnectorTypePHosted() *DeviceManagementExchangeConnectorType {
+ v := DeviceManagementExchangeConnectorTypeVHosted
+ return &v
+}
+
+// DeviceManagementExchangeConnectorTypePServiceToService returns a pointer to DeviceManagementExchangeConnectorTypeVServiceToService
+func DeviceManagementExchangeConnectorTypePServiceToService() *DeviceManagementExchangeConnectorType {
+ v := DeviceManagementExchangeConnectorTypeVServiceToService
+ return &v
+}
+
+// DeviceManagementExchangeConnectorTypePDedicated returns a pointer to DeviceManagementExchangeConnectorTypeVDedicated
+func DeviceManagementExchangeConnectorTypePDedicated() *DeviceManagementExchangeConnectorType {
+ v := DeviceManagementExchangeConnectorTypeVDedicated
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeDeviceClassModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeDeviceClassModel.go
new file mode 100644
index 00000000..9a8f232b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeDeviceClassModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyModel.go
new file mode 100644
index 00000000..b6e26ae4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyRequest.go
new file mode 100644
index 00000000..2251e7aa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// ConditionalAccessSettings is navigation property
+func (b *DeviceManagementExchangeOnPremisesPolicyRequestBuilder) ConditionalAccessSettings() *OnPremisesConditionalAccessSettingsRequestBuilder {
+ bb := &OnPremisesConditionalAccessSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/conditionalAccessSettings"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExportJobModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExportJobModel.go
new file mode 100644
index 00000000..55d86c67
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExportJobModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExportJobRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExportJobRequest.go
new file mode 100644
index 00000000..a3703a99
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExportJobRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntegerSettingInstanceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntegerSettingInstanceModel.go
new file mode 100644
index 00000000..b24e21f2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntegerSettingInstanceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAction.go
new file mode 100644
index 00000000..c66ef2df
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAction.go
@@ -0,0 +1,103 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAssignmentModel.go
new file mode 100644
index 00000000..64dc96da
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementIntentAssignment Intent assignment entity
+type DeviceManagementIntentAssignment struct {
+ // Entity is the base model of DeviceManagementIntentAssignment
+ Entity
+ // Target The assignment target
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAssignmentRequest.go
new file mode 100644
index 00000000..4d323ea3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryModel.go
new file mode 100644
index 00000000..b598e24b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryRequest.go
new file mode 100644
index 00000000..7564570a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateModel.go
new file mode 100644
index 00000000..ce60722f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateRequest.go
new file mode 100644
index 00000000..3a4897d4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryModel.go
new file mode 100644
index 00000000..c504f93f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryRequest.go
new file mode 100644
index 00000000..ce75ca99
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentModel.go
new file mode 100644
index 00000000..93361b5f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentRequest.go
new file mode 100644
index 00000000..e1af279d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentRequest.go
@@ -0,0 +1,623 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementIntentAssignment collection
+func (r *DeviceManagementIntentAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementIntentSettingCategory collection
+func (r *DeviceManagementIntentCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentSettingCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementIntentDeviceSettingStateSummary collection
+func (r *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentDeviceSettingStateSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementIntentDeviceState collection
+func (r *DeviceManagementIntentDeviceStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementIntentSettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementIntentUserState collection
+func (r *DeviceManagementIntentUserStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentUserState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentSettingCategoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentSettingCategoryModel.go
new file mode 100644
index 00000000..acbc4a5a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentSettingCategoryModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentSettingCategoryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentSettingCategoryRequest.go
new file mode 100644
index 00000000..7c2f943f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentSettingCategoryRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementIntentSettingCategorySettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateModel.go
new file mode 100644
index 00000000..6aa7b773
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateRequest.go
new file mode 100644
index 00000000..8897c7c6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateSummaryModel.go
new file mode 100644
index 00000000..c0197aca
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateSummaryModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateSummaryRequest.go
new file mode 100644
index 00000000..bfaa90b8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementModel.go
new file mode 100644
index 00000000..0d303c16
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementModel.go
@@ -0,0 +1,207 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerAppTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerAppTypeEnum.go
new file mode 100644
index 00000000..5dfbca1e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerAppTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementPartnerAppType undocumented
+type DeviceManagementPartnerAppType int
+
+const (
+ // DeviceManagementPartnerAppTypeVUnknown undocumented
+ DeviceManagementPartnerAppTypeVUnknown DeviceManagementPartnerAppType = 0
+ // DeviceManagementPartnerAppTypeVSingleTenantApp undocumented
+ DeviceManagementPartnerAppTypeVSingleTenantApp DeviceManagementPartnerAppType = 1
+ // DeviceManagementPartnerAppTypeVMultiTenantApp undocumented
+ DeviceManagementPartnerAppTypeVMultiTenantApp DeviceManagementPartnerAppType = 2
+)
+
+// DeviceManagementPartnerAppTypePUnknown returns a pointer to DeviceManagementPartnerAppTypeVUnknown
+func DeviceManagementPartnerAppTypePUnknown() *DeviceManagementPartnerAppType {
+ v := DeviceManagementPartnerAppTypeVUnknown
+ return &v
+}
+
+// DeviceManagementPartnerAppTypePSingleTenantApp returns a pointer to DeviceManagementPartnerAppTypeVSingleTenantApp
+func DeviceManagementPartnerAppTypePSingleTenantApp() *DeviceManagementPartnerAppType {
+ v := DeviceManagementPartnerAppTypeVSingleTenantApp
+ return &v
+}
+
+// DeviceManagementPartnerAppTypePMultiTenantApp returns a pointer to DeviceManagementPartnerAppTypeVMultiTenantApp
+func DeviceManagementPartnerAppTypePMultiTenantApp() *DeviceManagementPartnerAppType {
+ v := DeviceManagementPartnerAppTypeVMultiTenantApp
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerAssignmentModel.go
new file mode 100644
index 00000000..073fe3e3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerModel.go
new file mode 100644
index 00000000..aebca190
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerRequest.go
new file mode 100644
index 00000000..250a0a4d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerTenantStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerTenantStateEnum.go
new file mode 100644
index 00000000..7cb98786
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerTenantStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementPartnerTenantState undocumented
+type DeviceManagementPartnerTenantState int
+
+const (
+ // DeviceManagementPartnerTenantStateVUnknown undocumented
+ DeviceManagementPartnerTenantStateVUnknown DeviceManagementPartnerTenantState = 0
+ // DeviceManagementPartnerTenantStateVUnavailable undocumented
+ DeviceManagementPartnerTenantStateVUnavailable DeviceManagementPartnerTenantState = 1
+ // DeviceManagementPartnerTenantStateVEnabled undocumented
+ DeviceManagementPartnerTenantStateVEnabled DeviceManagementPartnerTenantState = 2
+ // DeviceManagementPartnerTenantStateVTerminated undocumented
+ DeviceManagementPartnerTenantStateVTerminated DeviceManagementPartnerTenantState = 3
+ // DeviceManagementPartnerTenantStateVRejected undocumented
+ DeviceManagementPartnerTenantStateVRejected DeviceManagementPartnerTenantState = 4
+ // DeviceManagementPartnerTenantStateVUnresponsive undocumented
+ DeviceManagementPartnerTenantStateVUnresponsive DeviceManagementPartnerTenantState = 5
+)
+
+// DeviceManagementPartnerTenantStatePUnknown returns a pointer to DeviceManagementPartnerTenantStateVUnknown
+func DeviceManagementPartnerTenantStatePUnknown() *DeviceManagementPartnerTenantState {
+ v := DeviceManagementPartnerTenantStateVUnknown
+ return &v
+}
+
+// DeviceManagementPartnerTenantStatePUnavailable returns a pointer to DeviceManagementPartnerTenantStateVUnavailable
+func DeviceManagementPartnerTenantStatePUnavailable() *DeviceManagementPartnerTenantState {
+ v := DeviceManagementPartnerTenantStateVUnavailable
+ return &v
+}
+
+// DeviceManagementPartnerTenantStatePEnabled returns a pointer to DeviceManagementPartnerTenantStateVEnabled
+func DeviceManagementPartnerTenantStatePEnabled() *DeviceManagementPartnerTenantState {
+ v := DeviceManagementPartnerTenantStateVEnabled
+ return &v
+}
+
+// DeviceManagementPartnerTenantStatePTerminated returns a pointer to DeviceManagementPartnerTenantStateVTerminated
+func DeviceManagementPartnerTenantStatePTerminated() *DeviceManagementPartnerTenantState {
+ v := DeviceManagementPartnerTenantStateVTerminated
+ return &v
+}
+
+// DeviceManagementPartnerTenantStatePRejected returns a pointer to DeviceManagementPartnerTenantStateVRejected
+func DeviceManagementPartnerTenantStatePRejected() *DeviceManagementPartnerTenantState {
+ v := DeviceManagementPartnerTenantStateVRejected
+ return &v
+}
+
+// DeviceManagementPartnerTenantStatePUnresponsive returns a pointer to DeviceManagementPartnerTenantStateVUnresponsive
+func DeviceManagementPartnerTenantStatePUnresponsive() *DeviceManagementPartnerTenantState {
+ v := DeviceManagementPartnerTenantStateVUnresponsive
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportFileFormatEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportFileFormatEnum.go
new file mode 100644
index 00000000..03e51714
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportFileFormatEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementReportFileFormat undocumented
+type DeviceManagementReportFileFormat int
+
+const (
+ // DeviceManagementReportFileFormatVCsv undocumented
+ DeviceManagementReportFileFormatVCsv DeviceManagementReportFileFormat = 0
+ // DeviceManagementReportFileFormatVPdf undocumented
+ DeviceManagementReportFileFormatVPdf DeviceManagementReportFileFormat = 1
+)
+
+// DeviceManagementReportFileFormatPCsv returns a pointer to DeviceManagementReportFileFormatVCsv
+func DeviceManagementReportFileFormatPCsv() *DeviceManagementReportFileFormat {
+ v := DeviceManagementReportFileFormatVCsv
+ return &v
+}
+
+// DeviceManagementReportFileFormatPPdf returns a pointer to DeviceManagementReportFileFormatVPdf
+func DeviceManagementReportFileFormatPPdf() *DeviceManagementReportFileFormat {
+ v := DeviceManagementReportFileFormatVPdf
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportScheduleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportScheduleModel.go
new file mode 100644
index 00000000..fcd329f6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportScheduleModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportScheduleRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportScheduleRequest.go
new file mode 100644
index 00000000..5fe6e130
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportScheduleRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportStatusEnum.go
new file mode 100644
index 00000000..6591f4e7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementReportStatus undocumented
+type DeviceManagementReportStatus int
+
+const (
+ // DeviceManagementReportStatusVUnknown undocumented
+ DeviceManagementReportStatusVUnknown DeviceManagementReportStatus = 0
+ // DeviceManagementReportStatusVNotStarted undocumented
+ DeviceManagementReportStatusVNotStarted DeviceManagementReportStatus = 1
+ // DeviceManagementReportStatusVInProgress undocumented
+ DeviceManagementReportStatusVInProgress DeviceManagementReportStatus = 2
+ // DeviceManagementReportStatusVCompleted undocumented
+ DeviceManagementReportStatusVCompleted DeviceManagementReportStatus = 3
+ // DeviceManagementReportStatusVFailed undocumented
+ DeviceManagementReportStatusVFailed DeviceManagementReportStatus = 4
+)
+
+// DeviceManagementReportStatusPUnknown returns a pointer to DeviceManagementReportStatusVUnknown
+func DeviceManagementReportStatusPUnknown() *DeviceManagementReportStatus {
+ v := DeviceManagementReportStatusVUnknown
+ return &v
+}
+
+// DeviceManagementReportStatusPNotStarted returns a pointer to DeviceManagementReportStatusVNotStarted
+func DeviceManagementReportStatusPNotStarted() *DeviceManagementReportStatus {
+ v := DeviceManagementReportStatusVNotStarted
+ return &v
+}
+
+// DeviceManagementReportStatusPInProgress returns a pointer to DeviceManagementReportStatusVInProgress
+func DeviceManagementReportStatusPInProgress() *DeviceManagementReportStatus {
+ v := DeviceManagementReportStatusVInProgress
+ return &v
+}
+
+// DeviceManagementReportStatusPCompleted returns a pointer to DeviceManagementReportStatusVCompleted
+func DeviceManagementReportStatusPCompleted() *DeviceManagementReportStatus {
+ v := DeviceManagementReportStatusVCompleted
+ return &v
+}
+
+// DeviceManagementReportStatusPFailed returns a pointer to DeviceManagementReportStatusVFailed
+func DeviceManagementReportStatusPFailed() *DeviceManagementReportStatus {
+ v := DeviceManagementReportStatusVFailed
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsAction.go
new file mode 100644
index 00000000..e91994a5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsAction.go
@@ -0,0 +1,244 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsModel.go
new file mode 100644
index 00000000..adf624b1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsRequest.go
new file mode 100644
index 00000000..b7c8c144
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementCachedReportConfiguration collection
+func (r *DeviceManagementReportsCachedReportConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementCachedReportConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementExportJob collection
+func (r *DeviceManagementReportsExportJobsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementExportJob, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementReportSchedule collection
+func (r *DeviceManagementReportsReportSchedulesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementReportSchedule, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementRequest.go
new file mode 100644
index 00000000..ad626596
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementRequest.go
@@ -0,0 +1,6542 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AndroidDeviceOwnerEnrollmentProfile collection
+func (r *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]AndroidDeviceOwnerEnrollmentProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AndroidForWorkAppConfigurationSchema collection
+func (r *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest) Get(ctx context.Context) ([]AndroidForWorkAppConfigurationSchema, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AndroidForWorkEnrollmentProfile collection
+func (r *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]AndroidForWorkEnrollmentProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AndroidManagedStoreAppConfigurationSchema collection
+func (r *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest) Get(ctx context.Context) ([]AndroidManagedStoreAppConfigurationSchema, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppleUserInitiatedEnrollmentProfile collection
+func (r *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]AppleUserInitiatedEnrollmentProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AuditEvent collection
+func (r *DeviceManagementAuditEventsCollectionRequest) Get(ctx context.Context) ([]AuditEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementAutopilotEvent collection
+func (r *DeviceManagementAutopilotEventsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementAutopilotEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CartToClassAssociation collection
+func (r *DeviceManagementCartToClassAssociationsCollectionRequest) Get(ctx context.Context) ([]CartToClassAssociation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingCategory collection
+func (r *DeviceManagementCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ComplianceManagementPartner collection
+func (r *DeviceManagementComplianceManagementPartnersCollectionRequest) Get(ctx context.Context) ([]ComplianceManagementPartner, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DataSharingConsent collection
+func (r *DeviceManagementDataSharingConsentsCollectionRequest) Get(ctx context.Context) ([]DataSharingConsent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DepOnboardingSetting collection
+func (r *DeviceManagementDepOnboardingSettingsCollectionRequest) Get(ctx context.Context) ([]DepOnboardingSetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementDerivedCredentialSettings collection
+func (r *DeviceManagementDerivedCredentialsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementDerivedCredentialSettings, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DetectedApp collection
+func (r *DeviceManagementDetectedAppsCollectionRequest) Get(ctx context.Context) ([]DetectedApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceCategory collection
+func (r *DeviceManagementDeviceCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceCompliancePolicy collection
+func (r *DeviceManagementDeviceCompliancePoliciesCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceCompliancePolicySettingStateSummary collection
+func (r *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicySettingStateSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfigurationConflictSummary collection
+func (r *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationConflictSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RestrictedAppsViolation collection
+func (r *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest) Get(ctx context.Context) ([]RestrictedAppsViolation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfiguration collection
+func (r *DeviceManagementDeviceConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAllDeviceCertificateState collection
+func (r *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedAllDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceEnrollmentConfiguration collection
+func (r *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceEnrollmentConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceHealthScript collection
+func (r *DeviceManagementDeviceHealthScriptsCollectionRequest) Get(ctx context.Context) ([]DeviceHealthScript, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementPartner collection
+func (r *DeviceManagementDeviceManagementPartnersCollectionRequest) Get(ctx context.Context) ([]DeviceManagementPartner, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementScript collection
+func (r *DeviceManagementDeviceManagementScriptsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScript, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementDomainJoinConnector collection
+func (r *DeviceManagementDomainJoinConnectorsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementDomainJoinConnector, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EmbeddedSIMActivationCodePool collection
+func (r *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest) Get(ctx context.Context) ([]EmbeddedSIMActivationCodePool, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementExchangeConnector collection
+func (r *DeviceManagementExchangeConnectorsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementExchangeConnector, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementExchangeOnPremisesPolicy collection
+func (r *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementExchangeOnPremisesPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyConfiguration collection
+func (r *DeviceManagementGroupPolicyConfigurationsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyDefinitionFile collection
+func (r *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinitionFile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyDefinition collection
+func (r *DeviceManagementGroupPolicyDefinitionsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyMigrationReport collection
+func (r *DeviceManagementGroupPolicyMigrationReportsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyMigrationReport, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ImportedDeviceIdentity collection
+func (r *DeviceManagementImportedDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ImportedWindowsAutopilotDeviceIdentity collection
+func (r *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedWindowsAutopilotDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementIntent collection
+func (r *DeviceManagementIntentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IntuneBrandingProfile collection
+func (r *DeviceManagementIntuneBrandingProfilesCollectionRequest) Get(ctx context.Context) ([]IntuneBrandingProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IOSUpdateDeviceStatus collection
+func (r *DeviceManagementIOSUpdateStatusesCollectionRequest) Get(ctx context.Context) ([]IOSUpdateDeviceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceEncryptionState collection
+func (r *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceEncryptionState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDevice collection
+func (r *DeviceManagementManagedDevicesCollectionRequest) Get(ctx context.Context) ([]ManagedDevice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagementConditionStatement collection
+func (r *DeviceManagementManagementConditionStatementsCollectionRequest) Get(ctx context.Context) ([]ManagementConditionStatement, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagementCondition collection
+func (r *DeviceManagementManagementConditionsCollectionRequest) Get(ctx context.Context) ([]ManagementCondition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppTroubleshootingEvent collection
+func (r *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]MobileAppTroubleshootingEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileThreatDefenseConnector collection
+func (r *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest) Get(ctx context.Context) ([]MobileThreatDefenseConnector, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for NdesConnector collection
+func (r *DeviceManagementNdesConnectorsCollectionRequest) Get(ctx context.Context) ([]NdesConnector, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for NotificationMessageTemplate collection
+func (r *DeviceManagementNotificationMessageTemplatesCollectionRequest) Get(ctx context.Context) ([]NotificationMessageTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RemoteActionAudit collection
+func (r *DeviceManagementRemoteActionAuditsCollectionRequest) Get(ctx context.Context) ([]RemoteActionAudit, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RemoteAssistancePartner collection
+func (r *DeviceManagementRemoteAssistancePartnersCollectionRequest) Get(ctx context.Context) ([]RemoteAssistancePartner, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ResourceOperation collection
+func (r *DeviceManagementResourceOperationsCollectionRequest) Get(ctx context.Context) ([]ResourceOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceAndAppManagementRoleAssignment collection
+func (r *DeviceManagementRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceAndAppManagementRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RoleDefinition collection
+func (r *DeviceManagementRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]RoleDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RoleScopeTag collection
+func (r *DeviceManagementRoleScopeTagsCollectionRequest) Get(ctx context.Context) ([]RoleScopeTag, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingDefinition collection
+func (r *DeviceManagementSettingDefinitionsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TelecomExpenseManagementPartner collection
+func (r *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest) Get(ctx context.Context) ([]TelecomExpenseManagementPartner, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementTemplate collection
+func (r *DeviceManagementTemplatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TermsAndConditions collection
+func (r *DeviceManagementTermsAndConditionsCollectionRequest) Get(ctx context.Context) ([]TermsAndConditions, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementTroubleshootingEvent collection
+func (r *DeviceManagementTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTroubleshootingEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsBaseline collection
+func (r *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsBaseline, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsCategory collection
+func (r *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsDevicePerformance collection
+func (r *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsDevicePerformance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsDeviceStartupHistory collection
+func (r *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsDeviceStartupHistory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserPFXCertificate collection
+func (r *DeviceManagementUserPfxCertificatesCollectionRequest) Get(ctx context.Context) ([]UserPFXCertificate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsAutopilotDeploymentProfile collection
+func (r *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeploymentProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsAutopilotDeviceIdentity collection
+func (r *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsFeatureUpdateProfile collection
+func (r *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest) Get(ctx context.Context) ([]WindowsFeatureUpdateProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsInformationProtectionAppLearningSummary collection
+func (r *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionAppLearningSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsInformationProtectionNetworkLearningSummary collection
+func (r *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionNetworkLearningSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsMalwareInformation collection
+func (r *DeviceManagementWindowsMalwareInformationCollectionRequest) Get(ctx context.Context) ([]WindowsMalwareInformation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScheduledReportRecurrenceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScheduledReportRecurrenceEnum.go
new file mode 100644
index 00000000..3ad12449
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScheduledReportRecurrenceEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementScheduledReportRecurrence undocumented
+type DeviceManagementScheduledReportRecurrence int
+
+const (
+ // DeviceManagementScheduledReportRecurrenceVNone undocumented
+ DeviceManagementScheduledReportRecurrenceVNone DeviceManagementScheduledReportRecurrence = 0
+ // DeviceManagementScheduledReportRecurrenceVDaily undocumented
+ DeviceManagementScheduledReportRecurrenceVDaily DeviceManagementScheduledReportRecurrence = 1
+ // DeviceManagementScheduledReportRecurrenceVWeekly undocumented
+ DeviceManagementScheduledReportRecurrenceVWeekly DeviceManagementScheduledReportRecurrence = 2
+ // DeviceManagementScheduledReportRecurrenceVMonthly undocumented
+ DeviceManagementScheduledReportRecurrenceVMonthly DeviceManagementScheduledReportRecurrence = 3
+)
+
+// DeviceManagementScheduledReportRecurrencePNone returns a pointer to DeviceManagementScheduledReportRecurrenceVNone
+func DeviceManagementScheduledReportRecurrencePNone() *DeviceManagementScheduledReportRecurrence {
+ v := DeviceManagementScheduledReportRecurrenceVNone
+ return &v
+}
+
+// DeviceManagementScheduledReportRecurrencePDaily returns a pointer to DeviceManagementScheduledReportRecurrenceVDaily
+func DeviceManagementScheduledReportRecurrencePDaily() *DeviceManagementScheduledReportRecurrence {
+ v := DeviceManagementScheduledReportRecurrenceVDaily
+ return &v
+}
+
+// DeviceManagementScheduledReportRecurrencePWeekly returns a pointer to DeviceManagementScheduledReportRecurrenceVWeekly
+func DeviceManagementScheduledReportRecurrencePWeekly() *DeviceManagementScheduledReportRecurrence {
+ v := DeviceManagementScheduledReportRecurrenceVWeekly
+ return &v
+}
+
+// DeviceManagementScheduledReportRecurrencePMonthly returns a pointer to DeviceManagementScheduledReportRecurrenceVMonthly
+func DeviceManagementScheduledReportRecurrencePMonthly() *DeviceManagementScheduledReportRecurrence {
+ v := DeviceManagementScheduledReportRecurrenceVMonthly
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAction.go
new file mode 100644
index 00000000..27f01a3f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAction.go
@@ -0,0 +1,134 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// DeviceManagementScriptCollectionHasPayloadLinksRequestParameter undocumented
+type DeviceManagementScriptCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// DeviceManagementScriptAssignRequestParameter undocumented
+type DeviceManagementScriptAssignRequestParameter struct {
+ // DeviceManagementScriptGroupAssignments undocumented
+ DeviceManagementScriptGroupAssignments []DeviceManagementScriptGroupAssignment `json:"deviceManagementScriptGroupAssignments,omitempty"`
+ // DeviceManagementScriptAssignments undocumented
+ DeviceManagementScriptAssignments []DeviceManagementScriptAssignment `json:"deviceManagementScriptAssignments,omitempty"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAssignmentModel.go
new file mode 100644
index 00000000..7bff9864
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAssignmentRequest.go
new file mode 100644
index 00000000..25bd6a67
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptDeviceStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptDeviceStateModel.go
new file mode 100644
index 00000000..9ebf4325
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptDeviceStateModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptDeviceStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptDeviceStateRequest.go
new file mode 100644
index 00000000..839154f4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptDeviceStateRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// ManagedDevice is navigation property
+func (b *DeviceManagementScriptDeviceStateRequestBuilder) ManagedDevice() *ManagedDeviceRequestBuilder {
+ bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDevice"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptGroupAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptGroupAssignmentModel.go
new file mode 100644
index 00000000..dd547ced
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptGroupAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptGroupAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptGroupAssignmentRequest.go
new file mode 100644
index 00000000..ad1fb68c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptGroupAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptModel.go
new file mode 100644
index 00000000..53e1cf7d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptPolicySetItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptPolicySetItemModel.go
new file mode 100644
index 00000000..3eb7454b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptPolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementScriptPolicySetItem A class containing the properties used for device management script PolicySetItem.
+type DeviceManagementScriptPolicySetItem struct {
+ // PolicySetItem is the base model of DeviceManagementScriptPolicySetItem
+ PolicySetItem
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRequest.go
new file mode 100644
index 00000000..9949619c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRequest.go
@@ -0,0 +1,428 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementScriptAssignment collection
+func (r *DeviceManagementScriptAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementScriptDeviceState collection
+func (r *DeviceManagementScriptDeviceRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementScriptGroupAssignment collection
+func (r *DeviceManagementScriptGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptGroupAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementScriptUserState collection
+func (r *DeviceManagementScriptUserRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptUserState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRunSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRunSummaryModel.go
new file mode 100644
index 00000000..686c9574
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRunSummaryModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRunSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRunSummaryRequest.go
new file mode 100644
index 00000000..49a1718f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRunSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptUserStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptUserStateModel.go
new file mode 100644
index 00000000..9b18ad5e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptUserStateModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptUserStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptUserStateRequest.go
new file mode 100644
index 00000000..2cbfee4f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptUserStateRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementScriptDeviceState collection
+func (r *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingBooleanConstraintModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingBooleanConstraintModel.go
new file mode 100644
index 00000000..aaa2c61c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingBooleanConstraintModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingCategoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingCategoryModel.go
new file mode 100644
index 00000000..a638dfae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingCategoryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingCategoryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingCategoryRequest.go
new file mode 100644
index 00000000..d4a52abf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingCategoryRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingDefinition collection
+func (r *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingComparisonModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingComparisonModel.go
new file mode 100644
index 00000000..4c90f779
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingComparisonModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDefinitionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDefinitionModel.go
new file mode 100644
index 00000000..c506bb70
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDefinitionModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDefinitionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDefinitionRequest.go
new file mode 100644
index 00000000..8ef072f2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDefinitionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDependencyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDependencyModel.go
new file mode 100644
index 00000000..99f79db8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDependencyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingInstanceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingInstanceModel.go
new file mode 100644
index 00000000..ddfc6f5c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingInstanceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingInstanceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingInstanceRequest.go
new file mode 100644
index 00000000..9658cdc9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingInstanceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingIntegerConstraintModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingIntegerConstraintModel.go
new file mode 100644
index 00000000..91092cd8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingIntegerConstraintModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingRegexConstraintModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingRegexConstraintModel.go
new file mode 100644
index 00000000..6e946846
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingRegexConstraintModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingStringLengthConstraintModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingStringLengthConstraintModel.go
new file mode 100644
index 00000000..b1c134e6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingStringLengthConstraintModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingXMLConstraintModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingXMLConstraintModel.go
new file mode 100644
index 00000000..e548f871
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingXMLConstraintModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSettingXMLConstraint undocumented
+type DeviceManagementSettingXMLConstraint struct {
+ // DeviceManagementConstraint is the base model of DeviceManagementSettingXMLConstraint
+ DeviceManagementConstraint
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingsModel.go
new file mode 100644
index 00000000..ab44bda1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementStringSettingInstanceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementStringSettingInstanceModel.go
new file mode 100644
index 00000000..15bcaa52
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementStringSettingInstanceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSubscriptionStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSubscriptionStateEnum.go
new file mode 100644
index 00000000..74a56199
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSubscriptionStateEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSubscriptionState undocumented
+type DeviceManagementSubscriptionState int
+
+const (
+ // DeviceManagementSubscriptionStateVPending undocumented
+ DeviceManagementSubscriptionStateVPending DeviceManagementSubscriptionState = 0
+ // DeviceManagementSubscriptionStateVActive undocumented
+ DeviceManagementSubscriptionStateVActive DeviceManagementSubscriptionState = 1
+ // DeviceManagementSubscriptionStateVWarning undocumented
+ DeviceManagementSubscriptionStateVWarning DeviceManagementSubscriptionState = 2
+ // DeviceManagementSubscriptionStateVDisabled undocumented
+ DeviceManagementSubscriptionStateVDisabled DeviceManagementSubscriptionState = 3
+ // DeviceManagementSubscriptionStateVDeleted undocumented
+ DeviceManagementSubscriptionStateVDeleted DeviceManagementSubscriptionState = 4
+ // DeviceManagementSubscriptionStateVBlocked undocumented
+ DeviceManagementSubscriptionStateVBlocked DeviceManagementSubscriptionState = 5
+ // DeviceManagementSubscriptionStateVLockedOut undocumented
+ DeviceManagementSubscriptionStateVLockedOut DeviceManagementSubscriptionState = 8
+)
+
+// DeviceManagementSubscriptionStatePPending returns a pointer to DeviceManagementSubscriptionStateVPending
+func DeviceManagementSubscriptionStatePPending() *DeviceManagementSubscriptionState {
+ v := DeviceManagementSubscriptionStateVPending
+ return &v
+}
+
+// DeviceManagementSubscriptionStatePActive returns a pointer to DeviceManagementSubscriptionStateVActive
+func DeviceManagementSubscriptionStatePActive() *DeviceManagementSubscriptionState {
+ v := DeviceManagementSubscriptionStateVActive
+ return &v
+}
+
+// DeviceManagementSubscriptionStatePWarning returns a pointer to DeviceManagementSubscriptionStateVWarning
+func DeviceManagementSubscriptionStatePWarning() *DeviceManagementSubscriptionState {
+ v := DeviceManagementSubscriptionStateVWarning
+ return &v
+}
+
+// DeviceManagementSubscriptionStatePDisabled returns a pointer to DeviceManagementSubscriptionStateVDisabled
+func DeviceManagementSubscriptionStatePDisabled() *DeviceManagementSubscriptionState {
+ v := DeviceManagementSubscriptionStateVDisabled
+ return &v
+}
+
+// DeviceManagementSubscriptionStatePDeleted returns a pointer to DeviceManagementSubscriptionStateVDeleted
+func DeviceManagementSubscriptionStatePDeleted() *DeviceManagementSubscriptionState {
+ v := DeviceManagementSubscriptionStateVDeleted
+ return &v
+}
+
+// DeviceManagementSubscriptionStatePBlocked returns a pointer to DeviceManagementSubscriptionStateVBlocked
+func DeviceManagementSubscriptionStatePBlocked() *DeviceManagementSubscriptionState {
+ v := DeviceManagementSubscriptionStateVBlocked
+ return &v
+}
+
+// DeviceManagementSubscriptionStatePLockedOut returns a pointer to DeviceManagementSubscriptionStateVLockedOut
+func DeviceManagementSubscriptionStatePLockedOut() *DeviceManagementSubscriptionState {
+ v := DeviceManagementSubscriptionStateVLockedOut
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSubscriptionsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSubscriptionsEnum.go
new file mode 100644
index 00000000..292c5b0c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSubscriptionsEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSubscriptions undocumented
+type DeviceManagementSubscriptions int
+
+const (
+ // DeviceManagementSubscriptionsVNone undocumented
+ DeviceManagementSubscriptionsVNone DeviceManagementSubscriptions = 0
+ // DeviceManagementSubscriptionsVIntune undocumented
+ DeviceManagementSubscriptionsVIntune DeviceManagementSubscriptions = 1
+ // DeviceManagementSubscriptionsVOffice365 undocumented
+ DeviceManagementSubscriptionsVOffice365 DeviceManagementSubscriptions = 2
+ // DeviceManagementSubscriptionsVIntunePremium undocumented
+ DeviceManagementSubscriptionsVIntunePremium DeviceManagementSubscriptions = 4
+ // DeviceManagementSubscriptionsVIntune_EDU undocumented
+ DeviceManagementSubscriptionsVIntune_EDU DeviceManagementSubscriptions = 8
+ // DeviceManagementSubscriptionsVIntune_SMB undocumented
+ DeviceManagementSubscriptionsVIntune_SMB DeviceManagementSubscriptions = 16
+)
+
+// DeviceManagementSubscriptionsPNone returns a pointer to DeviceManagementSubscriptionsVNone
+func DeviceManagementSubscriptionsPNone() *DeviceManagementSubscriptions {
+ v := DeviceManagementSubscriptionsVNone
+ return &v
+}
+
+// DeviceManagementSubscriptionsPIntune returns a pointer to DeviceManagementSubscriptionsVIntune
+func DeviceManagementSubscriptionsPIntune() *DeviceManagementSubscriptions {
+ v := DeviceManagementSubscriptionsVIntune
+ return &v
+}
+
+// DeviceManagementSubscriptionsPOffice365 returns a pointer to DeviceManagementSubscriptionsVOffice365
+func DeviceManagementSubscriptionsPOffice365() *DeviceManagementSubscriptions {
+ v := DeviceManagementSubscriptionsVOffice365
+ return &v
+}
+
+// DeviceManagementSubscriptionsPIntunePremium returns a pointer to DeviceManagementSubscriptionsVIntunePremium
+func DeviceManagementSubscriptionsPIntunePremium() *DeviceManagementSubscriptions {
+ v := DeviceManagementSubscriptionsVIntunePremium
+ return &v
+}
+
+// DeviceManagementSubscriptionsPIntune_EDU returns a pointer to DeviceManagementSubscriptionsVIntune_EDU
+func DeviceManagementSubscriptionsPIntune_EDU() *DeviceManagementSubscriptions {
+ v := DeviceManagementSubscriptionsVIntune_EDU
+ return &v
+}
+
+// DeviceManagementSubscriptionsPIntune_SMB returns a pointer to DeviceManagementSubscriptionsVIntune_SMB
+func DeviceManagementSubscriptionsPIntune_SMB() *DeviceManagementSubscriptions {
+ v := DeviceManagementSubscriptionsVIntune_SMB
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateAction.go
new file mode 100644
index 00000000..1064e5d7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateAction.go
@@ -0,0 +1,44 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/DeviceManagementTemplateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateModel.go
new file mode 100644
index 00000000..0cc7ec1b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateRequest.go
new file mode 100644
index 00000000..a309c1ff
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementTemplateSettingCategory collection
+func (r *DeviceManagementTemplateCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTemplateSettingCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementTemplate collection
+func (r *DeviceManagementTemplateMigratableToCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementTemplateSettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateSettingCategoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateSettingCategoryModel.go
new file mode 100644
index 00000000..1b55cdbd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateSettingCategoryModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateSettingCategoryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateSettingCategoryRequest.go
new file mode 100644
index 00000000..8857fcef
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateSettingCategoryRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/DeviceManagementTemplateTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateTypeEnum.go
new file mode 100644
index 00000000..95e0d602
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementTemplateType undocumented
+type DeviceManagementTemplateType int
+
+const (
+ // DeviceManagementTemplateTypeVSecurityBaseline undocumented
+ DeviceManagementTemplateTypeVSecurityBaseline DeviceManagementTemplateType = 0
+ // DeviceManagementTemplateTypeVSpecializedDevices undocumented
+ DeviceManagementTemplateTypeVSpecializedDevices DeviceManagementTemplateType = 1
+ // DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline undocumented
+ DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline DeviceManagementTemplateType = 2
+ // DeviceManagementTemplateTypeVDeviceConfiguration undocumented
+ DeviceManagementTemplateTypeVDeviceConfiguration DeviceManagementTemplateType = 3
+ // DeviceManagementTemplateTypeVCustom undocumented
+ DeviceManagementTemplateTypeVCustom DeviceManagementTemplateType = 4
+ // DeviceManagementTemplateTypeVSecurityTemplate undocumented
+ DeviceManagementTemplateTypeVSecurityTemplate DeviceManagementTemplateType = 5
+ // DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline undocumented
+ DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline DeviceManagementTemplateType = 6
+ // DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline undocumented
+ DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline DeviceManagementTemplateType = 7
+)
+
+// DeviceManagementTemplateTypePSecurityBaseline returns a pointer to DeviceManagementTemplateTypeVSecurityBaseline
+func DeviceManagementTemplateTypePSecurityBaseline() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVSecurityBaseline
+ return &v
+}
+
+// DeviceManagementTemplateTypePSpecializedDevices returns a pointer to DeviceManagementTemplateTypeVSpecializedDevices
+func DeviceManagementTemplateTypePSpecializedDevices() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVSpecializedDevices
+ return &v
+}
+
+// DeviceManagementTemplateTypePAdvancedThreatProtectionSecurityBaseline returns a pointer to DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline
+func DeviceManagementTemplateTypePAdvancedThreatProtectionSecurityBaseline() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline
+ return &v
+}
+
+// DeviceManagementTemplateTypePDeviceConfiguration returns a pointer to DeviceManagementTemplateTypeVDeviceConfiguration
+func DeviceManagementTemplateTypePDeviceConfiguration() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVDeviceConfiguration
+ return &v
+}
+
+// DeviceManagementTemplateTypePCustom returns a pointer to DeviceManagementTemplateTypeVCustom
+func DeviceManagementTemplateTypePCustom() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVCustom
+ return &v
+}
+
+// DeviceManagementTemplateTypePSecurityTemplate returns a pointer to DeviceManagementTemplateTypeVSecurityTemplate
+func DeviceManagementTemplateTypePSecurityTemplate() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVSecurityTemplate
+ return &v
+}
+
+// DeviceManagementTemplateTypePMicrosoftEdgeSecurityBaseline returns a pointer to DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline
+func DeviceManagementTemplateTypePMicrosoftEdgeSecurityBaseline() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline
+ return &v
+}
+
+// DeviceManagementTemplateTypePMicrosoftOffice365ProPlusSecurityBaseline returns a pointer to DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline
+func DeviceManagementTemplateTypePMicrosoftOffice365ProPlusSecurityBaseline() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingErrorDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingErrorDetailsModel.go
new file mode 100644
index 00000000..df0ac4b2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingErrorDetailsModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingErrorResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingErrorResourceModel.go
new file mode 100644
index 00000000..880b0e67
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingErrorResourceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingEventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingEventModel.go
new file mode 100644
index 00000000..7922b6a8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingEventModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingEventRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingEventRequest.go
new file mode 100644
index 00000000..a294f0db
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingEventRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementUserRightsLocalUserOrGroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementUserRightsLocalUserOrGroupModel.go
new file mode 100644
index 00000000..b9266960
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementUserRightsLocalUserOrGroupModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementUserRightsSettingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementUserRightsSettingModel.go
new file mode 100644
index 00000000..823e5dd0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementUserRightsSettingModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManangementIntentValueTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManangementIntentValueTypeEnum.go
new file mode 100644
index 00000000..cba87a8a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManangementIntentValueTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManangementIntentValueType undocumented
+type DeviceManangementIntentValueType int
+
+const (
+ // DeviceManangementIntentValueTypeVInteger undocumented
+ DeviceManangementIntentValueTypeVInteger DeviceManangementIntentValueType = 0
+ // DeviceManangementIntentValueTypeVBoolean undocumented
+ DeviceManangementIntentValueTypeVBoolean DeviceManangementIntentValueType = 1
+ // DeviceManangementIntentValueTypeVString undocumented
+ DeviceManangementIntentValueTypeVString DeviceManangementIntentValueType = 2
+ // DeviceManangementIntentValueTypeVComplex undocumented
+ DeviceManangementIntentValueTypeVComplex DeviceManangementIntentValueType = 3
+ // DeviceManangementIntentValueTypeVCollection undocumented
+ DeviceManangementIntentValueTypeVCollection DeviceManangementIntentValueType = 4
+ // DeviceManangementIntentValueTypeVAbstractComplex undocumented
+ DeviceManangementIntentValueTypeVAbstractComplex DeviceManangementIntentValueType = 5
+)
+
+// DeviceManangementIntentValueTypePInteger returns a pointer to DeviceManangementIntentValueTypeVInteger
+func DeviceManangementIntentValueTypePInteger() *DeviceManangementIntentValueType {
+ v := DeviceManangementIntentValueTypeVInteger
+ return &v
+}
+
+// DeviceManangementIntentValueTypePBoolean returns a pointer to DeviceManangementIntentValueTypeVBoolean
+func DeviceManangementIntentValueTypePBoolean() *DeviceManangementIntentValueType {
+ v := DeviceManangementIntentValueTypeVBoolean
+ return &v
+}
+
+// DeviceManangementIntentValueTypePString returns a pointer to DeviceManangementIntentValueTypeVString
+func DeviceManangementIntentValueTypePString() *DeviceManangementIntentValueType {
+ v := DeviceManangementIntentValueTypeVString
+ return &v
+}
+
+// DeviceManangementIntentValueTypePComplex returns a pointer to DeviceManangementIntentValueTypeVComplex
+func DeviceManangementIntentValueTypePComplex() *DeviceManangementIntentValueType {
+ v := DeviceManangementIntentValueTypeVComplex
+ return &v
+}
+
+// DeviceManangementIntentValueTypePCollection returns a pointer to DeviceManangementIntentValueTypeVCollection
+func DeviceManangementIntentValueTypePCollection() *DeviceManangementIntentValueType {
+ v := DeviceManangementIntentValueTypeVCollection
+ return &v
+}
+
+// DeviceManangementIntentValueTypePAbstractComplex returns a pointer to DeviceManangementIntentValueTypeVAbstractComplex
+func DeviceManangementIntentValueTypePAbstractComplex() *DeviceManangementIntentValueType {
+ v := DeviceManangementIntentValueTypeVAbstractComplex
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceModel.go
new file mode 100644
index 00000000..42de87ba
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceModel.go
@@ -0,0 +1,71 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceOperatingSystemSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceOperatingSystemSummaryModel.go
new file mode 100644
index 00000000..59f81e8e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceOperatingSystemSummaryModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DevicePlatformTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DevicePlatformTypeEnum.go
new file mode 100644
index 00000000..44d1bc22
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DevicePlatformTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DevicePlatformType undocumented
+type DevicePlatformType int
+
+const (
+ // DevicePlatformTypeVAndroid undocumented
+ DevicePlatformTypeVAndroid DevicePlatformType = 0
+ // DevicePlatformTypeVAndroidForWork undocumented
+ DevicePlatformTypeVAndroidForWork DevicePlatformType = 1
+ // DevicePlatformTypeVIOS undocumented
+ DevicePlatformTypeVIOS DevicePlatformType = 2
+ // DevicePlatformTypeVMacOS undocumented
+ DevicePlatformTypeVMacOS DevicePlatformType = 3
+ // DevicePlatformTypeVWindowsPhone81 undocumented
+ DevicePlatformTypeVWindowsPhone81 DevicePlatformType = 4
+ // DevicePlatformTypeVWindows81AndLater undocumented
+ DevicePlatformTypeVWindows81AndLater DevicePlatformType = 5
+ // DevicePlatformTypeVWindows10AndLater undocumented
+ DevicePlatformTypeVWindows10AndLater DevicePlatformType = 6
+ // DevicePlatformTypeVAndroidWorkProfile undocumented
+ DevicePlatformTypeVAndroidWorkProfile DevicePlatformType = 7
+ // DevicePlatformTypeVUnknown undocumented
+ DevicePlatformTypeVUnknown DevicePlatformType = 8
+)
+
+// DevicePlatformTypePAndroid returns a pointer to DevicePlatformTypeVAndroid
+func DevicePlatformTypePAndroid() *DevicePlatformType {
+ v := DevicePlatformTypeVAndroid
+ return &v
+}
+
+// DevicePlatformTypePAndroidForWork returns a pointer to DevicePlatformTypeVAndroidForWork
+func DevicePlatformTypePAndroidForWork() *DevicePlatformType {
+ v := DevicePlatformTypeVAndroidForWork
+ return &v
+}
+
+// DevicePlatformTypePIOS returns a pointer to DevicePlatformTypeVIOS
+func DevicePlatformTypePIOS() *DevicePlatformType {
+ v := DevicePlatformTypeVIOS
+ return &v
+}
+
+// DevicePlatformTypePMacOS returns a pointer to DevicePlatformTypeVMacOS
+func DevicePlatformTypePMacOS() *DevicePlatformType {
+ v := DevicePlatformTypeVMacOS
+ return &v
+}
+
+// DevicePlatformTypePWindowsPhone81 returns a pointer to DevicePlatformTypeVWindowsPhone81
+func DevicePlatformTypePWindowsPhone81() *DevicePlatformType {
+ v := DevicePlatformTypeVWindowsPhone81
+ return &v
+}
+
+// DevicePlatformTypePWindows81AndLater returns a pointer to DevicePlatformTypeVWindows81AndLater
+func DevicePlatformTypePWindows81AndLater() *DevicePlatformType {
+ v := DevicePlatformTypeVWindows81AndLater
+ return &v
+}
+
+// DevicePlatformTypePWindows10AndLater returns a pointer to DevicePlatformTypeVWindows10AndLater
+func DevicePlatformTypePWindows10AndLater() *DevicePlatformType {
+ v := DevicePlatformTypeVWindows10AndLater
+ return &v
+}
+
+// DevicePlatformTypePAndroidWorkProfile returns a pointer to DevicePlatformTypeVAndroidWorkProfile
+func DevicePlatformTypePAndroidWorkProfile() *DevicePlatformType {
+ v := DevicePlatformTypeVAndroidWorkProfile
+ return &v
+}
+
+// DevicePlatformTypePUnknown returns a pointer to DevicePlatformTypeVUnknown
+func DevicePlatformTypePUnknown() *DevicePlatformType {
+ v := DevicePlatformTypeVUnknown
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceProtectionOverviewModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceProtectionOverviewModel.go
new file mode 100644
index 00000000..efe93189
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceProtectionOverviewModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceRegistrationStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceRegistrationStateEnum.go
new file mode 100644
index 00000000..6a7c0b28
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceRegistrationStateEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceRegistrationState undocumented
+type DeviceRegistrationState int
+
+const (
+ // DeviceRegistrationStateVNotRegistered undocumented
+ DeviceRegistrationStateVNotRegistered DeviceRegistrationState = 0
+ // DeviceRegistrationStateVRegistered undocumented
+ DeviceRegistrationStateVRegistered DeviceRegistrationState = 2
+ // DeviceRegistrationStateVRevoked undocumented
+ DeviceRegistrationStateVRevoked DeviceRegistrationState = 3
+ // DeviceRegistrationStateVKeyConflict undocumented
+ DeviceRegistrationStateVKeyConflict DeviceRegistrationState = 4
+ // DeviceRegistrationStateVApprovalPending undocumented
+ DeviceRegistrationStateVApprovalPending DeviceRegistrationState = 5
+ // DeviceRegistrationStateVCertificateReset undocumented
+ DeviceRegistrationStateVCertificateReset DeviceRegistrationState = 6
+ // DeviceRegistrationStateVNotRegisteredPendingEnrollment undocumented
+ DeviceRegistrationStateVNotRegisteredPendingEnrollment DeviceRegistrationState = 7
+ // DeviceRegistrationStateVUnknown undocumented
+ DeviceRegistrationStateVUnknown DeviceRegistrationState = 8
+)
+
+// DeviceRegistrationStatePNotRegistered returns a pointer to DeviceRegistrationStateVNotRegistered
+func DeviceRegistrationStatePNotRegistered() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVNotRegistered
+ return &v
+}
+
+// DeviceRegistrationStatePRegistered returns a pointer to DeviceRegistrationStateVRegistered
+func DeviceRegistrationStatePRegistered() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVRegistered
+ return &v
+}
+
+// DeviceRegistrationStatePRevoked returns a pointer to DeviceRegistrationStateVRevoked
+func DeviceRegistrationStatePRevoked() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVRevoked
+ return &v
+}
+
+// DeviceRegistrationStatePKeyConflict returns a pointer to DeviceRegistrationStateVKeyConflict
+func DeviceRegistrationStatePKeyConflict() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVKeyConflict
+ return &v
+}
+
+// DeviceRegistrationStatePApprovalPending returns a pointer to DeviceRegistrationStateVApprovalPending
+func DeviceRegistrationStatePApprovalPending() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVApprovalPending
+ return &v
+}
+
+// DeviceRegistrationStatePCertificateReset returns a pointer to DeviceRegistrationStateVCertificateReset
+func DeviceRegistrationStatePCertificateReset() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVCertificateReset
+ return &v
+}
+
+// DeviceRegistrationStatePNotRegisteredPendingEnrollment returns a pointer to DeviceRegistrationStateVNotRegisteredPendingEnrollment
+func DeviceRegistrationStatePNotRegisteredPendingEnrollment() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVNotRegisteredPendingEnrollment
+ return &v
+}
+
+// DeviceRegistrationStatePUnknown returns a pointer to DeviceRegistrationStateVUnknown
+func DeviceRegistrationStatePUnknown() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVUnknown
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceRequest.go
new file mode 100644
index 00000000..8b56fbf0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceRequest.go
@@ -0,0 +1,609 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Command collection
+func (r *DeviceCommandsCollectionRequest) Get(ctx context.Context) ([]Command, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *DeviceExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DeviceMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DeviceRegisteredOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DeviceRegisteredUsersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DeviceTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceRestrictionActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceRestrictionActionModel.go
new file mode 100644
index 00000000..a5af4498
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceRestrictionActionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceSetupConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceSetupConfigurationModel.go
new file mode 100644
index 00000000..9f514fff
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceSetupConfigurationModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/DeviceThreatProtectionLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceThreatProtectionLevelEnum.go
new file mode 100644
index 00000000..db5b610e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceThreatProtectionLevelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceThreatProtectionLevel undocumented
+type DeviceThreatProtectionLevel int
+
+const (
+ // DeviceThreatProtectionLevelVUnavailable undocumented
+ DeviceThreatProtectionLevelVUnavailable DeviceThreatProtectionLevel = 0
+ // DeviceThreatProtectionLevelVSecured undocumented
+ DeviceThreatProtectionLevelVSecured DeviceThreatProtectionLevel = 1
+ // DeviceThreatProtectionLevelVLow undocumented
+ DeviceThreatProtectionLevelVLow DeviceThreatProtectionLevel = 2
+ // DeviceThreatProtectionLevelVMedium undocumented
+ DeviceThreatProtectionLevelVMedium DeviceThreatProtectionLevel = 3
+ // DeviceThreatProtectionLevelVHigh undocumented
+ DeviceThreatProtectionLevelVHigh DeviceThreatProtectionLevel = 4
+ // DeviceThreatProtectionLevelVNotSet undocumented
+ DeviceThreatProtectionLevelVNotSet DeviceThreatProtectionLevel = 10
+)
+
+// DeviceThreatProtectionLevelPUnavailable returns a pointer to DeviceThreatProtectionLevelVUnavailable
+func DeviceThreatProtectionLevelPUnavailable() *DeviceThreatProtectionLevel {
+ v := DeviceThreatProtectionLevelVUnavailable
+ return &v
+}
+
+// DeviceThreatProtectionLevelPSecured returns a pointer to DeviceThreatProtectionLevelVSecured
+func DeviceThreatProtectionLevelPSecured() *DeviceThreatProtectionLevel {
+ v := DeviceThreatProtectionLevelVSecured
+ return &v
+}
+
+// DeviceThreatProtectionLevelPLow returns a pointer to DeviceThreatProtectionLevelVLow
+func DeviceThreatProtectionLevelPLow() *DeviceThreatProtectionLevel {
+ v := DeviceThreatProtectionLevelVLow
+ return &v
+}
+
+// DeviceThreatProtectionLevelPMedium returns a pointer to DeviceThreatProtectionLevelVMedium
+func DeviceThreatProtectionLevelPMedium() *DeviceThreatProtectionLevel {
+ v := DeviceThreatProtectionLevelVMedium
+ return &v
+}
+
+// DeviceThreatProtectionLevelPHigh returns a pointer to DeviceThreatProtectionLevelVHigh
+func DeviceThreatProtectionLevelPHigh() *DeviceThreatProtectionLevel {
+ v := DeviceThreatProtectionLevelVHigh
+ return &v
+}
+
+// DeviceThreatProtectionLevelPNotSet returns a pointer to DeviceThreatProtectionLevelVNotSet
+func DeviceThreatProtectionLevelPNotSet() *DeviceThreatProtectionLevel {
+ v := DeviceThreatProtectionLevelVNotSet
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceTypeEnum.go
new file mode 100644
index 00000000..fb910dbb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceTypeEnum.go
@@ -0,0 +1,185 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceType undocumented
+type DeviceType int
+
+const (
+ // DeviceTypeVDesktop undocumented
+ DeviceTypeVDesktop DeviceType = 0
+ // DeviceTypeVWindowsRT undocumented
+ DeviceTypeVWindowsRT DeviceType = 1
+ // DeviceTypeVWinMO6 undocumented
+ DeviceTypeVWinMO6 DeviceType = 2
+ // DeviceTypeVNokia undocumented
+ DeviceTypeVNokia DeviceType = 3
+ // DeviceTypeVWindowsPhone undocumented
+ DeviceTypeVWindowsPhone DeviceType = 4
+ // DeviceTypeVMac undocumented
+ DeviceTypeVMac DeviceType = 5
+ // DeviceTypeVWinCE undocumented
+ DeviceTypeVWinCE DeviceType = 6
+ // DeviceTypeVWinEmbedded undocumented
+ DeviceTypeVWinEmbedded DeviceType = 7
+ // DeviceTypeVIPhone undocumented
+ DeviceTypeVIPhone DeviceType = 8
+ // DeviceTypeVIPad undocumented
+ DeviceTypeVIPad DeviceType = 9
+ // DeviceTypeVIPod undocumented
+ DeviceTypeVIPod DeviceType = 10
+ // DeviceTypeVAndroid undocumented
+ DeviceTypeVAndroid DeviceType = 11
+ // DeviceTypeVISocConsumer undocumented
+ DeviceTypeVISocConsumer DeviceType = 12
+ // DeviceTypeVUnix undocumented
+ DeviceTypeVUnix DeviceType = 13
+ // DeviceTypeVMacMDM undocumented
+ DeviceTypeVMacMDM DeviceType = 14
+ // DeviceTypeVHoloLens undocumented
+ DeviceTypeVHoloLens DeviceType = 15
+ // DeviceTypeVSurfaceHub undocumented
+ DeviceTypeVSurfaceHub DeviceType = 16
+ // DeviceTypeVAndroidForWork undocumented
+ DeviceTypeVAndroidForWork DeviceType = 17
+ // DeviceTypeVAndroidEnterprise undocumented
+ DeviceTypeVAndroidEnterprise DeviceType = 18
+ // DeviceTypeVBlackberry undocumented
+ DeviceTypeVBlackberry DeviceType = 100
+ // DeviceTypeVPalm undocumented
+ DeviceTypeVPalm DeviceType = 101
+ // DeviceTypeVUnknown undocumented
+ DeviceTypeVUnknown DeviceType = 255
+)
+
+// DeviceTypePDesktop returns a pointer to DeviceTypeVDesktop
+func DeviceTypePDesktop() *DeviceType {
+ v := DeviceTypeVDesktop
+ return &v
+}
+
+// DeviceTypePWindowsRT returns a pointer to DeviceTypeVWindowsRT
+func DeviceTypePWindowsRT() *DeviceType {
+ v := DeviceTypeVWindowsRT
+ return &v
+}
+
+// DeviceTypePWinMO6 returns a pointer to DeviceTypeVWinMO6
+func DeviceTypePWinMO6() *DeviceType {
+ v := DeviceTypeVWinMO6
+ return &v
+}
+
+// DeviceTypePNokia returns a pointer to DeviceTypeVNokia
+func DeviceTypePNokia() *DeviceType {
+ v := DeviceTypeVNokia
+ return &v
+}
+
+// DeviceTypePWindowsPhone returns a pointer to DeviceTypeVWindowsPhone
+func DeviceTypePWindowsPhone() *DeviceType {
+ v := DeviceTypeVWindowsPhone
+ return &v
+}
+
+// DeviceTypePMac returns a pointer to DeviceTypeVMac
+func DeviceTypePMac() *DeviceType {
+ v := DeviceTypeVMac
+ return &v
+}
+
+// DeviceTypePWinCE returns a pointer to DeviceTypeVWinCE
+func DeviceTypePWinCE() *DeviceType {
+ v := DeviceTypeVWinCE
+ return &v
+}
+
+// DeviceTypePWinEmbedded returns a pointer to DeviceTypeVWinEmbedded
+func DeviceTypePWinEmbedded() *DeviceType {
+ v := DeviceTypeVWinEmbedded
+ return &v
+}
+
+// DeviceTypePIPhone returns a pointer to DeviceTypeVIPhone
+func DeviceTypePIPhone() *DeviceType {
+ v := DeviceTypeVIPhone
+ return &v
+}
+
+// DeviceTypePIPad returns a pointer to DeviceTypeVIPad
+func DeviceTypePIPad() *DeviceType {
+ v := DeviceTypeVIPad
+ return &v
+}
+
+// DeviceTypePIPod returns a pointer to DeviceTypeVIPod
+func DeviceTypePIPod() *DeviceType {
+ v := DeviceTypeVIPod
+ return &v
+}
+
+// DeviceTypePAndroid returns a pointer to DeviceTypeVAndroid
+func DeviceTypePAndroid() *DeviceType {
+ v := DeviceTypeVAndroid
+ return &v
+}
+
+// DeviceTypePISocConsumer returns a pointer to DeviceTypeVISocConsumer
+func DeviceTypePISocConsumer() *DeviceType {
+ v := DeviceTypeVISocConsumer
+ return &v
+}
+
+// DeviceTypePUnix returns a pointer to DeviceTypeVUnix
+func DeviceTypePUnix() *DeviceType {
+ v := DeviceTypeVUnix
+ return &v
+}
+
+// DeviceTypePMacMDM returns a pointer to DeviceTypeVMacMDM
+func DeviceTypePMacMDM() *DeviceType {
+ v := DeviceTypeVMacMDM
+ return &v
+}
+
+// DeviceTypePHoloLens returns a pointer to DeviceTypeVHoloLens
+func DeviceTypePHoloLens() *DeviceType {
+ v := DeviceTypeVHoloLens
+ return &v
+}
+
+// DeviceTypePSurfaceHub returns a pointer to DeviceTypeVSurfaceHub
+func DeviceTypePSurfaceHub() *DeviceType {
+ v := DeviceTypeVSurfaceHub
+ return &v
+}
+
+// DeviceTypePAndroidForWork returns a pointer to DeviceTypeVAndroidForWork
+func DeviceTypePAndroidForWork() *DeviceType {
+ v := DeviceTypeVAndroidForWork
+ return &v
+}
+
+// DeviceTypePAndroidEnterprise returns a pointer to DeviceTypeVAndroidEnterprise
+func DeviceTypePAndroidEnterprise() *DeviceType {
+ v := DeviceTypeVAndroidEnterprise
+ return &v
+}
+
+// DeviceTypePBlackberry returns a pointer to DeviceTypeVBlackberry
+func DeviceTypePBlackberry() *DeviceType {
+ v := DeviceTypeVBlackberry
+ return &v
+}
+
+// DeviceTypePPalm returns a pointer to DeviceTypeVPalm
+func DeviceTypePPalm() *DeviceType {
+ v := DeviceTypeVPalm
+ return &v
+}
+
+// DeviceTypePUnknown returns a pointer to DeviceTypeVUnknown
+func DeviceTypePUnknown() *DeviceType {
+ v := DeviceTypeVUnknown
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceTypesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceTypesEnum.go
new file mode 100644
index 00000000..4a40c409
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DeviceTypesEnum.go
@@ -0,0 +1,185 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceTypes undocumented
+type DeviceTypes int
+
+const (
+ // DeviceTypesVDesktop undocumented
+ DeviceTypesVDesktop DeviceTypes = 0
+ // DeviceTypesVWindowsRT undocumented
+ DeviceTypesVWindowsRT DeviceTypes = 1
+ // DeviceTypesVWinMO6 undocumented
+ DeviceTypesVWinMO6 DeviceTypes = 2
+ // DeviceTypesVNokia undocumented
+ DeviceTypesVNokia DeviceTypes = 3
+ // DeviceTypesVWindowsPhone undocumented
+ DeviceTypesVWindowsPhone DeviceTypes = 4
+ // DeviceTypesVMac undocumented
+ DeviceTypesVMac DeviceTypes = 5
+ // DeviceTypesVWinCE undocumented
+ DeviceTypesVWinCE DeviceTypes = 6
+ // DeviceTypesVWinEmbedded undocumented
+ DeviceTypesVWinEmbedded DeviceTypes = 7
+ // DeviceTypesVIPhone undocumented
+ DeviceTypesVIPhone DeviceTypes = 8
+ // DeviceTypesVIPad undocumented
+ DeviceTypesVIPad DeviceTypes = 9
+ // DeviceTypesVIPod undocumented
+ DeviceTypesVIPod DeviceTypes = 10
+ // DeviceTypesVAndroid undocumented
+ DeviceTypesVAndroid DeviceTypes = 11
+ // DeviceTypesVISocConsumer undocumented
+ DeviceTypesVISocConsumer DeviceTypes = 12
+ // DeviceTypesVUnix undocumented
+ DeviceTypesVUnix DeviceTypes = 13
+ // DeviceTypesVMacMDM undocumented
+ DeviceTypesVMacMDM DeviceTypes = 14
+ // DeviceTypesVHoloLens undocumented
+ DeviceTypesVHoloLens DeviceTypes = 15
+ // DeviceTypesVSurfaceHub undocumented
+ DeviceTypesVSurfaceHub DeviceTypes = 16
+ // DeviceTypesVAndroidForWork undocumented
+ DeviceTypesVAndroidForWork DeviceTypes = 17
+ // DeviceTypesVAndroidEnterprise undocumented
+ DeviceTypesVAndroidEnterprise DeviceTypes = 18
+ // DeviceTypesVBlackberry undocumented
+ DeviceTypesVBlackberry DeviceTypes = 100
+ // DeviceTypesVPalm undocumented
+ DeviceTypesVPalm DeviceTypes = 101
+ // DeviceTypesVUnknown undocumented
+ DeviceTypesVUnknown DeviceTypes = 255
+)
+
+// DeviceTypesPDesktop returns a pointer to DeviceTypesVDesktop
+func DeviceTypesPDesktop() *DeviceTypes {
+ v := DeviceTypesVDesktop
+ return &v
+}
+
+// DeviceTypesPWindowsRT returns a pointer to DeviceTypesVWindowsRT
+func DeviceTypesPWindowsRT() *DeviceTypes {
+ v := DeviceTypesVWindowsRT
+ return &v
+}
+
+// DeviceTypesPWinMO6 returns a pointer to DeviceTypesVWinMO6
+func DeviceTypesPWinMO6() *DeviceTypes {
+ v := DeviceTypesVWinMO6
+ return &v
+}
+
+// DeviceTypesPNokia returns a pointer to DeviceTypesVNokia
+func DeviceTypesPNokia() *DeviceTypes {
+ v := DeviceTypesVNokia
+ return &v
+}
+
+// DeviceTypesPWindowsPhone returns a pointer to DeviceTypesVWindowsPhone
+func DeviceTypesPWindowsPhone() *DeviceTypes {
+ v := DeviceTypesVWindowsPhone
+ return &v
+}
+
+// DeviceTypesPMac returns a pointer to DeviceTypesVMac
+func DeviceTypesPMac() *DeviceTypes {
+ v := DeviceTypesVMac
+ return &v
+}
+
+// DeviceTypesPWinCE returns a pointer to DeviceTypesVWinCE
+func DeviceTypesPWinCE() *DeviceTypes {
+ v := DeviceTypesVWinCE
+ return &v
+}
+
+// DeviceTypesPWinEmbedded returns a pointer to DeviceTypesVWinEmbedded
+func DeviceTypesPWinEmbedded() *DeviceTypes {
+ v := DeviceTypesVWinEmbedded
+ return &v
+}
+
+// DeviceTypesPIPhone returns a pointer to DeviceTypesVIPhone
+func DeviceTypesPIPhone() *DeviceTypes {
+ v := DeviceTypesVIPhone
+ return &v
+}
+
+// DeviceTypesPIPad returns a pointer to DeviceTypesVIPad
+func DeviceTypesPIPad() *DeviceTypes {
+ v := DeviceTypesVIPad
+ return &v
+}
+
+// DeviceTypesPIPod returns a pointer to DeviceTypesVIPod
+func DeviceTypesPIPod() *DeviceTypes {
+ v := DeviceTypesVIPod
+ return &v
+}
+
+// DeviceTypesPAndroid returns a pointer to DeviceTypesVAndroid
+func DeviceTypesPAndroid() *DeviceTypes {
+ v := DeviceTypesVAndroid
+ return &v
+}
+
+// DeviceTypesPISocConsumer returns a pointer to DeviceTypesVISocConsumer
+func DeviceTypesPISocConsumer() *DeviceTypes {
+ v := DeviceTypesVISocConsumer
+ return &v
+}
+
+// DeviceTypesPUnix returns a pointer to DeviceTypesVUnix
+func DeviceTypesPUnix() *DeviceTypes {
+ v := DeviceTypesVUnix
+ return &v
+}
+
+// DeviceTypesPMacMDM returns a pointer to DeviceTypesVMacMDM
+func DeviceTypesPMacMDM() *DeviceTypes {
+ v := DeviceTypesVMacMDM
+ return &v
+}
+
+// DeviceTypesPHoloLens returns a pointer to DeviceTypesVHoloLens
+func DeviceTypesPHoloLens() *DeviceTypes {
+ v := DeviceTypesVHoloLens
+ return &v
+}
+
+// DeviceTypesPSurfaceHub returns a pointer to DeviceTypesVSurfaceHub
+func DeviceTypesPSurfaceHub() *DeviceTypes {
+ v := DeviceTypesVSurfaceHub
+ return &v
+}
+
+// DeviceTypesPAndroidForWork returns a pointer to DeviceTypesVAndroidForWork
+func DeviceTypesPAndroidForWork() *DeviceTypes {
+ v := DeviceTypesVAndroidForWork
+ return &v
+}
+
+// DeviceTypesPAndroidEnterprise returns a pointer to DeviceTypesVAndroidEnterprise
+func DeviceTypesPAndroidEnterprise() *DeviceTypes {
+ v := DeviceTypesVAndroidEnterprise
+ return &v
+}
+
+// DeviceTypesPBlackberry returns a pointer to DeviceTypesVBlackberry
+func DeviceTypesPBlackberry() *DeviceTypes {
+ v := DeviceTypesVBlackberry
+ return &v
+}
+
+// DeviceTypesPPalm returns a pointer to DeviceTypesVPalm
+func DeviceTypesPPalm() *DeviceTypes {
+ v := DeviceTypesVPalm
+ return &v
+}
+
+// DeviceTypesPUnknown returns a pointer to DeviceTypesVUnknown
+func DeviceTypesPUnknown() *DeviceTypes {
+ v := DeviceTypesVUnknown
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DiagnosticDataSubmissionModeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DiagnosticDataSubmissionModeEnum.go
new file mode 100644
index 00000000..fc608934
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DiagnosticDataSubmissionModeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DiagnosticDataSubmissionMode undocumented
+type DiagnosticDataSubmissionMode int
+
+const (
+ // DiagnosticDataSubmissionModeVUserDefined undocumented
+ DiagnosticDataSubmissionModeVUserDefined DiagnosticDataSubmissionMode = 0
+ // DiagnosticDataSubmissionModeVNone undocumented
+ DiagnosticDataSubmissionModeVNone DiagnosticDataSubmissionMode = 1
+ // DiagnosticDataSubmissionModeVBasic undocumented
+ DiagnosticDataSubmissionModeVBasic DiagnosticDataSubmissionMode = 2
+ // DiagnosticDataSubmissionModeVEnhanced undocumented
+ DiagnosticDataSubmissionModeVEnhanced DiagnosticDataSubmissionMode = 3
+ // DiagnosticDataSubmissionModeVFull undocumented
+ DiagnosticDataSubmissionModeVFull DiagnosticDataSubmissionMode = 4
+)
+
+// DiagnosticDataSubmissionModePUserDefined returns a pointer to DiagnosticDataSubmissionModeVUserDefined
+func DiagnosticDataSubmissionModePUserDefined() *DiagnosticDataSubmissionMode {
+ v := DiagnosticDataSubmissionModeVUserDefined
+ return &v
+}
+
+// DiagnosticDataSubmissionModePNone returns a pointer to DiagnosticDataSubmissionModeVNone
+func DiagnosticDataSubmissionModePNone() *DiagnosticDataSubmissionMode {
+ v := DiagnosticDataSubmissionModeVNone
+ return &v
+}
+
+// DiagnosticDataSubmissionModePBasic returns a pointer to DiagnosticDataSubmissionModeVBasic
+func DiagnosticDataSubmissionModePBasic() *DiagnosticDataSubmissionMode {
+ v := DiagnosticDataSubmissionModeVBasic
+ return &v
+}
+
+// DiagnosticDataSubmissionModePEnhanced returns a pointer to DiagnosticDataSubmissionModeVEnhanced
+func DiagnosticDataSubmissionModePEnhanced() *DiagnosticDataSubmissionMode {
+ v := DiagnosticDataSubmissionModeVEnhanced
+ return &v
+}
+
+// DiagnosticDataSubmissionModePFull returns a pointer to DiagnosticDataSubmissionModeVFull
+func DiagnosticDataSubmissionModePFull() *DiagnosticDataSubmissionMode {
+ v := DiagnosticDataSubmissionModeVFull
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DiagnosticModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DiagnosticModel.go
new file mode 100644
index 00000000..a557c396
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DiagnosticModel.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/matterbridge/msgraph.go/beta/DiamondModelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DiamondModelEnum.go
new file mode 100644
index 00000000..5a5f420b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DiamondModelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DiamondModel undocumented
+type DiamondModel int
+
+const (
+ // DiamondModelVUnknown undocumented
+ DiamondModelVUnknown DiamondModel = 0
+ // DiamondModelVAdversary undocumented
+ DiamondModelVAdversary DiamondModel = 1
+ // DiamondModelVCapability undocumented
+ DiamondModelVCapability DiamondModel = 2
+ // DiamondModelVInfrastructure undocumented
+ DiamondModelVInfrastructure DiamondModel = 3
+ // DiamondModelVVictim undocumented
+ DiamondModelVVictim DiamondModel = 4
+ // DiamondModelVUnknownFutureValue undocumented
+ DiamondModelVUnknownFutureValue DiamondModel = 127
+)
+
+// DiamondModelPUnknown returns a pointer to DiamondModelVUnknown
+func DiamondModelPUnknown() *DiamondModel {
+ v := DiamondModelVUnknown
+ return &v
+}
+
+// DiamondModelPAdversary returns a pointer to DiamondModelVAdversary
+func DiamondModelPAdversary() *DiamondModel {
+ v := DiamondModelVAdversary
+ return &v
+}
+
+// DiamondModelPCapability returns a pointer to DiamondModelVCapability
+func DiamondModelPCapability() *DiamondModel {
+ v := DiamondModelVCapability
+ return &v
+}
+
+// DiamondModelPInfrastructure returns a pointer to DiamondModelVInfrastructure
+func DiamondModelPInfrastructure() *DiamondModel {
+ v := DiamondModelVInfrastructure
+ return &v
+}
+
+// DiamondModelPVictim returns a pointer to DiamondModelVVictim
+func DiamondModelPVictim() *DiamondModel {
+ v := DiamondModelVVictim
+ return &v
+}
+
+// DiamondModelPUnknownFutureValue returns a pointer to DiamondModelVUnknownFutureValue
+func DiamondModelPUnknownFutureValue() *DiamondModel {
+ v := DiamondModelVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DimensionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DimensionModel.go
new file mode 100644
index 00000000..51718cd8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DimensionModel.go
@@ -0,0 +1,19 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DimensionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DimensionRequest.go
new file mode 100644
index 00000000..c079b571
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DimensionRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DimensionValue collection
+func (r *DimensionDimensionValuesCollectionRequest) Get(ctx context.Context) ([]DimensionValue, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/DimensionValueModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DimensionValueModel.go
new file mode 100644
index 00000000..c06bf42c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DimensionValueModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/DimensionValueRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DimensionValueRequest.go
new file mode 100644
index 00000000..580d2bbb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DimensionValueRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/DirectoryAuditModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryAuditModel.go
new file mode 100644
index 00000000..abe9525e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryAuditModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryAuditRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryAuditRequest.go
new file mode 100644
index 00000000..c12debcc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryAuditRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionAction.go
new file mode 100644
index 00000000..11368988
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionAction.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DirectoryDefinitionDiscoverRequestParameter undocumented
+type DirectoryDefinitionDiscoverRequestParameter struct {
+}
+
+//
+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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionDiscoverabilitiesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionDiscoverabilitiesEnum.go
new file mode 100644
index 00000000..71925e51
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionDiscoverabilitiesEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DirectoryDefinitionDiscoverabilities undocumented
+type DirectoryDefinitionDiscoverabilities int
+
+const (
+ // DirectoryDefinitionDiscoverabilitiesVNone undocumented
+ DirectoryDefinitionDiscoverabilitiesVNone DirectoryDefinitionDiscoverabilities = 0
+ // DirectoryDefinitionDiscoverabilitiesVAttributeNames undocumented
+ DirectoryDefinitionDiscoverabilitiesVAttributeNames DirectoryDefinitionDiscoverabilities = 1
+ // DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes undocumented
+ DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes DirectoryDefinitionDiscoverabilities = 2
+ // DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly undocumented
+ DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly DirectoryDefinitionDiscoverabilities = 4
+ // DirectoryDefinitionDiscoverabilitiesVReferenceAttributes undocumented
+ DirectoryDefinitionDiscoverabilitiesVReferenceAttributes DirectoryDefinitionDiscoverabilities = 8
+ // DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue undocumented
+ DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue DirectoryDefinitionDiscoverabilities = 16
+)
+
+// DirectoryDefinitionDiscoverabilitiesPNone returns a pointer to DirectoryDefinitionDiscoverabilitiesVNone
+func DirectoryDefinitionDiscoverabilitiesPNone() *DirectoryDefinitionDiscoverabilities {
+ v := DirectoryDefinitionDiscoverabilitiesVNone
+ return &v
+}
+
+// DirectoryDefinitionDiscoverabilitiesPAttributeNames returns a pointer to DirectoryDefinitionDiscoverabilitiesVAttributeNames
+func DirectoryDefinitionDiscoverabilitiesPAttributeNames() *DirectoryDefinitionDiscoverabilities {
+ v := DirectoryDefinitionDiscoverabilitiesVAttributeNames
+ return &v
+}
+
+// DirectoryDefinitionDiscoverabilitiesPAttributeDataTypes returns a pointer to DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes
+func DirectoryDefinitionDiscoverabilitiesPAttributeDataTypes() *DirectoryDefinitionDiscoverabilities {
+ v := DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes
+ return &v
+}
+
+// DirectoryDefinitionDiscoverabilitiesPAttributeReadOnly returns a pointer to DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly
+func DirectoryDefinitionDiscoverabilitiesPAttributeReadOnly() *DirectoryDefinitionDiscoverabilities {
+ v := DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly
+ return &v
+}
+
+// DirectoryDefinitionDiscoverabilitiesPReferenceAttributes returns a pointer to DirectoryDefinitionDiscoverabilitiesVReferenceAttributes
+func DirectoryDefinitionDiscoverabilitiesPReferenceAttributes() *DirectoryDefinitionDiscoverabilities {
+ v := DirectoryDefinitionDiscoverabilitiesVReferenceAttributes
+ return &v
+}
+
+// DirectoryDefinitionDiscoverabilitiesPUnknownFutureValue returns a pointer to DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue
+func DirectoryDefinitionDiscoverabilitiesPUnknownFutureValue() *DirectoryDefinitionDiscoverabilities {
+ v := DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionModel.go
new file mode 100644
index 00000000..bd6de9f6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionRequest.go
new file mode 100644
index 00000000..244154ee
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryModel.go
new file mode 100644
index 00000000..a12eeed2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectAction.go
new file mode 100644
index 00000000..da5e8ebf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectAction.go
@@ -0,0 +1,1398 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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"`
+}
+
+// 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 {
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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 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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]string, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]string, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]string, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]string, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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/matterbridge/msgraph.go/beta/DirectoryObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectModel.go
new file mode 100644
index 00000000..024ca6a4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectPartnerReferenceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectPartnerReferenceModel.go
new file mode 100644
index 00000000..536b5032
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectPartnerReferenceModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectRequest.go
new file mode 100644
index 00000000..db3c9a28
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRequest.go
new file mode 100644
index 00000000..6dc5073a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DirectoryDeletedItemsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for FeatureRolloutPolicy collection
+func (r *DirectoryFeatureRolloutPoliciesCollectionRequest) Get(ctx context.Context) ([]FeatureRolloutPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleModel.go
new file mode 100644
index 00000000..152237cb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleRequest.go
new file mode 100644
index 00000000..c59d2a1f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DirectoryRoleMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ScopedRoleMembership collection
+func (r *DirectoryRoleScopedMembersCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/DirectoryRoleTemplateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleTemplateModel.go
new file mode 100644
index 00000000..80e22f5e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleTemplateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleTemplateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleTemplateRequest.go
new file mode 100644
index 00000000..5746f208
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleTemplateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingModel.go
new file mode 100644
index 00000000..e98c4d19
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingRequest.go
new file mode 100644
index 00000000..c63996e1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingTemplateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingTemplateModel.go
new file mode 100644
index 00000000..8f07bea0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingTemplateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/DirectorySettingTemplateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingTemplateRequest.go
new file mode 100644
index 00000000..2b2d6cad
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingTemplateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DiscoveredSensitiveTypeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DiscoveredSensitiveTypeModel.go
new file mode 100644
index 00000000..04068845
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DiscoveredSensitiveTypeModel.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/matterbridge/msgraph.go/beta/DiscoverySourceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DiscoverySourceEnum.go
new file mode 100644
index 00000000..0e035005
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DiscoverySourceEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DiscoverySource undocumented
+type DiscoverySource int
+
+const (
+ // DiscoverySourceVUnknown undocumented
+ DiscoverySourceVUnknown DiscoverySource = 0
+ // DiscoverySourceVAdminImport undocumented
+ DiscoverySourceVAdminImport DiscoverySource = 2
+ // DiscoverySourceVDeviceEnrollmentProgram undocumented
+ DiscoverySourceVDeviceEnrollmentProgram DiscoverySource = 4
+)
+
+// DiscoverySourcePUnknown returns a pointer to DiscoverySourceVUnknown
+func DiscoverySourcePUnknown() *DiscoverySource {
+ v := DiscoverySourceVUnknown
+ return &v
+}
+
+// DiscoverySourcePAdminImport returns a pointer to DiscoverySourceVAdminImport
+func DiscoverySourcePAdminImport() *DiscoverySource {
+ v := DiscoverySourceVAdminImport
+ return &v
+}
+
+// DiscoverySourcePDeviceEnrollmentProgram returns a pointer to DiscoverySourceVDeviceEnrollmentProgram
+func DiscoverySourcePDeviceEnrollmentProgram() *DiscoverySource {
+ v := DiscoverySourceVDeviceEnrollmentProgram
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DiskTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DiskTypeEnum.go
new file mode 100644
index 00000000..60e17594
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DiskTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DiskType undocumented
+type DiskType int
+
+const (
+ // DiskTypeVUnkown undocumented
+ DiskTypeVUnkown DiskType = 0
+ // DiskTypeVHdd undocumented
+ DiskTypeVHdd DiskType = 1
+ // DiskTypeVSsd undocumented
+ DiskTypeVSsd DiskType = 2
+)
+
+// DiskTypePUnkown returns a pointer to DiskTypeVUnkown
+func DiskTypePUnkown() *DiskType {
+ v := DiskTypeVUnkown
+ return &v
+}
+
+// DiskTypePHdd returns a pointer to DiskTypeVHdd
+func DiskTypePHdd() *DiskType {
+ v := DiskTypeVHdd
+ return &v
+}
+
+// DiskTypePSsd returns a pointer to DiskTypeVSsd
+func DiskTypePSsd() *DiskType {
+ v := DiskTypeVSsd
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DlpActionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DlpActionEnum.go
new file mode 100644
index 00000000..4726c7f1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DlpActionEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DlpAction undocumented
+type DlpAction int
+
+const (
+ // DlpActionVNotifyUser undocumented
+ DlpActionVNotifyUser DlpAction = 0
+ // DlpActionVBlockAccess undocumented
+ DlpActionVBlockAccess DlpAction = 1
+ // DlpActionVDeviceRestriction undocumented
+ DlpActionVDeviceRestriction DlpAction = 2
+)
+
+// DlpActionPNotifyUser returns a pointer to DlpActionVNotifyUser
+func DlpActionPNotifyUser() *DlpAction {
+ v := DlpActionVNotifyUser
+ return &v
+}
+
+// DlpActionPBlockAccess returns a pointer to DlpActionVBlockAccess
+func DlpActionPBlockAccess() *DlpAction {
+ v := DlpActionVBlockAccess
+ return &v
+}
+
+// DlpActionPDeviceRestriction returns a pointer to DlpActionVDeviceRestriction
+func DlpActionPDeviceRestriction() *DlpAction {
+ v := DlpActionVDeviceRestriction
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DlpActionInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DlpActionInfoModel.go
new file mode 100644
index 00000000..939255ce
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DlpActionInfoModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluatePoliciesJobResponseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluatePoliciesJobResponseModel.go
new file mode 100644
index 00000000..780ef0a1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluatePoliciesJobResponseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DlpEvaluatePoliciesJobResponse undocumented
+type DlpEvaluatePoliciesJobResponse struct {
+ // JobResponseBase is the base model of DlpEvaluatePoliciesJobResponse
+ JobResponseBase
+ // Result undocumented
+ Result *DlpPoliciesJobResult `json:"result,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluatePoliciesRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluatePoliciesRequestObjectModel.go
new file mode 100644
index 00000000..e47f7e51
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluatePoliciesRequestObjectModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluationInputModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluationInputModel.go
new file mode 100644
index 00000000..9bbce623
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluationInputModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluationWindowsDevicesInputModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluationWindowsDevicesInputModel.go
new file mode 100644
index 00000000..f4b94962
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluationWindowsDevicesInputModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DlpNotificationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DlpNotificationModel.go
new file mode 100644
index 00000000..9d0f31f9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DlpNotificationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DlpNotification undocumented
+type DlpNotification struct {
+ // Object is the base model of DlpNotification
+ Object
+ // Author undocumented
+ Author *string `json:"author,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DlpPoliciesJobResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DlpPoliciesJobResultModel.go
new file mode 100644
index 00000000..9bfe5717
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DlpPoliciesJobResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DlpPoliciesJobResult undocumented
+type DlpPoliciesJobResult struct {
+ // Object is the base model of DlpPoliciesJobResult
+ Object
+ // MatchingRules undocumented
+ MatchingRules []MatchingDlpRule `json:"matchingRules,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DlpWindowsDevicesNotificationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DlpWindowsDevicesNotificationModel.go
new file mode 100644
index 00000000..a3b3b741
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DlpWindowsDevicesNotificationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/DmaGuardDeviceEnumerationPolicyTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DmaGuardDeviceEnumerationPolicyTypeEnum.go
new file mode 100644
index 00000000..aa27ce09
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DmaGuardDeviceEnumerationPolicyTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DmaGuardDeviceEnumerationPolicyType undocumented
+type DmaGuardDeviceEnumerationPolicyType int
+
+const (
+ // DmaGuardDeviceEnumerationPolicyTypeVDeviceDefault undocumented
+ DmaGuardDeviceEnumerationPolicyTypeVDeviceDefault DmaGuardDeviceEnumerationPolicyType = 0
+ // DmaGuardDeviceEnumerationPolicyTypeVBlockAll undocumented
+ DmaGuardDeviceEnumerationPolicyTypeVBlockAll DmaGuardDeviceEnumerationPolicyType = 1
+ // DmaGuardDeviceEnumerationPolicyTypeVAllowAll undocumented
+ DmaGuardDeviceEnumerationPolicyTypeVAllowAll DmaGuardDeviceEnumerationPolicyType = 2
+)
+
+// DmaGuardDeviceEnumerationPolicyTypePDeviceDefault returns a pointer to DmaGuardDeviceEnumerationPolicyTypeVDeviceDefault
+func DmaGuardDeviceEnumerationPolicyTypePDeviceDefault() *DmaGuardDeviceEnumerationPolicyType {
+ v := DmaGuardDeviceEnumerationPolicyTypeVDeviceDefault
+ return &v
+}
+
+// DmaGuardDeviceEnumerationPolicyTypePBlockAll returns a pointer to DmaGuardDeviceEnumerationPolicyTypeVBlockAll
+func DmaGuardDeviceEnumerationPolicyTypePBlockAll() *DmaGuardDeviceEnumerationPolicyType {
+ v := DmaGuardDeviceEnumerationPolicyTypeVBlockAll
+ return &v
+}
+
+// DmaGuardDeviceEnumerationPolicyTypePAllowAll returns a pointer to DmaGuardDeviceEnumerationPolicyTypeVAllowAll
+func DmaGuardDeviceEnumerationPolicyTypePAllowAll() *DmaGuardDeviceEnumerationPolicyType {
+ v := DmaGuardDeviceEnumerationPolicyTypeVAllowAll
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentModel.go
new file mode 100644
index 00000000..6f641315
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentReplyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentReplyModel.go
new file mode 100644
index 00000000..928e169e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentReplyModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/DocumentCommentReplyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentReplyRequest.go
new file mode 100644
index 00000000..442dfb4b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentReplyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/DocumentCommentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentRequest.go
new file mode 100644
index 00000000..ee96c9b8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DocumentCommentReply collection
+func (r *DocumentCommentRepliesCollectionRequest) Get(ctx context.Context) ([]DocumentCommentReply, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/DocumentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DocumentModel.go
new file mode 100644
index 00000000..2417f665
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DocumentModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DocumentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DocumentRequest.go
new file mode 100644
index 00000000..dbcf817a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DocumentRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DocumentComment collection
+func (r *DocumentCommentsCollectionRequest) Get(ctx context.Context) ([]DocumentComment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DomainAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DomainAction.go
new file mode 100644
index 00000000..d51198d0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DomainAction.go
@@ -0,0 +1,68 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DomainForceDeleteRequestParameter undocumented
+type DomainForceDeleteRequestParameter struct {
+ // DisableUserAccounts undocumented
+ DisableUserAccounts *bool `json:"disableUserAccounts,omitempty"`
+}
+
+// DomainVerifyRequestParameter undocumented
+type DomainVerifyRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/DomainDNSCnameRecordModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSCnameRecordModel.go
new file mode 100644
index 00000000..ad096d95
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSCnameRecordModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DomainDNSCnameRecord undocumented
+type DomainDNSCnameRecord struct {
+ // DomainDNSRecord is the base model of DomainDNSCnameRecord
+ DomainDNSRecord
+ // CanonicalName undocumented
+ CanonicalName *string `json:"canonicalName,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSMxRecordModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSMxRecordModel.go
new file mode 100644
index 00000000..7f4a0f00
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSMxRecordModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSRecordModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSRecordModel.go
new file mode 100644
index 00000000..4f616d8c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSRecordModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSRecordRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSRecordRequest.go
new file mode 100644
index 00000000..d4d05a77
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSRecordRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSSrvRecordModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSSrvRecordModel.go
new file mode 100644
index 00000000..8ebde677
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSSrvRecordModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSTxtRecordModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSTxtRecordModel.go
new file mode 100644
index 00000000..4c8a6940
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSTxtRecordModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DomainDNSTxtRecord undocumented
+type DomainDNSTxtRecord struct {
+ // DomainDNSRecord is the base model of DomainDNSTxtRecord
+ DomainDNSRecord
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSUnavailableRecordModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSUnavailableRecordModel.go
new file mode 100644
index 00000000..3a4fe1a1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSUnavailableRecordModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DomainDNSUnavailableRecord undocumented
+type DomainDNSUnavailableRecord struct {
+ // DomainDNSRecord is the base model of DomainDNSUnavailableRecord
+ DomainDNSRecord
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DomainModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DomainModel.go
new file mode 100644
index 00000000..19583701
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DomainModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DomainNameSourceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DomainNameSourceEnum.go
new file mode 100644
index 00000000..3c1ce2a4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DomainNameSourceEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DomainNameSource undocumented
+type DomainNameSource int
+
+const (
+ // DomainNameSourceVFullDomainName undocumented
+ DomainNameSourceVFullDomainName DomainNameSource = 0
+ // DomainNameSourceVNetBiosDomainName undocumented
+ DomainNameSourceVNetBiosDomainName DomainNameSource = 1
+)
+
+// DomainNameSourcePFullDomainName returns a pointer to DomainNameSourceVFullDomainName
+func DomainNameSourcePFullDomainName() *DomainNameSource {
+ v := DomainNameSourceVFullDomainName
+ return &v
+}
+
+// DomainNameSourcePNetBiosDomainName returns a pointer to DomainNameSourceVNetBiosDomainName
+func DomainNameSourcePNetBiosDomainName() *DomainNameSource {
+ v := DomainNameSourceVNetBiosDomainName
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DomainRegistrantModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DomainRegistrantModel.go
new file mode 100644
index 00000000..75b30d62
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DomainRegistrantModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DomainRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DomainRequest.go
new file mode 100644
index 00000000..2073f920
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DomainRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DomainDomainNameReferencesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DomainDNSRecord collection
+func (r *DomainServiceConfigurationRecordsCollectionRequest) Get(ctx context.Context) ([]DomainDNSRecord, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DomainDNSRecord collection
+func (r *DomainVerificationDNSRecordsCollectionRequest) Get(ctx context.Context) ([]DomainDNSRecord, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/DomainSecurityProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DomainSecurityProfileModel.go
new file mode 100644
index 00000000..c99d9ffd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DomainSecurityProfileModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DomainSecurityProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DomainSecurityProfileRequest.go
new file mode 100644
index 00000000..d338a4fa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DomainSecurityProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DomainStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DomainStateModel.go
new file mode 100644
index 00000000..deeb8309
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DomainStateModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/DowngradeJustificationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DowngradeJustificationModel.go
new file mode 100644
index 00000000..a93ff832
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DowngradeJustificationModel.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/matterbridge/msgraph.go/beta/DriveItemAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemAction.go
new file mode 100644
index 00000000..3bc21497
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemAction.go
@@ -0,0 +1,461 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+ "time"
+
+ "github.com/matterbridge/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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]Permission, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemModel.go
new file mode 100644
index 00000000..ffb553c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemModel.go
@@ -0,0 +1,75 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemRequest.go
new file mode 100644
index 00000000..8224630b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemRequest.go
@@ -0,0 +1,637 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemActivityOLD collection
+func (r *DriveItemActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItem collection
+func (r *DriveItemChildrenCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Permission collection
+func (r *DriveItemPermissionsCollectionRequest) Get(ctx context.Context) ([]Permission, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Subscription collection
+func (r *DriveItemSubscriptionsCollectionRequest) Get(ctx context.Context) ([]Subscription, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ThumbnailSet collection
+func (r *DriveItemThumbnailsCollectionRequest) Get(ctx context.Context) ([]ThumbnailSet, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItemVersion collection
+func (r *DriveItemVersionsCollectionRequest) Get(ctx context.Context) ([]DriveItemVersion, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/DriveItemUploadablePropertiesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemUploadablePropertiesModel.go
new file mode 100644
index 00000000..248a0828
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemUploadablePropertiesModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionAction.go
new file mode 100644
index 00000000..95778edd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DriveItemVersionRestoreVersionRequestParameter undocumented
+type DriveItemVersionRestoreVersionRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/DriveItemVersionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionModel.go
new file mode 100644
index 00000000..f66da37a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionRequest.go
new file mode 100644
index 00000000..c2ec7c03
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DriveModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DriveModel.go
new file mode 100644
index 00000000..a1e49d63
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DriveModel.go
@@ -0,0 +1,33 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DriveRecipientModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DriveRecipientModel.go
new file mode 100644
index 00000000..3c1ca6b9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DriveRecipientModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/DriveRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/DriveRequest.go
new file mode 100644
index 00000000..22081d28
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/DriveRequest.go
@@ -0,0 +1,529 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemActivityOLD collection
+func (r *DriveActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItem collection
+func (r *DriveBundlesCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItem collection
+func (r *DriveFollowingCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItem collection
+func (r *DriveItemsCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItem collection
+func (r *DriveSpecialCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EBookInstallSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EBookInstallSummaryModel.go
new file mode 100644
index 00000000..b3f66595
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EBookInstallSummaryModel.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/matterbridge/msgraph.go/beta/EBookInstallSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EBookInstallSummaryRequest.go
new file mode 100644
index 00000000..a656df11
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EBookInstallSummaryRequest.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/matterbridge/msgraph.go/beta/EapFastConfigurationEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EapFastConfigurationEnum.go
new file mode 100644
index 00000000..a43dffc3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EapFastConfigurationEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EapFastConfiguration undocumented
+type EapFastConfiguration int
+
+const (
+ // EapFastConfigurationVNoProtectedAccessCredential undocumented
+ EapFastConfigurationVNoProtectedAccessCredential EapFastConfiguration = 0
+ // EapFastConfigurationVUseProtectedAccessCredential undocumented
+ EapFastConfigurationVUseProtectedAccessCredential EapFastConfiguration = 1
+ // EapFastConfigurationVUseProtectedAccessCredentialAndProvision undocumented
+ EapFastConfigurationVUseProtectedAccessCredentialAndProvision EapFastConfiguration = 2
+ // EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously undocumented
+ EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously EapFastConfiguration = 3
+)
+
+// EapFastConfigurationPNoProtectedAccessCredential returns a pointer to EapFastConfigurationVNoProtectedAccessCredential
+func EapFastConfigurationPNoProtectedAccessCredential() *EapFastConfiguration {
+ v := EapFastConfigurationVNoProtectedAccessCredential
+ return &v
+}
+
+// EapFastConfigurationPUseProtectedAccessCredential returns a pointer to EapFastConfigurationVUseProtectedAccessCredential
+func EapFastConfigurationPUseProtectedAccessCredential() *EapFastConfiguration {
+ v := EapFastConfigurationVUseProtectedAccessCredential
+ return &v
+}
+
+// EapFastConfigurationPUseProtectedAccessCredentialAndProvision returns a pointer to EapFastConfigurationVUseProtectedAccessCredentialAndProvision
+func EapFastConfigurationPUseProtectedAccessCredentialAndProvision() *EapFastConfiguration {
+ v := EapFastConfigurationVUseProtectedAccessCredentialAndProvision
+ return &v
+}
+
+// EapFastConfigurationPUseProtectedAccessCredentialAndProvisionAnonymously returns a pointer to EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously
+func EapFastConfigurationPUseProtectedAccessCredentialAndProvisionAnonymously() *EapFastConfiguration {
+ v := EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EapTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EapTypeEnum.go
new file mode 100644
index 00000000..8af9ed28
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EapTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EapType undocumented
+type EapType int
+
+const (
+ // EapTypeVEapTLS undocumented
+ EapTypeVEapTLS EapType = 13
+ // EapTypeVLeap undocumented
+ EapTypeVLeap EapType = 17
+ // EapTypeVEapSim undocumented
+ EapTypeVEapSim EapType = 18
+ // EapTypeVEapTtls undocumented
+ EapTypeVEapTtls EapType = 21
+ // EapTypeVPeap undocumented
+ EapTypeVPeap EapType = 25
+ // EapTypeVEapFast undocumented
+ EapTypeVEapFast EapType = 43
+)
+
+// EapTypePEapTLS returns a pointer to EapTypeVEapTLS
+func EapTypePEapTLS() *EapType {
+ v := EapTypeVEapTLS
+ return &v
+}
+
+// EapTypePLeap returns a pointer to EapTypeVLeap
+func EapTypePLeap() *EapType {
+ v := EapTypeVLeap
+ return &v
+}
+
+// EapTypePEapSim returns a pointer to EapTypeVEapSim
+func EapTypePEapSim() *EapType {
+ v := EapTypeVEapSim
+ return &v
+}
+
+// EapTypePEapTtls returns a pointer to EapTypeVEapTtls
+func EapTypePEapTtls() *EapType {
+ v := EapTypeVEapTtls
+ return &v
+}
+
+// EapTypePPeap returns a pointer to EapTypeVPeap
+func EapTypePPeap() *EapType {
+ v := EapTypeVPeap
+ return &v
+}
+
+// EapTypePEapFast returns a pointer to EapTypeVEapFast
+func EapTypePEapFast() *EapType {
+ v := EapTypeVEapFast
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EasAuthenticationMethodEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EasAuthenticationMethodEnum.go
new file mode 100644
index 00000000..23c081bb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EasAuthenticationMethodEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EasAuthenticationMethod undocumented
+type EasAuthenticationMethod int
+
+const (
+ // EasAuthenticationMethodVUsernameAndPassword undocumented
+ EasAuthenticationMethodVUsernameAndPassword EasAuthenticationMethod = 0
+ // EasAuthenticationMethodVCertificate undocumented
+ EasAuthenticationMethodVCertificate EasAuthenticationMethod = 1
+ // EasAuthenticationMethodVDerivedCredential undocumented
+ EasAuthenticationMethodVDerivedCredential EasAuthenticationMethod = 2
+)
+
+// EasAuthenticationMethodPUsernameAndPassword returns a pointer to EasAuthenticationMethodVUsernameAndPassword
+func EasAuthenticationMethodPUsernameAndPassword() *EasAuthenticationMethod {
+ v := EasAuthenticationMethodVUsernameAndPassword
+ return &v
+}
+
+// EasAuthenticationMethodPCertificate returns a pointer to EasAuthenticationMethodVCertificate
+func EasAuthenticationMethodPCertificate() *EasAuthenticationMethod {
+ v := EasAuthenticationMethodVCertificate
+ return &v
+}
+
+// EasAuthenticationMethodPDerivedCredential returns a pointer to EasAuthenticationMethodVDerivedCredential
+func EasAuthenticationMethodPDerivedCredential() *EasAuthenticationMethod {
+ v := EasAuthenticationMethodVDerivedCredential
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EasEmailProfileConfigurationBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EasEmailProfileConfigurationBaseModel.go
new file mode 100644
index 00000000..5631823f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EasEmailProfileConfigurationBaseModel.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/matterbridge/msgraph.go/beta/EasServicesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EasServicesEnum.go
new file mode 100644
index 00000000..adb5b31f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EasServicesEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EasServices undocumented
+type EasServices int
+
+const (
+ // EasServicesVNone undocumented
+ EasServicesVNone EasServices = 0
+ // EasServicesVCalendars undocumented
+ EasServicesVCalendars EasServices = 1
+ // EasServicesVContacts undocumented
+ EasServicesVContacts EasServices = 2
+ // EasServicesVEmail undocumented
+ EasServicesVEmail EasServices = 4
+ // EasServicesVNotes undocumented
+ EasServicesVNotes EasServices = 8
+ // EasServicesVReminders undocumented
+ EasServicesVReminders EasServices = 16
+)
+
+// EasServicesPNone returns a pointer to EasServicesVNone
+func EasServicesPNone() *EasServices {
+ v := EasServicesVNone
+ return &v
+}
+
+// EasServicesPCalendars returns a pointer to EasServicesVCalendars
+func EasServicesPCalendars() *EasServices {
+ v := EasServicesVCalendars
+ return &v
+}
+
+// EasServicesPContacts returns a pointer to EasServicesVContacts
+func EasServicesPContacts() *EasServices {
+ v := EasServicesVContacts
+ return &v
+}
+
+// EasServicesPEmail returns a pointer to EasServicesVEmail
+func EasServicesPEmail() *EasServices {
+ v := EasServicesVEmail
+ return &v
+}
+
+// EasServicesPNotes returns a pointer to EasServicesVNotes
+func EasServicesPNotes() *EasServices {
+ v := EasServicesVNotes
+ return &v
+}
+
+// EasServicesPReminders returns a pointer to EasServicesVReminders
+func EasServicesPReminders() *EasServices {
+ v := EasServicesVReminders
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeCookiePolicyEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeCookiePolicyEnum.go
new file mode 100644
index 00000000..77007297
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeCookiePolicyEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeCookiePolicy undocumented
+type EdgeCookiePolicy int
+
+const (
+ // EdgeCookiePolicyVUserDefined undocumented
+ EdgeCookiePolicyVUserDefined EdgeCookiePolicy = 0
+ // EdgeCookiePolicyVAllow undocumented
+ EdgeCookiePolicyVAllow EdgeCookiePolicy = 1
+ // EdgeCookiePolicyVBlockThirdParty undocumented
+ EdgeCookiePolicyVBlockThirdParty EdgeCookiePolicy = 2
+ // EdgeCookiePolicyVBlockAll undocumented
+ EdgeCookiePolicyVBlockAll EdgeCookiePolicy = 3
+)
+
+// EdgeCookiePolicyPUserDefined returns a pointer to EdgeCookiePolicyVUserDefined
+func EdgeCookiePolicyPUserDefined() *EdgeCookiePolicy {
+ v := EdgeCookiePolicyVUserDefined
+ return &v
+}
+
+// EdgeCookiePolicyPAllow returns a pointer to EdgeCookiePolicyVAllow
+func EdgeCookiePolicyPAllow() *EdgeCookiePolicy {
+ v := EdgeCookiePolicyVAllow
+ return &v
+}
+
+// EdgeCookiePolicyPBlockThirdParty returns a pointer to EdgeCookiePolicyVBlockThirdParty
+func EdgeCookiePolicyPBlockThirdParty() *EdgeCookiePolicy {
+ v := EdgeCookiePolicyVBlockThirdParty
+ return &v
+}
+
+// EdgeCookiePolicyPBlockAll returns a pointer to EdgeCookiePolicyVBlockAll
+func EdgeCookiePolicyPBlockAll() *EdgeCookiePolicy {
+ v := EdgeCookiePolicyVBlockAll
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonConfigurationModel.go
new file mode 100644
index 00000000..c99f8021
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonConfigurationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeHomeButtonConfiguration undocumented
+type EdgeHomeButtonConfiguration struct {
+ // Object is the base model of EdgeHomeButtonConfiguration
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonHiddenModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonHiddenModel.go
new file mode 100644
index 00000000..ca21318b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonHiddenModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeHomeButtonHidden undocumented
+type EdgeHomeButtonHidden struct {
+ // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonHidden
+ EdgeHomeButtonConfiguration
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonLoadsStartPageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonLoadsStartPageModel.go
new file mode 100644
index 00000000..5514642a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonLoadsStartPageModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeHomeButtonLoadsStartPage undocumented
+type EdgeHomeButtonLoadsStartPage struct {
+ // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonLoadsStartPage
+ EdgeHomeButtonConfiguration
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonOpensCustomURLModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonOpensCustomURLModel.go
new file mode 100644
index 00000000..3640a15a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonOpensCustomURLModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeHomeButtonOpensCustomURL undocumented
+type EdgeHomeButtonOpensCustomURL struct {
+ // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonOpensCustomURL
+ EdgeHomeButtonConfiguration
+ // HomeButtonCustomURL The specific URL to load.
+ HomeButtonCustomURL *string `json:"homeButtonCustomURL,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonOpensNewTabModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonOpensNewTabModel.go
new file mode 100644
index 00000000..e07e53b0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonOpensNewTabModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeHomeButtonOpensNewTab undocumented
+type EdgeHomeButtonOpensNewTab struct {
+ // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonOpensNewTab
+ EdgeHomeButtonConfiguration
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeKioskModeRestrictionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeKioskModeRestrictionTypeEnum.go
new file mode 100644
index 00000000..6344223e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeKioskModeRestrictionTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeKioskModeRestrictionType undocumented
+type EdgeKioskModeRestrictionType int
+
+const (
+ // EdgeKioskModeRestrictionTypeVNotConfigured undocumented
+ EdgeKioskModeRestrictionTypeVNotConfigured EdgeKioskModeRestrictionType = 0
+ // EdgeKioskModeRestrictionTypeVDigitalSignage undocumented
+ EdgeKioskModeRestrictionTypeVDigitalSignage EdgeKioskModeRestrictionType = 1
+ // EdgeKioskModeRestrictionTypeVNormalMode undocumented
+ EdgeKioskModeRestrictionTypeVNormalMode EdgeKioskModeRestrictionType = 2
+ // EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp undocumented
+ EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp EdgeKioskModeRestrictionType = 3
+ // EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp undocumented
+ EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp EdgeKioskModeRestrictionType = 4
+)
+
+// EdgeKioskModeRestrictionTypePNotConfigured returns a pointer to EdgeKioskModeRestrictionTypeVNotConfigured
+func EdgeKioskModeRestrictionTypePNotConfigured() *EdgeKioskModeRestrictionType {
+ v := EdgeKioskModeRestrictionTypeVNotConfigured
+ return &v
+}
+
+// EdgeKioskModeRestrictionTypePDigitalSignage returns a pointer to EdgeKioskModeRestrictionTypeVDigitalSignage
+func EdgeKioskModeRestrictionTypePDigitalSignage() *EdgeKioskModeRestrictionType {
+ v := EdgeKioskModeRestrictionTypeVDigitalSignage
+ return &v
+}
+
+// EdgeKioskModeRestrictionTypePNormalMode returns a pointer to EdgeKioskModeRestrictionTypeVNormalMode
+func EdgeKioskModeRestrictionTypePNormalMode() *EdgeKioskModeRestrictionType {
+ v := EdgeKioskModeRestrictionTypeVNormalMode
+ return &v
+}
+
+// EdgeKioskModeRestrictionTypePPublicBrowsingSingleApp returns a pointer to EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp
+func EdgeKioskModeRestrictionTypePPublicBrowsingSingleApp() *EdgeKioskModeRestrictionType {
+ v := EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp
+ return &v
+}
+
+// EdgeKioskModeRestrictionTypePPublicBrowsingMultiApp returns a pointer to EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp
+func EdgeKioskModeRestrictionTypePPublicBrowsingMultiApp() *EdgeKioskModeRestrictionType {
+ v := EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeOpenOptionsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeOpenOptionsEnum.go
new file mode 100644
index 00000000..a918dcce
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeOpenOptionsEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeOpenOptions undocumented
+type EdgeOpenOptions int
+
+const (
+ // EdgeOpenOptionsVNotConfigured undocumented
+ EdgeOpenOptionsVNotConfigured EdgeOpenOptions = 0
+ // EdgeOpenOptionsVStartPage undocumented
+ EdgeOpenOptionsVStartPage EdgeOpenOptions = 1
+ // EdgeOpenOptionsVNewTabPage undocumented
+ EdgeOpenOptionsVNewTabPage EdgeOpenOptions = 2
+ // EdgeOpenOptionsVPreviousPages undocumented
+ EdgeOpenOptionsVPreviousPages EdgeOpenOptions = 3
+ // EdgeOpenOptionsVSpecificPages undocumented
+ EdgeOpenOptionsVSpecificPages EdgeOpenOptions = 4
+)
+
+// EdgeOpenOptionsPNotConfigured returns a pointer to EdgeOpenOptionsVNotConfigured
+func EdgeOpenOptionsPNotConfigured() *EdgeOpenOptions {
+ v := EdgeOpenOptionsVNotConfigured
+ return &v
+}
+
+// EdgeOpenOptionsPStartPage returns a pointer to EdgeOpenOptionsVStartPage
+func EdgeOpenOptionsPStartPage() *EdgeOpenOptions {
+ v := EdgeOpenOptionsVStartPage
+ return &v
+}
+
+// EdgeOpenOptionsPNewTabPage returns a pointer to EdgeOpenOptionsVNewTabPage
+func EdgeOpenOptionsPNewTabPage() *EdgeOpenOptions {
+ v := EdgeOpenOptionsVNewTabPage
+ return &v
+}
+
+// EdgeOpenOptionsPPreviousPages returns a pointer to EdgeOpenOptionsVPreviousPages
+func EdgeOpenOptionsPPreviousPages() *EdgeOpenOptions {
+ v := EdgeOpenOptionsVPreviousPages
+ return &v
+}
+
+// EdgeOpenOptionsPSpecificPages returns a pointer to EdgeOpenOptionsVSpecificPages
+func EdgeOpenOptionsPSpecificPages() *EdgeOpenOptions {
+ v := EdgeOpenOptionsVSpecificPages
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineBaseModel.go
new file mode 100644
index 00000000..d33862b1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineBaseModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeSearchEngineBase undocumented
+type EdgeSearchEngineBase struct {
+ // Object is the base model of EdgeSearchEngineBase
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineCustomModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineCustomModel.go
new file mode 100644
index 00000000..abed14a9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineCustomModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/EdgeSearchEngineModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineModel.go
new file mode 100644
index 00000000..a7dfdd8d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineTypeEnum.go
new file mode 100644
index 00000000..005b55ea
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeSearchEngineType undocumented
+type EdgeSearchEngineType int
+
+const (
+ // EdgeSearchEngineTypeVDefault undocumented
+ EdgeSearchEngineTypeVDefault EdgeSearchEngineType = 0
+ // EdgeSearchEngineTypeVBing undocumented
+ EdgeSearchEngineTypeVBing EdgeSearchEngineType = 1
+)
+
+// EdgeSearchEngineTypePDefault returns a pointer to EdgeSearchEngineTypeVDefault
+func EdgeSearchEngineTypePDefault() *EdgeSearchEngineType {
+ v := EdgeSearchEngineTypeVDefault
+ return &v
+}
+
+// EdgeSearchEngineTypePBing returns a pointer to EdgeSearchEngineTypeVBing
+func EdgeSearchEngineTypePBing() *EdgeSearchEngineType {
+ v := EdgeSearchEngineTypeVBing
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeTelemetryModeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeTelemetryModeEnum.go
new file mode 100644
index 00000000..cb830645
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EdgeTelemetryModeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeTelemetryMode undocumented
+type EdgeTelemetryMode int
+
+const (
+ // EdgeTelemetryModeVNotConfigured undocumented
+ EdgeTelemetryModeVNotConfigured EdgeTelemetryMode = 0
+ // EdgeTelemetryModeVIntranet undocumented
+ EdgeTelemetryModeVIntranet EdgeTelemetryMode = 1
+ // EdgeTelemetryModeVInternet undocumented
+ EdgeTelemetryModeVInternet EdgeTelemetryMode = 2
+ // EdgeTelemetryModeVIntranetAndInternet undocumented
+ EdgeTelemetryModeVIntranetAndInternet EdgeTelemetryMode = 3
+)
+
+// EdgeTelemetryModePNotConfigured returns a pointer to EdgeTelemetryModeVNotConfigured
+func EdgeTelemetryModePNotConfigured() *EdgeTelemetryMode {
+ v := EdgeTelemetryModeVNotConfigured
+ return &v
+}
+
+// EdgeTelemetryModePIntranet returns a pointer to EdgeTelemetryModeVIntranet
+func EdgeTelemetryModePIntranet() *EdgeTelemetryMode {
+ v := EdgeTelemetryModeVIntranet
+ return &v
+}
+
+// EdgeTelemetryModePInternet returns a pointer to EdgeTelemetryModeVInternet
+func EdgeTelemetryModePInternet() *EdgeTelemetryMode {
+ v := EdgeTelemetryModeVInternet
+ return &v
+}
+
+// EdgeTelemetryModePIntranetAndInternet returns a pointer to EdgeTelemetryModeVIntranetAndInternet
+func EdgeTelemetryModePIntranetAndInternet() *EdgeTelemetryMode {
+ v := EdgeTelemetryModeVIntranetAndInternet
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EditActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EditActionModel.go
new file mode 100644
index 00000000..e9a7203e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EditActionModel.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/matterbridge/msgraph.go/beta/EditionUpgradeConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EditionUpgradeConfigurationModel.go
new file mode 100644
index 00000000..11c89adb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EditionUpgradeConfigurationModel.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/matterbridge/msgraph.go/beta/EditionUpgradeLicenseTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EditionUpgradeLicenseTypeEnum.go
new file mode 100644
index 00000000..cc615fd5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EditionUpgradeLicenseTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EditionUpgradeLicenseType undocumented
+type EditionUpgradeLicenseType int
+
+const (
+ // EditionUpgradeLicenseTypeVProductKey undocumented
+ EditionUpgradeLicenseTypeVProductKey EditionUpgradeLicenseType = 0
+ // EditionUpgradeLicenseTypeVLicenseFile undocumented
+ EditionUpgradeLicenseTypeVLicenseFile EditionUpgradeLicenseType = 1
+ // EditionUpgradeLicenseTypeVNotConfigured undocumented
+ EditionUpgradeLicenseTypeVNotConfigured EditionUpgradeLicenseType = 2
+)
+
+// EditionUpgradeLicenseTypePProductKey returns a pointer to EditionUpgradeLicenseTypeVProductKey
+func EditionUpgradeLicenseTypePProductKey() *EditionUpgradeLicenseType {
+ v := EditionUpgradeLicenseTypeVProductKey
+ return &v
+}
+
+// EditionUpgradeLicenseTypePLicenseFile returns a pointer to EditionUpgradeLicenseTypeVLicenseFile
+func EditionUpgradeLicenseTypePLicenseFile() *EditionUpgradeLicenseType {
+ v := EditionUpgradeLicenseTypeVLicenseFile
+ return &v
+}
+
+// EditionUpgradeLicenseTypePNotConfigured returns a pointer to EditionUpgradeLicenseTypeVNotConfigured
+func EditionUpgradeLicenseTypePNotConfigured() *EditionUpgradeLicenseType {
+ v := EditionUpgradeLicenseTypeVNotConfigured
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentAction.go
new file mode 100644
index 00000000..e5ce1dd5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentAction.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EducationAssignmentPublishRequestParameter undocumented
+type EducationAssignmentPublishRequestParameter struct {
+}
+
+//
+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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentClassRecipientModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentClassRecipientModel.go
new file mode 100644
index 00000000..85fe62cb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentClassRecipientModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentClassRecipient undocumented
+type EducationAssignmentClassRecipient struct {
+ // EducationAssignmentRecipient is the base model of EducationAssignmentClassRecipient
+ EducationAssignmentRecipient
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGradeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGradeModel.go
new file mode 100644
index 00000000..a4661d21
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGradeModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGradeTypeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGradeTypeModel.go
new file mode 100644
index 00000000..004b41d4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGradeTypeModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentGradeType undocumented
+type EducationAssignmentGradeType struct {
+ // Object is the base model of EducationAssignmentGradeType
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGroupRecipientModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGroupRecipientModel.go
new file mode 100644
index 00000000..38f6511d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGroupRecipientModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentGroupRecipient undocumented
+type EducationAssignmentGroupRecipient struct {
+ // EducationAssignmentRecipient is the base model of EducationAssignmentGroupRecipient
+ EducationAssignmentRecipient
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentIndividualRecipientModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentIndividualRecipientModel.go
new file mode 100644
index 00000000..562319dc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentIndividualRecipientModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentIndividualRecipient undocumented
+type EducationAssignmentIndividualRecipient struct {
+ // EducationAssignmentRecipient is the base model of EducationAssignmentIndividualRecipient
+ EducationAssignmentRecipient
+ // Recipients undocumented
+ Recipients []string `json:"recipients,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentModel.go
new file mode 100644
index 00000000..08ae5d18
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentModel.go
@@ -0,0 +1,51 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentPointsGradeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentPointsGradeModel.go
new file mode 100644
index 00000000..ca093263
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentPointsGradeModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentPointsGrade undocumented
+type EducationAssignmentPointsGrade struct {
+ // EducationAssignmentGrade is the base model of EducationAssignmentPointsGrade
+ EducationAssignmentGrade
+ // Points undocumented
+ Points *float64 `json:"points,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentPointsGradeTypeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentPointsGradeTypeModel.go
new file mode 100644
index 00000000..4ed76b5e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentPointsGradeTypeModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentPointsGradeType undocumented
+type EducationAssignmentPointsGradeType struct {
+ // EducationAssignmentGradeType is the base model of EducationAssignmentPointsGradeType
+ EducationAssignmentGradeType
+ // MaxPoints undocumented
+ MaxPoints *float64 `json:"maxPoints,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentRecipientModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentRecipientModel.go
new file mode 100644
index 00000000..8a587f75
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentRecipientModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentRecipient undocumented
+type EducationAssignmentRecipient struct {
+ // Object is the base model of EducationAssignmentRecipient
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentRequest.go
new file mode 100644
index 00000000..8d1ad005
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentRequest.go
@@ -0,0 +1,334 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationCategory collection
+func (r *EducationAssignmentCategoriesCollectionRequest) Get(ctx context.Context) ([]EducationCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationAssignmentResource collection
+func (r *EducationAssignmentResourcesCollectionRequest) Get(ctx context.Context) ([]EducationAssignmentResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSubmission collection
+func (r *EducationAssignmentSubmissionsCollectionRequest) Get(ctx context.Context) ([]EducationSubmission, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentResourceModel.go
new file mode 100644
index 00000000..e44d99f3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentResourceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentResourceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentResourceRequest.go
new file mode 100644
index 00000000..d455e5db
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentResourceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentStatusEnum.go
new file mode 100644
index 00000000..ba8e21bc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentStatus undocumented
+type EducationAssignmentStatus int
+
+const (
+ // EducationAssignmentStatusVDraft undocumented
+ EducationAssignmentStatusVDraft EducationAssignmentStatus = 0
+ // EducationAssignmentStatusVPublished undocumented
+ EducationAssignmentStatusVPublished EducationAssignmentStatus = 1
+ // EducationAssignmentStatusVAssigned undocumented
+ EducationAssignmentStatusVAssigned EducationAssignmentStatus = 2
+ // EducationAssignmentStatusVUnknownFutureValue undocumented
+ EducationAssignmentStatusVUnknownFutureValue EducationAssignmentStatus = 3
+)
+
+// EducationAssignmentStatusPDraft returns a pointer to EducationAssignmentStatusVDraft
+func EducationAssignmentStatusPDraft() *EducationAssignmentStatus {
+ v := EducationAssignmentStatusVDraft
+ return &v
+}
+
+// EducationAssignmentStatusPPublished returns a pointer to EducationAssignmentStatusVPublished
+func EducationAssignmentStatusPPublished() *EducationAssignmentStatus {
+ v := EducationAssignmentStatusVPublished
+ return &v
+}
+
+// EducationAssignmentStatusPAssigned returns a pointer to EducationAssignmentStatusVAssigned
+func EducationAssignmentStatusPAssigned() *EducationAssignmentStatus {
+ v := EducationAssignmentStatusVAssigned
+ return &v
+}
+
+// EducationAssignmentStatusPUnknownFutureValue returns a pointer to EducationAssignmentStatusVUnknownFutureValue
+func EducationAssignmentStatusPUnknownFutureValue() *EducationAssignmentStatus {
+ v := EducationAssignmentStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationCategoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationCategoryModel.go
new file mode 100644
index 00000000..29ed16b4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationCategoryModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationCategory undocumented
+type EducationCategory struct {
+ // Entity is the base model of EducationCategory
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationCategoryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationCategoryRequest.go
new file mode 100644
index 00000000..a6fc0e5a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationCategoryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationClassModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationClassModel.go
new file mode 100644
index 00000000..a00367f9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationClassModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationClassRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationClassRequest.go
new file mode 100644
index 00000000..8802059e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationClassRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationCategory collection
+func (r *EducationClassAssignmentCategoriesCollectionRequest) Get(ctx context.Context) ([]EducationCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationAssignment collection
+func (r *EducationClassAssignmentsCollectionRequest) Get(ctx context.Context) ([]EducationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationUser collection
+func (r *EducationClassMembersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSchool collection
+func (r *EducationClassSchoolsCollectionRequest) Get(ctx context.Context) ([]EducationSchool, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationUser collection
+func (r *EducationClassTeachersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationCourseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationCourseModel.go
new file mode 100644
index 00000000..9e919e48
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationCourseModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationCsvDataProviderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationCsvDataProviderModel.go
new file mode 100644
index 00000000..fca7fc7a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationCsvDataProviderModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationCsvDataProvider undocumented
+type EducationCsvDataProvider struct {
+ // EducationSynchronizationDataProvider is the base model of EducationCsvDataProvider
+ EducationSynchronizationDataProvider
+ // Customizations undocumented
+ Customizations *EducationSynchronizationCustomizations `json:"customizations,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationExcelResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationExcelResourceModel.go
new file mode 100644
index 00000000..07c65bb5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationExcelResourceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationExcelResource undocumented
+type EducationExcelResource struct {
+ // EducationResource is the base model of EducationExcelResource
+ EducationResource
+ // FileURL undocumented
+ FileURL *string `json:"fileUrl,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationExternalSourceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationExternalSourceEnum.go
new file mode 100644
index 00000000..0a1567c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationExternalSourceEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationExternalSource undocumented
+type EducationExternalSource int
+
+const (
+ // EducationExternalSourceVSis undocumented
+ EducationExternalSourceVSis EducationExternalSource = 0
+ // EducationExternalSourceVManual undocumented
+ EducationExternalSourceVManual EducationExternalSource = 1
+ // EducationExternalSourceVUnknownFutureValue undocumented
+ EducationExternalSourceVUnknownFutureValue EducationExternalSource = 2
+)
+
+// EducationExternalSourcePSis returns a pointer to EducationExternalSourceVSis
+func EducationExternalSourcePSis() *EducationExternalSource {
+ v := EducationExternalSourceVSis
+ return &v
+}
+
+// EducationExternalSourcePManual returns a pointer to EducationExternalSourceVManual
+func EducationExternalSourcePManual() *EducationExternalSource {
+ v := EducationExternalSourceVManual
+ return &v
+}
+
+// EducationExternalSourcePUnknownFutureValue returns a pointer to EducationExternalSourceVUnknownFutureValue
+func EducationExternalSourcePUnknownFutureValue() *EducationExternalSource {
+ v := EducationExternalSourceVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationFeedbackModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationFeedbackModel.go
new file mode 100644
index 00000000..215a8d39
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationFeedbackModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationFeedbackOutcomeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationFeedbackOutcomeModel.go
new file mode 100644
index 00000000..acc27d68
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationFeedbackOutcomeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationFileResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationFileResourceModel.go
new file mode 100644
index 00000000..bb69611d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationFileResourceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationFileResource undocumented
+type EducationFileResource struct {
+ // EducationResource is the base model of EducationFileResource
+ EducationResource
+ // FileURL undocumented
+ FileURL *string `json:"fileUrl,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationFileSynchronizationVerificationMessageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationFileSynchronizationVerificationMessageModel.go
new file mode 100644
index 00000000..5c56b6c7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationFileSynchronizationVerificationMessageModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationFormResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationFormResourceModel.go
new file mode 100644
index 00000000..b5778640
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationFormResourceModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationGenderEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationGenderEnum.go
new file mode 100644
index 00000000..130ae11d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationGenderEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationGender undocumented
+type EducationGender int
+
+const (
+ // EducationGenderVFemale undocumented
+ EducationGenderVFemale EducationGender = 0
+ // EducationGenderVMale undocumented
+ EducationGenderVMale EducationGender = 1
+ // EducationGenderVOther undocumented
+ EducationGenderVOther EducationGender = 2
+ // EducationGenderVUnknownFutureValue undocumented
+ EducationGenderVUnknownFutureValue EducationGender = 3
+)
+
+// EducationGenderPFemale returns a pointer to EducationGenderVFemale
+func EducationGenderPFemale() *EducationGender {
+ v := EducationGenderVFemale
+ return &v
+}
+
+// EducationGenderPMale returns a pointer to EducationGenderVMale
+func EducationGenderPMale() *EducationGender {
+ v := EducationGenderVMale
+ return &v
+}
+
+// EducationGenderPOther returns a pointer to EducationGenderVOther
+func EducationGenderPOther() *EducationGender {
+ v := EducationGenderVOther
+ return &v
+}
+
+// EducationGenderPUnknownFutureValue returns a pointer to EducationGenderVUnknownFutureValue
+func EducationGenderPUnknownFutureValue() *EducationGender {
+ v := EducationGenderVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityCreationConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityCreationConfigurationModel.go
new file mode 100644
index 00000000..da9d4815
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityCreationConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationIdentityCreationConfiguration undocumented
+type EducationIdentityCreationConfiguration struct {
+ // EducationIdentitySynchronizationConfiguration is the base model of EducationIdentityCreationConfiguration
+ EducationIdentitySynchronizationConfiguration
+ // UserDomains undocumented
+ UserDomains []EducationIdentityDomain `json:"userDomains,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityDomainModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityDomainModel.go
new file mode 100644
index 00000000..fc5dbc86
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityDomainModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityMatchingConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityMatchingConfigurationModel.go
new file mode 100644
index 00000000..c6eb6385
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityMatchingConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationIdentityMatchingConfiguration undocumented
+type EducationIdentityMatchingConfiguration struct {
+ // EducationIdentitySynchronizationConfiguration is the base model of EducationIdentityMatchingConfiguration
+ EducationIdentitySynchronizationConfiguration
+ // MatchingOptions undocumented
+ MatchingOptions []EducationIdentityMatchingOptions `json:"matchingOptions,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityMatchingOptionsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityMatchingOptionsModel.go
new file mode 100644
index 00000000..e6565783
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityMatchingOptionsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentitySynchronizationConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentitySynchronizationConfigurationModel.go
new file mode 100644
index 00000000..c2eaa593
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentitySynchronizationConfigurationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationIdentitySynchronizationConfiguration undocumented
+type EducationIdentitySynchronizationConfiguration struct {
+ // Object is the base model of EducationIdentitySynchronizationConfiguration
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationItemBodyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationItemBodyModel.go
new file mode 100644
index 00000000..c43d46c2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationItemBodyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationLinkResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationLinkResourceModel.go
new file mode 100644
index 00000000..6058bf94
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationLinkResourceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationLinkResource undocumented
+type EducationLinkResource struct {
+ // EducationResource is the base model of EducationLinkResource
+ EducationResource
+ // Link undocumented
+ Link *string `json:"link,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationMakeCodeResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationMakeCodeResourceModel.go
new file mode 100644
index 00000000..78653869
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationMakeCodeResourceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationOnPremisesInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationOnPremisesInfoModel.go
new file mode 100644
index 00000000..d0507396
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationOnPremisesInfoModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationOnPremisesInfo undocumented
+type EducationOnPremisesInfo struct {
+ // Object is the base model of EducationOnPremisesInfo
+ Object
+ // ImmutableID undocumented
+ ImmutableID *string `json:"immutableId,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationOneNoteResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationOneNoteResourceModel.go
new file mode 100644
index 00000000..f1790b93
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationOneNoteResourceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationOneRosterAPIDataProviderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationOneRosterAPIDataProviderModel.go
new file mode 100644
index 00000000..394dc5f5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationOneRosterAPIDataProviderModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationOrganizationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationOrganizationModel.go
new file mode 100644
index 00000000..e4b8fd5f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationOrganizationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationOutcomeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationOutcomeModel.go
new file mode 100644
index 00000000..52040f35
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationOutcomeModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationOutcomeRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationOutcomeRequest.go
new file mode 100644
index 00000000..94c9de4a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationOutcomeRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationPointsOutcomeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationPointsOutcomeModel.go
new file mode 100644
index 00000000..0dc18a93
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationPointsOutcomeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationPowerPointResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationPowerPointResourceModel.go
new file mode 100644
index 00000000..2eda79b1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationPowerPointResourceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationPowerPointResource undocumented
+type EducationPowerPointResource struct {
+ // EducationResource is the base model of EducationPowerPointResource
+ EducationResource
+ // FileURL undocumented
+ FileURL *string `json:"fileUrl,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationPowerSchoolDataProviderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationPowerSchoolDataProviderModel.go
new file mode 100644
index 00000000..9936f216
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationPowerSchoolDataProviderModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationResourceModel.go
new file mode 100644
index 00000000..de3688bb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationResourceModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationRootModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationRootModel.go
new file mode 100644
index 00000000..d26d1d5f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationRootModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationRootRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationRootRequest.go
new file mode 100644
index 00000000..1ead70bb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationRootRequest.go
@@ -0,0 +1,428 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationClass collection
+func (r *EducationRootClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSchool collection
+func (r *EducationRootSchoolsCollectionRequest) Get(ctx context.Context) ([]EducationSchool, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSynchronizationProfile collection
+func (r *EducationRootSynchronizationProfilesCollectionRequest) Get(ctx context.Context) ([]EducationSynchronizationProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationUser collection
+func (r *EducationRootUsersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricModel.go
new file mode 100644
index 00000000..babf4c4b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricOutcomeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricOutcomeModel.go
new file mode 100644
index 00000000..d7c55bdc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricOutcomeModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricRequest.go
new file mode 100644
index 00000000..9ad4028f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSchoolModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSchoolModel.go
new file mode 100644
index 00000000..3659b707
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSchoolModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSchoolRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSchoolRequest.go
new file mode 100644
index 00000000..85501b49
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSchoolRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationClass collection
+func (r *EducationSchoolClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationUser collection
+func (r *EducationSchoolUsersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationStudentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationStudentModel.go
new file mode 100644
index 00000000..948e048f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationStudentModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"birthDate,omitempty"`
+ // Gender undocumented
+ Gender *EducationGender `json:"gender,omitempty"`
+ // StudentNumber undocumented
+ StudentNumber *string `json:"studentNumber,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionAction.go
new file mode 100644
index 00000000..5ddb69d1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionAction.go
@@ -0,0 +1,98 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EducationSubmissionReturnRequestParameter undocumented
+type EducationSubmissionReturnRequestParameter struct {
+}
+
+// EducationSubmissionSubmitRequestParameter undocumented
+type EducationSubmissionSubmitRequestParameter struct {
+}
+
+// EducationSubmissionUnsubmitRequestParameter undocumented
+type EducationSubmissionUnsubmitRequestParameter struct {
+}
+
+//
+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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionIndividualRecipientModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionIndividualRecipientModel.go
new file mode 100644
index 00000000..a8b9a8f9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionIndividualRecipientModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSubmissionIndividualRecipient undocumented
+type EducationSubmissionIndividualRecipient struct {
+ // EducationSubmissionRecipient is the base model of EducationSubmissionIndividualRecipient
+ EducationSubmissionRecipient
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionModel.go
new file mode 100644
index 00000000..f02c8e24
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionRecipientModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionRecipientModel.go
new file mode 100644
index 00000000..2fb17f27
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionRecipientModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSubmissionRecipient undocumented
+type EducationSubmissionRecipient struct {
+ // Object is the base model of EducationSubmissionRecipient
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionRequest.go
new file mode 100644
index 00000000..c728169f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationOutcome collection
+func (r *EducationSubmissionOutcomesCollectionRequest) Get(ctx context.Context) ([]EducationOutcome, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSubmissionResource collection
+func (r *EducationSubmissionResourcesCollectionRequest) Get(ctx context.Context) ([]EducationSubmissionResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSubmissionResource collection
+func (r *EducationSubmissionSubmittedResourcesCollectionRequest) Get(ctx context.Context) ([]EducationSubmissionResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionResourceModel.go
new file mode 100644
index 00000000..6f8abc54
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionResourceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionResourceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionResourceRequest.go
new file mode 100644
index 00000000..679f4a53
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionResourceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionStatusEnum.go
new file mode 100644
index 00000000..69dc68b5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSubmissionStatus undocumented
+type EducationSubmissionStatus int
+
+const (
+ // EducationSubmissionStatusVWorking undocumented
+ EducationSubmissionStatusVWorking EducationSubmissionStatus = 0
+ // EducationSubmissionStatusVSubmitted undocumented
+ EducationSubmissionStatusVSubmitted EducationSubmissionStatus = 1
+ // EducationSubmissionStatusVReleased undocumented
+ EducationSubmissionStatusVReleased EducationSubmissionStatus = 2
+ // EducationSubmissionStatusVReturned undocumented
+ EducationSubmissionStatusVReturned EducationSubmissionStatus = 3
+ // EducationSubmissionStatusVUnknownFutureValue undocumented
+ EducationSubmissionStatusVUnknownFutureValue EducationSubmissionStatus = 4
+)
+
+// EducationSubmissionStatusPWorking returns a pointer to EducationSubmissionStatusVWorking
+func EducationSubmissionStatusPWorking() *EducationSubmissionStatus {
+ v := EducationSubmissionStatusVWorking
+ return &v
+}
+
+// EducationSubmissionStatusPSubmitted returns a pointer to EducationSubmissionStatusVSubmitted
+func EducationSubmissionStatusPSubmitted() *EducationSubmissionStatus {
+ v := EducationSubmissionStatusVSubmitted
+ return &v
+}
+
+// EducationSubmissionStatusPReleased returns a pointer to EducationSubmissionStatusVReleased
+func EducationSubmissionStatusPReleased() *EducationSubmissionStatus {
+ v := EducationSubmissionStatusVReleased
+ return &v
+}
+
+// EducationSubmissionStatusPReturned returns a pointer to EducationSubmissionStatusVReturned
+func EducationSubmissionStatusPReturned() *EducationSubmissionStatus {
+ v := EducationSubmissionStatusVReturned
+ return &v
+}
+
+// EducationSubmissionStatusPUnknownFutureValue returns a pointer to EducationSubmissionStatusVUnknownFutureValue
+func EducationSubmissionStatusPUnknownFutureValue() *EducationSubmissionStatus {
+ v := EducationSubmissionStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationConnectionSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationConnectionSettingsModel.go
new file mode 100644
index 00000000..780b3991
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationConnectionSettingsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationModel.go
new file mode 100644
index 00000000..4c61415c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationsBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationsBaseModel.go
new file mode 100644
index 00000000..058e832f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationsBaseModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSynchronizationCustomizationsBase undocumented
+type EducationSynchronizationCustomizationsBase struct {
+ // Object is the base model of EducationSynchronizationCustomizationsBase
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationsModel.go
new file mode 100644
index 00000000..36e6dc13
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationDataProviderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationDataProviderModel.go
new file mode 100644
index 00000000..e3fc548f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationDataProviderModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSynchronizationDataProvider undocumented
+type EducationSynchronizationDataProvider struct {
+ // Object is the base model of EducationSynchronizationDataProvider
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationErrorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationErrorModel.go
new file mode 100644
index 00000000..c9e40e6f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationErrorModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationErrorRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationErrorRequest.go
new file mode 100644
index 00000000..6590bd8d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationErrorRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationLicenseAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationLicenseAssignmentModel.go
new file mode 100644
index 00000000..a1659c6f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationLicenseAssignmentModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationOAuth1ConnectionSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationOAuth1ConnectionSettingsModel.go
new file mode 100644
index 00000000..a092bbc7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationOAuth1ConnectionSettingsModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSynchronizationOAuth1ConnectionSettings undocumented
+type EducationSynchronizationOAuth1ConnectionSettings struct {
+ // EducationSynchronizationConnectionSettings is the base model of EducationSynchronizationOAuth1ConnectionSettings
+ EducationSynchronizationConnectionSettings
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationOAuth2ClientCredentialsConnectionSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationOAuth2ClientCredentialsConnectionSettingsModel.go
new file mode 100644
index 00000000..c438bc58
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationOAuth2ClientCredentialsConnectionSettingsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileAction.go
new file mode 100644
index 00000000..eda8c082
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileAction.go
@@ -0,0 +1,188 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// EducationSynchronizationProfileResumeRequestParameter undocumented
+type EducationSynchronizationProfileResumeRequestParameter struct {
+}
+
+// EducationSynchronizationProfilePauseRequestParameter undocumented
+type EducationSynchronizationProfilePauseRequestParameter struct {
+}
+
+// EducationSynchronizationProfileResetRequestParameter undocumented
+type EducationSynchronizationProfileResetRequestParameter struct {
+}
+
+// EducationSynchronizationProfileStartRequestParameter undocumented
+type EducationSynchronizationProfileStartRequestParameter struct {
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]EducationFileSynchronizationVerificationMessage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileModel.go
new file mode 100644
index 00000000..7a0b9d79
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileRequest.go
new file mode 100644
index 00000000..5f636187
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSynchronizationError collection
+func (r *EducationSynchronizationProfileErrorsCollectionRequest) Get(ctx context.Context) ([]EducationSynchronizationError, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStateEnum.go
new file mode 100644
index 00000000..d0d934f1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSynchronizationProfileState undocumented
+type EducationSynchronizationProfileState int
+
+const (
+ // EducationSynchronizationProfileStateVDeleting undocumented
+ EducationSynchronizationProfileStateVDeleting EducationSynchronizationProfileState = 2
+ // EducationSynchronizationProfileStateVDeletionFailed undocumented
+ EducationSynchronizationProfileStateVDeletionFailed EducationSynchronizationProfileState = 3
+ // EducationSynchronizationProfileStateVProvisioningFailed undocumented
+ EducationSynchronizationProfileStateVProvisioningFailed EducationSynchronizationProfileState = 5
+ // EducationSynchronizationProfileStateVProvisioned undocumented
+ EducationSynchronizationProfileStateVProvisioned EducationSynchronizationProfileState = 6
+ // EducationSynchronizationProfileStateVProvisioning undocumented
+ EducationSynchronizationProfileStateVProvisioning EducationSynchronizationProfileState = 7
+ // EducationSynchronizationProfileStateVUnknownFutureValue undocumented
+ EducationSynchronizationProfileStateVUnknownFutureValue EducationSynchronizationProfileState = 8
+)
+
+// EducationSynchronizationProfileStatePDeleting returns a pointer to EducationSynchronizationProfileStateVDeleting
+func EducationSynchronizationProfileStatePDeleting() *EducationSynchronizationProfileState {
+ v := EducationSynchronizationProfileStateVDeleting
+ return &v
+}
+
+// EducationSynchronizationProfileStatePDeletionFailed returns a pointer to EducationSynchronizationProfileStateVDeletionFailed
+func EducationSynchronizationProfileStatePDeletionFailed() *EducationSynchronizationProfileState {
+ v := EducationSynchronizationProfileStateVDeletionFailed
+ return &v
+}
+
+// EducationSynchronizationProfileStatePProvisioningFailed returns a pointer to EducationSynchronizationProfileStateVProvisioningFailed
+func EducationSynchronizationProfileStatePProvisioningFailed() *EducationSynchronizationProfileState {
+ v := EducationSynchronizationProfileStateVProvisioningFailed
+ return &v
+}
+
+// EducationSynchronizationProfileStatePProvisioned returns a pointer to EducationSynchronizationProfileStateVProvisioned
+func EducationSynchronizationProfileStatePProvisioned() *EducationSynchronizationProfileState {
+ v := EducationSynchronizationProfileStateVProvisioned
+ return &v
+}
+
+// EducationSynchronizationProfileStatePProvisioning returns a pointer to EducationSynchronizationProfileStateVProvisioning
+func EducationSynchronizationProfileStatePProvisioning() *EducationSynchronizationProfileState {
+ v := EducationSynchronizationProfileStateVProvisioning
+ return &v
+}
+
+// EducationSynchronizationProfileStatePUnknownFutureValue returns a pointer to EducationSynchronizationProfileStateVUnknownFutureValue
+func EducationSynchronizationProfileStatePUnknownFutureValue() *EducationSynchronizationProfileState {
+ v := EducationSynchronizationProfileStateVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStatusModel.go
new file mode 100644
index 00000000..3b94b97b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStatusModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStatusRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStatusRequest.go
new file mode 100644
index 00000000..f2334409
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationStatusEnum.go
new file mode 100644
index 00000000..48b3f884
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationStatusEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSynchronizationStatus undocumented
+type EducationSynchronizationStatus int
+
+const (
+ // EducationSynchronizationStatusVPaused undocumented
+ EducationSynchronizationStatusVPaused EducationSynchronizationStatus = 0
+ // EducationSynchronizationStatusVInProgress undocumented
+ EducationSynchronizationStatusVInProgress EducationSynchronizationStatus = 1
+ // EducationSynchronizationStatusVSuccess undocumented
+ EducationSynchronizationStatusVSuccess EducationSynchronizationStatus = 2
+ // EducationSynchronizationStatusVError undocumented
+ EducationSynchronizationStatusVError EducationSynchronizationStatus = 3
+ // EducationSynchronizationStatusVValidationError undocumented
+ EducationSynchronizationStatusVValidationError EducationSynchronizationStatus = 4
+ // EducationSynchronizationStatusVQuarantined undocumented
+ EducationSynchronizationStatusVQuarantined EducationSynchronizationStatus = 5
+ // EducationSynchronizationStatusVUnknownFutureValue undocumented
+ EducationSynchronizationStatusVUnknownFutureValue EducationSynchronizationStatus = 6
+)
+
+// EducationSynchronizationStatusPPaused returns a pointer to EducationSynchronizationStatusVPaused
+func EducationSynchronizationStatusPPaused() *EducationSynchronizationStatus {
+ v := EducationSynchronizationStatusVPaused
+ return &v
+}
+
+// EducationSynchronizationStatusPInProgress returns a pointer to EducationSynchronizationStatusVInProgress
+func EducationSynchronizationStatusPInProgress() *EducationSynchronizationStatus {
+ v := EducationSynchronizationStatusVInProgress
+ return &v
+}
+
+// EducationSynchronizationStatusPSuccess returns a pointer to EducationSynchronizationStatusVSuccess
+func EducationSynchronizationStatusPSuccess() *EducationSynchronizationStatus {
+ v := EducationSynchronizationStatusVSuccess
+ return &v
+}
+
+// EducationSynchronizationStatusPError returns a pointer to EducationSynchronizationStatusVError
+func EducationSynchronizationStatusPError() *EducationSynchronizationStatus {
+ v := EducationSynchronizationStatusVError
+ return &v
+}
+
+// EducationSynchronizationStatusPValidationError returns a pointer to EducationSynchronizationStatusVValidationError
+func EducationSynchronizationStatusPValidationError() *EducationSynchronizationStatus {
+ v := EducationSynchronizationStatusVValidationError
+ return &v
+}
+
+// EducationSynchronizationStatusPQuarantined returns a pointer to EducationSynchronizationStatusVQuarantined
+func EducationSynchronizationStatusPQuarantined() *EducationSynchronizationStatus {
+ v := EducationSynchronizationStatusVQuarantined
+ return &v
+}
+
+// EducationSynchronizationStatusPUnknownFutureValue returns a pointer to EducationSynchronizationStatusVUnknownFutureValue
+func EducationSynchronizationStatusPUnknownFutureValue() *EducationSynchronizationStatus {
+ v := EducationSynchronizationStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationTeacherModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationTeacherModel.go
new file mode 100644
index 00000000..6550174e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationTeacherModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationTermModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationTermModel.go
new file mode 100644
index 00000000..f20cc8f3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationTermModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationTerm undocumented
+type EducationTerm struct {
+ // Object is the base model of EducationTerm
+ Object
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // StartDate undocumented
+ StartDate *time.Time `json:"startDate,omitempty"`
+ // EndDate undocumented
+ EndDate *time.Time `json:"endDate,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationUserModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationUserModel.go
new file mode 100644
index 00000000..3861876e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationUserModel.go
@@ -0,0 +1,85 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationUserRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationUserRequest.go
new file mode 100644
index 00000000..bf517cfc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationUserRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationAssignment collection
+func (r *EducationUserAssignmentsCollectionRequest) Get(ctx context.Context) ([]EducationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationClass collection
+func (r *EducationUserClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationRubric collection
+func (r *EducationUserRubricsCollectionRequest) Get(ctx context.Context) ([]EducationRubric, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSchool collection
+func (r *EducationUserSchoolsCollectionRequest) Get(ctx context.Context) ([]EducationSchool, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationClass collection
+func (r *EducationUserTaughtClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/EducationUserRoleEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationUserRoleEnum.go
new file mode 100644
index 00000000..e4577d22
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationUserRoleEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationUserRole undocumented
+type EducationUserRole int
+
+const (
+ // EducationUserRoleVStudent undocumented
+ EducationUserRoleVStudent EducationUserRole = 0
+ // EducationUserRoleVTeacher undocumented
+ EducationUserRoleVTeacher EducationUserRole = 1
+ // EducationUserRoleVNone undocumented
+ EducationUserRoleVNone EducationUserRole = 2
+ // EducationUserRoleVUnknownFutureValue undocumented
+ EducationUserRoleVUnknownFutureValue EducationUserRole = 3
+ // EducationUserRoleVFaculty undocumented
+ EducationUserRoleVFaculty EducationUserRole = 4
+)
+
+// EducationUserRolePStudent returns a pointer to EducationUserRoleVStudent
+func EducationUserRolePStudent() *EducationUserRole {
+ v := EducationUserRoleVStudent
+ return &v
+}
+
+// EducationUserRolePTeacher returns a pointer to EducationUserRoleVTeacher
+func EducationUserRolePTeacher() *EducationUserRole {
+ v := EducationUserRoleVTeacher
+ return &v
+}
+
+// EducationUserRolePNone returns a pointer to EducationUserRoleVNone
+func EducationUserRolePNone() *EducationUserRole {
+ v := EducationUserRoleVNone
+ return &v
+}
+
+// EducationUserRolePUnknownFutureValue returns a pointer to EducationUserRoleVUnknownFutureValue
+func EducationUserRolePUnknownFutureValue() *EducationUserRole {
+ v := EducationUserRoleVUnknownFutureValue
+ return &v
+}
+
+// EducationUserRolePFaculty returns a pointer to EducationUserRoleVFaculty
+func EducationUserRolePFaculty() *EducationUserRole {
+ v := EducationUserRoleVFaculty
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationWordResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationWordResourceModel.go
new file mode 100644
index 00000000..c1649254
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationWordResourceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/EducationalActivityDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityDetailModel.go
new file mode 100644
index 00000000..3c5cda2b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityDetailModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/EducationalActivityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityModel.go
new file mode 100644
index 00000000..b3e3a7bf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationalActivity undocumented
+type EducationalActivity struct {
+ // ItemFacet is the base model of EducationalActivity
+ ItemFacet
+ // CompletionMonthYear undocumented
+ CompletionMonthYear *time.Time `json:"completionMonthYear,omitempty"`
+ // EndMonthYear undocumented
+ EndMonthYear *time.Time `json:"endMonthYear,omitempty"`
+ // Institution undocumented
+ Institution *InstitutionData `json:"institution,omitempty"`
+ // Program undocumented
+ Program *EducationalActivityDetail `json:"program,omitempty"`
+ // StartMonthYear undocumented
+ StartMonthYear *time.Time `json:"startMonthYear,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityRequest.go
new file mode 100644
index 00000000..d378bfed
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityRequest.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/matterbridge/msgraph.go/beta/EmailActivityStatisticsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmailActivityStatisticsModel.go
new file mode 100644
index 00000000..45ac2345
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmailActivityStatisticsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmailActivityStatistics undocumented
+type EmailActivityStatistics struct {
+ // ActivityStatistics is the base model of EmailActivityStatistics
+ ActivityStatistics
+ // AfterHours undocumented
+ AfterHours *time.Duration `json:"afterHours,omitempty"`
+ // ReadEmail undocumented
+ ReadEmail *time.Duration `json:"readEmail,omitempty"`
+ // SentEmail undocumented
+ SentEmail *time.Duration `json:"sentEmail,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmailActivitySummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmailActivitySummaryModel.go
new file mode 100644
index 00000000..0b493a26
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmailActivitySummaryModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmailActivitySummary undocumented
+type EmailActivitySummary struct {
+ // Entity is the base model of EmailActivitySummary
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmailActivityUserDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmailActivityUserDetailModel.go
new file mode 100644
index 00000000..be31280f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmailActivityUserDetailModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmailActivityUserDetail undocumented
+type EmailActivityUserDetail struct {
+ // Entity is the base model of EmailActivityUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"deletedDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmailAddressModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmailAddressModel.go
new file mode 100644
index 00000000..02b2216e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmailAddressModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageAppsUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageAppsUserCountsModel.go
new file mode 100644
index 00000000..32e50815
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageAppsUserCountsModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmailAppUsageAppsUserCounts undocumented
+type EmailAppUsageAppsUserCounts struct {
+ // Entity is the base model of EmailAppUsageAppsUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageUserCountsModel.go
new file mode 100644
index 00000000..47b550e1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageUserCountsModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmailAppUsageUserCounts undocumented
+type EmailAppUsageUserCounts struct {
+ // Entity is the base model of EmailAppUsageUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageUserDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageUserDetailModel.go
new file mode 100644
index 00000000..5bd36e7b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageUserDetailModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmailAppUsageUserDetail undocumented
+type EmailAppUsageUserDetail struct {
+ // Entity is the base model of EmailAppUsageUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"deletedDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageVersionsUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageVersionsUserCountsModel.go
new file mode 100644
index 00000000..67e0f4ae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageVersionsUserCountsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmailAppUsageVersionsUserCounts undocumented
+type EmailAppUsageVersionsUserCounts struct {
+ // Entity is the base model of EmailAppUsageVersionsUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmailCertificateTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmailCertificateTypeEnum.go
new file mode 100644
index 00000000..45d4cdef
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmailCertificateTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmailCertificateType undocumented
+type EmailCertificateType int
+
+const (
+ // EmailCertificateTypeVNone undocumented
+ EmailCertificateTypeVNone EmailCertificateType = 0
+ // EmailCertificateTypeVCertificate undocumented
+ EmailCertificateTypeVCertificate EmailCertificateType = 1
+ // EmailCertificateTypeVDerivedCredential undocumented
+ EmailCertificateTypeVDerivedCredential EmailCertificateType = 2
+)
+
+// EmailCertificateTypePNone returns a pointer to EmailCertificateTypeVNone
+func EmailCertificateTypePNone() *EmailCertificateType {
+ v := EmailCertificateTypeVNone
+ return &v
+}
+
+// EmailCertificateTypePCertificate returns a pointer to EmailCertificateTypeVCertificate
+func EmailCertificateTypePCertificate() *EmailCertificateType {
+ v := EmailCertificateTypeVCertificate
+ return &v
+}
+
+// EmailCertificateTypePDerivedCredential returns a pointer to EmailCertificateTypeVDerivedCredential
+func EmailCertificateTypePDerivedCredential() *EmailCertificateType {
+ v := EmailCertificateTypeVDerivedCredential
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmailFileAssessmentRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmailFileAssessmentRequestObjectModel.go
new file mode 100644
index 00000000..d541c639
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmailFileAssessmentRequestObjectModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/EmailRoleEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmailRoleEnum.go
new file mode 100644
index 00000000..47ea57ea
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmailRoleEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmailRole undocumented
+type EmailRole int
+
+const (
+ // EmailRoleVUnknown undocumented
+ EmailRoleVUnknown EmailRole = 0
+ // EmailRoleVSender undocumented
+ EmailRoleVSender EmailRole = 1
+ // EmailRoleVRecipient undocumented
+ EmailRoleVRecipient EmailRole = 2
+ // EmailRoleVUnknownFutureValue undocumented
+ EmailRoleVUnknownFutureValue EmailRole = 127
+)
+
+// EmailRolePUnknown returns a pointer to EmailRoleVUnknown
+func EmailRolePUnknown() *EmailRole {
+ v := EmailRoleVUnknown
+ return &v
+}
+
+// EmailRolePSender returns a pointer to EmailRoleVSender
+func EmailRolePSender() *EmailRole {
+ v := EmailRoleVSender
+ return &v
+}
+
+// EmailRolePRecipient returns a pointer to EmailRoleVRecipient
+func EmailRolePRecipient() *EmailRole {
+ v := EmailRoleVRecipient
+ return &v
+}
+
+// EmailRolePUnknownFutureValue returns a pointer to EmailRoleVUnknownFutureValue
+func EmailRolePUnknownFutureValue() *EmailRole {
+ v := EmailRoleVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmailSyncDurationEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmailSyncDurationEnum.go
new file mode 100644
index 00000000..895d72ba
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmailSyncDurationEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmailSyncDuration undocumented
+type EmailSyncDuration int
+
+const (
+ // EmailSyncDurationVUserDefined undocumented
+ EmailSyncDurationVUserDefined EmailSyncDuration = 0
+ // EmailSyncDurationVOneDay undocumented
+ EmailSyncDurationVOneDay EmailSyncDuration = 1
+ // EmailSyncDurationVThreeDays undocumented
+ EmailSyncDurationVThreeDays EmailSyncDuration = 2
+ // EmailSyncDurationVOneWeek undocumented
+ EmailSyncDurationVOneWeek EmailSyncDuration = 3
+ // EmailSyncDurationVTwoWeeks undocumented
+ EmailSyncDurationVTwoWeeks EmailSyncDuration = 4
+ // EmailSyncDurationVOneMonth undocumented
+ EmailSyncDurationVOneMonth EmailSyncDuration = 5
+ // EmailSyncDurationVUnlimited undocumented
+ EmailSyncDurationVUnlimited EmailSyncDuration = 6
+)
+
+// EmailSyncDurationPUserDefined returns a pointer to EmailSyncDurationVUserDefined
+func EmailSyncDurationPUserDefined() *EmailSyncDuration {
+ v := EmailSyncDurationVUserDefined
+ return &v
+}
+
+// EmailSyncDurationPOneDay returns a pointer to EmailSyncDurationVOneDay
+func EmailSyncDurationPOneDay() *EmailSyncDuration {
+ v := EmailSyncDurationVOneDay
+ return &v
+}
+
+// EmailSyncDurationPThreeDays returns a pointer to EmailSyncDurationVThreeDays
+func EmailSyncDurationPThreeDays() *EmailSyncDuration {
+ v := EmailSyncDurationVThreeDays
+ return &v
+}
+
+// EmailSyncDurationPOneWeek returns a pointer to EmailSyncDurationVOneWeek
+func EmailSyncDurationPOneWeek() *EmailSyncDuration {
+ v := EmailSyncDurationVOneWeek
+ return &v
+}
+
+// EmailSyncDurationPTwoWeeks returns a pointer to EmailSyncDurationVTwoWeeks
+func EmailSyncDurationPTwoWeeks() *EmailSyncDuration {
+ v := EmailSyncDurationVTwoWeeks
+ return &v
+}
+
+// EmailSyncDurationPOneMonth returns a pointer to EmailSyncDurationVOneMonth
+func EmailSyncDurationPOneMonth() *EmailSyncDuration {
+ v := EmailSyncDurationVOneMonth
+ return &v
+}
+
+// EmailSyncDurationPUnlimited returns a pointer to EmailSyncDurationVUnlimited
+func EmailSyncDurationPUnlimited() *EmailSyncDuration {
+ v := EmailSyncDurationVUnlimited
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmailSyncScheduleEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmailSyncScheduleEnum.go
new file mode 100644
index 00000000..22ee3f27
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmailSyncScheduleEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmailSyncSchedule undocumented
+type EmailSyncSchedule int
+
+const (
+ // EmailSyncScheduleVUserDefined undocumented
+ EmailSyncScheduleVUserDefined EmailSyncSchedule = 0
+ // EmailSyncScheduleVAsMessagesArrive undocumented
+ EmailSyncScheduleVAsMessagesArrive EmailSyncSchedule = 1
+ // EmailSyncScheduleVManual undocumented
+ EmailSyncScheduleVManual EmailSyncSchedule = 2
+ // EmailSyncScheduleVFifteenMinutes undocumented
+ EmailSyncScheduleVFifteenMinutes EmailSyncSchedule = 3
+ // EmailSyncScheduleVThirtyMinutes undocumented
+ EmailSyncScheduleVThirtyMinutes EmailSyncSchedule = 4
+ // EmailSyncScheduleVSixtyMinutes undocumented
+ EmailSyncScheduleVSixtyMinutes EmailSyncSchedule = 5
+ // EmailSyncScheduleVBasedOnMyUsage undocumented
+ EmailSyncScheduleVBasedOnMyUsage EmailSyncSchedule = 6
+)
+
+// EmailSyncSchedulePUserDefined returns a pointer to EmailSyncScheduleVUserDefined
+func EmailSyncSchedulePUserDefined() *EmailSyncSchedule {
+ v := EmailSyncScheduleVUserDefined
+ return &v
+}
+
+// EmailSyncSchedulePAsMessagesArrive returns a pointer to EmailSyncScheduleVAsMessagesArrive
+func EmailSyncSchedulePAsMessagesArrive() *EmailSyncSchedule {
+ v := EmailSyncScheduleVAsMessagesArrive
+ return &v
+}
+
+// EmailSyncSchedulePManual returns a pointer to EmailSyncScheduleVManual
+func EmailSyncSchedulePManual() *EmailSyncSchedule {
+ v := EmailSyncScheduleVManual
+ return &v
+}
+
+// EmailSyncSchedulePFifteenMinutes returns a pointer to EmailSyncScheduleVFifteenMinutes
+func EmailSyncSchedulePFifteenMinutes() *EmailSyncSchedule {
+ v := EmailSyncScheduleVFifteenMinutes
+ return &v
+}
+
+// EmailSyncSchedulePThirtyMinutes returns a pointer to EmailSyncScheduleVThirtyMinutes
+func EmailSyncSchedulePThirtyMinutes() *EmailSyncSchedule {
+ v := EmailSyncScheduleVThirtyMinutes
+ return &v
+}
+
+// EmailSyncSchedulePSixtyMinutes returns a pointer to EmailSyncScheduleVSixtyMinutes
+func EmailSyncSchedulePSixtyMinutes() *EmailSyncSchedule {
+ v := EmailSyncScheduleVSixtyMinutes
+ return &v
+}
+
+// EmailSyncSchedulePBasedOnMyUsage returns a pointer to EmailSyncScheduleVBasedOnMyUsage
+func EmailSyncSchedulePBasedOnMyUsage() *EmailSyncSchedule {
+ v := EmailSyncScheduleVBasedOnMyUsage
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmailTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmailTypeEnum.go
new file mode 100644
index 00000000..6788e39b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmailTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmailType undocumented
+type EmailType int
+
+const (
+ // EmailTypeVUnknown undocumented
+ EmailTypeVUnknown EmailType = 0
+ // EmailTypeVWork undocumented
+ EmailTypeVWork EmailType = 1
+ // EmailTypeVPersonal undocumented
+ EmailTypeVPersonal EmailType = 2
+ // EmailTypeVMain undocumented
+ EmailTypeVMain EmailType = 3
+ // EmailTypeVOther undocumented
+ EmailTypeVOther EmailType = 4
+)
+
+// EmailTypePUnknown returns a pointer to EmailTypeVUnknown
+func EmailTypePUnknown() *EmailType {
+ v := EmailTypeVUnknown
+ return &v
+}
+
+// EmailTypePWork returns a pointer to EmailTypeVWork
+func EmailTypePWork() *EmailType {
+ v := EmailTypeVWork
+ return &v
+}
+
+// EmailTypePPersonal returns a pointer to EmailTypeVPersonal
+func EmailTypePPersonal() *EmailType {
+ v := EmailTypeVPersonal
+ return &v
+}
+
+// EmailTypePMain returns a pointer to EmailTypeVMain
+func EmailTypePMain() *EmailType {
+ v := EmailTypeVMain
+ return &v
+}
+
+// EmailTypePOther returns a pointer to EmailTypeVOther
+func EmailTypePOther() *EmailType {
+ v := EmailTypeVOther
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodeModel.go
new file mode 100644
index 00000000..c7b484be
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodeModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAction.go
new file mode 100644
index 00000000..47293873
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAction.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// EmbeddedSIMActivationCodePoolAssignRequestParameter undocumented
+type EmbeddedSIMActivationCodePoolAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []EmbeddedSIMActivationCodePoolAssignment `json:"assignments,omitempty"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]EmbeddedSIMActivationCodePoolAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentModel.go
new file mode 100644
index 00000000..5b6934c8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentRequest.go
new file mode 100644
index 00000000..e898780f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolModel.go
new file mode 100644
index 00000000..18af5e00
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolRequest.go
new file mode 100644
index 00000000..a88c4084
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EmbeddedSIMActivationCodePoolAssignment collection
+func (r *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest) Get(ctx context.Context) ([]EmbeddedSIMActivationCodePoolAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EmbeddedSIMDeviceState collection
+func (r *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest) Get(ctx context.Context) ([]EmbeddedSIMDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateModel.go
new file mode 100644
index 00000000..8e8d0d06
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateRequest.go
new file mode 100644
index 00000000..9dac62fc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateValueEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateValueEnum.go
new file mode 100644
index 00000000..5f61f42e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateValueEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmbeddedSIMDeviceStateValue undocumented
+type EmbeddedSIMDeviceStateValue int
+
+const (
+ // EmbeddedSIMDeviceStateValueVNotEvaluated undocumented
+ EmbeddedSIMDeviceStateValueVNotEvaluated EmbeddedSIMDeviceStateValue = 0
+ // EmbeddedSIMDeviceStateValueVFailed undocumented
+ EmbeddedSIMDeviceStateValueVFailed EmbeddedSIMDeviceStateValue = 1
+ // EmbeddedSIMDeviceStateValueVInstalling undocumented
+ EmbeddedSIMDeviceStateValueVInstalling EmbeddedSIMDeviceStateValue = 2
+ // EmbeddedSIMDeviceStateValueVInstalled undocumented
+ EmbeddedSIMDeviceStateValueVInstalled EmbeddedSIMDeviceStateValue = 3
+ // EmbeddedSIMDeviceStateValueVDeleting undocumented
+ EmbeddedSIMDeviceStateValueVDeleting EmbeddedSIMDeviceStateValue = 4
+ // EmbeddedSIMDeviceStateValueVError undocumented
+ EmbeddedSIMDeviceStateValueVError EmbeddedSIMDeviceStateValue = 5
+ // EmbeddedSIMDeviceStateValueVDeleted undocumented
+ EmbeddedSIMDeviceStateValueVDeleted EmbeddedSIMDeviceStateValue = 6
+ // EmbeddedSIMDeviceStateValueVRemovedByUser undocumented
+ EmbeddedSIMDeviceStateValueVRemovedByUser EmbeddedSIMDeviceStateValue = 7
+)
+
+// EmbeddedSIMDeviceStateValuePNotEvaluated returns a pointer to EmbeddedSIMDeviceStateValueVNotEvaluated
+func EmbeddedSIMDeviceStateValuePNotEvaluated() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVNotEvaluated
+ return &v
+}
+
+// EmbeddedSIMDeviceStateValuePFailed returns a pointer to EmbeddedSIMDeviceStateValueVFailed
+func EmbeddedSIMDeviceStateValuePFailed() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVFailed
+ return &v
+}
+
+// EmbeddedSIMDeviceStateValuePInstalling returns a pointer to EmbeddedSIMDeviceStateValueVInstalling
+func EmbeddedSIMDeviceStateValuePInstalling() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVInstalling
+ return &v
+}
+
+// EmbeddedSIMDeviceStateValuePInstalled returns a pointer to EmbeddedSIMDeviceStateValueVInstalled
+func EmbeddedSIMDeviceStateValuePInstalled() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVInstalled
+ return &v
+}
+
+// EmbeddedSIMDeviceStateValuePDeleting returns a pointer to EmbeddedSIMDeviceStateValueVDeleting
+func EmbeddedSIMDeviceStateValuePDeleting() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVDeleting
+ return &v
+}
+
+// EmbeddedSIMDeviceStateValuePError returns a pointer to EmbeddedSIMDeviceStateValueVError
+func EmbeddedSIMDeviceStateValuePError() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVError
+ return &v
+}
+
+// EmbeddedSIMDeviceStateValuePDeleted returns a pointer to EmbeddedSIMDeviceStateValueVDeleted
+func EmbeddedSIMDeviceStateValuePDeleted() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVDeleted
+ return &v
+}
+
+// EmbeddedSIMDeviceStateValuePRemovedByUser returns a pointer to EmbeddedSIMDeviceStateValueVRemovedByUser
+func EmbeddedSIMDeviceStateValuePRemovedByUser() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVRemovedByUser
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EmployeeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmployeeModel.go
new file mode 100644
index 00000000..bd44c6fb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmployeeModel.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 *time.Time `json:"employmentDate,omitempty"`
+ // TerminationDate undocumented
+ TerminationDate *time.Time `json:"terminationDate,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // BirthDate undocumented
+ BirthDate *time.Time `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/matterbridge/msgraph.go/beta/EmployeeRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmployeeRequest.go
new file mode 100644
index 00000000..d6b2b2e9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EmployeeRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Picture collection
+func (r *EmployeePictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/EnablementEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EnablementEnum.go
new file mode 100644
index 00000000..39726fb5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EnablementEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Enablement undocumented
+type Enablement int
+
+const (
+ // EnablementVNotConfigured undocumented
+ EnablementVNotConfigured Enablement = 0
+ // EnablementVEnabled undocumented
+ EnablementVEnabled Enablement = 1
+ // EnablementVDisabled undocumented
+ EnablementVDisabled Enablement = 2
+)
+
+// EnablementPNotConfigured returns a pointer to EnablementVNotConfigured
+func EnablementPNotConfigured() *Enablement {
+ v := EnablementVNotConfigured
+ return &v
+}
+
+// EnablementPEnabled returns a pointer to EnablementVEnabled
+func EnablementPEnabled() *Enablement {
+ v := EnablementVEnabled
+ return &v
+}
+
+// EnablementPDisabled returns a pointer to EnablementVDisabled
+func EnablementPDisabled() *Enablement {
+ v := EnablementVDisabled
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EncryptContentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EncryptContentModel.go
new file mode 100644
index 00000000..9194d28e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EncryptContentModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithEnum.go
new file mode 100644
index 00000000..e89ade59
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EncryptWith undocumented
+type EncryptWith int
+
+const (
+ // EncryptWithVTemplate undocumented
+ EncryptWithVTemplate EncryptWith = 0
+ // EncryptWithVUserDefinedRights undocumented
+ EncryptWithVUserDefinedRights EncryptWith = 1
+)
+
+// EncryptWithPTemplate returns a pointer to EncryptWithVTemplate
+func EncryptWithPTemplate() *EncryptWith {
+ v := EncryptWithVTemplate
+ return &v
+}
+
+// EncryptWithPUserDefinedRights returns a pointer to EncryptWithVUserDefinedRights
+func EncryptWithPUserDefinedRights() *EncryptWith {
+ v := EncryptWithVUserDefinedRights
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithTemplateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithTemplateModel.go
new file mode 100644
index 00000000..5a29cf2c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithTemplateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithUserDefinedRightsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithUserDefinedRightsModel.go
new file mode 100644
index 00000000..c8c99ee6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithUserDefinedRightsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/EncryptionReadinessStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EncryptionReadinessStateEnum.go
new file mode 100644
index 00000000..22be9eb2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EncryptionReadinessStateEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EncryptionReadinessState undocumented
+type EncryptionReadinessState int
+
+const (
+ // EncryptionReadinessStateVNotReady undocumented
+ EncryptionReadinessStateVNotReady EncryptionReadinessState = 0
+ // EncryptionReadinessStateVReady undocumented
+ EncryptionReadinessStateVReady EncryptionReadinessState = 1
+)
+
+// EncryptionReadinessStatePNotReady returns a pointer to EncryptionReadinessStateVNotReady
+func EncryptionReadinessStatePNotReady() *EncryptionReadinessState {
+ v := EncryptionReadinessStateVNotReady
+ return &v
+}
+
+// EncryptionReadinessStatePReady returns a pointer to EncryptionReadinessStateVReady
+func EncryptionReadinessStatePReady() *EncryptionReadinessState {
+ v := EncryptionReadinessStateVReady
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EncryptionReportPolicyDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EncryptionReportPolicyDetailsModel.go
new file mode 100644
index 00000000..64c7282a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EncryptionReportPolicyDetailsModel.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/matterbridge/msgraph.go/beta/EncryptionStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EncryptionStateEnum.go
new file mode 100644
index 00000000..65d52cea
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EncryptionStateEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EncryptionState undocumented
+type EncryptionState int
+
+const (
+ // EncryptionStateVNotEncrypted undocumented
+ EncryptionStateVNotEncrypted EncryptionState = 0
+ // EncryptionStateVEncrypted undocumented
+ EncryptionStateVEncrypted EncryptionState = 1
+)
+
+// EncryptionStatePNotEncrypted returns a pointer to EncryptionStateVNotEncrypted
+func EncryptionStatePNotEncrypted() *EncryptionState {
+ v := EncryptionStateVNotEncrypted
+ return &v
+}
+
+// EncryptionStatePEncrypted returns a pointer to EncryptionStateVEncrypted
+func EncryptionStatePEncrypted() *EncryptionState {
+ v := EncryptionStateVEncrypted
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EndpointModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EndpointModel.go
new file mode 100644
index 00000000..91b91c20
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EndpointModel.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/matterbridge/msgraph.go/beta/EndpointRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EndpointRequest.go
new file mode 100644
index 00000000..2565686b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EndpointRequest.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/matterbridge/msgraph.go/beta/EndpointTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EndpointTypeEnum.go
new file mode 100644
index 00000000..ac5c8e41
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EndpointTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EndpointType undocumented
+type EndpointType int
+
+const (
+ // EndpointTypeVDefault undocumented
+ EndpointTypeVDefault EndpointType = 0
+ // EndpointTypeVVoicemail undocumented
+ EndpointTypeVVoicemail EndpointType = 1
+ // EndpointTypeVSkypeForBusiness undocumented
+ EndpointTypeVSkypeForBusiness EndpointType = 2
+ // EndpointTypeVSkypeForBusinessVoipPhone undocumented
+ EndpointTypeVSkypeForBusinessVoipPhone EndpointType = 3
+ // EndpointTypeVUnknownFutureValue undocumented
+ EndpointTypeVUnknownFutureValue EndpointType = 4
+)
+
+// EndpointTypePDefault returns a pointer to EndpointTypeVDefault
+func EndpointTypePDefault() *EndpointType {
+ v := EndpointTypeVDefault
+ return &v
+}
+
+// EndpointTypePVoicemail returns a pointer to EndpointTypeVVoicemail
+func EndpointTypePVoicemail() *EndpointType {
+ v := EndpointTypeVVoicemail
+ return &v
+}
+
+// EndpointTypePSkypeForBusiness returns a pointer to EndpointTypeVSkypeForBusiness
+func EndpointTypePSkypeForBusiness() *EndpointType {
+ v := EndpointTypeVSkypeForBusiness
+ return &v
+}
+
+// EndpointTypePSkypeForBusinessVoipPhone returns a pointer to EndpointTypeVSkypeForBusinessVoipPhone
+func EndpointTypePSkypeForBusinessVoipPhone() *EndpointType {
+ v := EndpointTypeVSkypeForBusinessVoipPhone
+ return &v
+}
+
+// EndpointTypePUnknownFutureValue returns a pointer to EndpointTypeVUnknownFutureValue
+func EndpointTypePUnknownFutureValue() *EndpointType {
+ v := EndpointTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentConfigurationAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentConfigurationAssignmentModel.go
new file mode 100644
index 00000000..e02725db
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentConfigurationAssignmentModel.go
@@ -0,0 +1,15 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentConfigurationAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentConfigurationAssignmentRequest.go
new file mode 100644
index 00000000..041fb9b8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentConfigurationAssignmentRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileAction.go
new file mode 100644
index 00000000..a01ff532
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileAction.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EnrollmentProfileSetDefaultProfileRequestParameter undocumented
+type EnrollmentProfileSetDefaultProfileRequestParameter struct {
+}
+
+// EnrollmentProfileUpdateDeviceProfileAssignmentRequestParameter undocumented
+type EnrollmentProfileUpdateDeviceProfileAssignmentRequestParameter struct {
+ // DeviceIDs undocumented
+ DeviceIDs []string `json:"deviceIds,omitempty"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/EnrollmentProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileModel.go
new file mode 100644
index 00000000..852460a1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileRequest.go
new file mode 100644
index 00000000..8e52004d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentRestrictionsConfigurationPolicySetItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentRestrictionsConfigurationPolicySetItemModel.go
new file mode 100644
index 00000000..c098ce01
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentRestrictionsConfigurationPolicySetItemModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentStateEnum.go
new file mode 100644
index 00000000..1f29db2f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EnrollmentState undocumented
+type EnrollmentState int
+
+const (
+ // EnrollmentStateVUnknown undocumented
+ EnrollmentStateVUnknown EnrollmentState = 0
+ // EnrollmentStateVEnrolled undocumented
+ EnrollmentStateVEnrolled EnrollmentState = 1
+ // EnrollmentStateVPendingReset undocumented
+ EnrollmentStateVPendingReset EnrollmentState = 2
+ // EnrollmentStateVFailed undocumented
+ EnrollmentStateVFailed EnrollmentState = 3
+ // EnrollmentStateVNotContacted undocumented
+ EnrollmentStateVNotContacted EnrollmentState = 4
+ // EnrollmentStateVBlocked undocumented
+ EnrollmentStateVBlocked EnrollmentState = 5
+)
+
+// EnrollmentStatePUnknown returns a pointer to EnrollmentStateVUnknown
+func EnrollmentStatePUnknown() *EnrollmentState {
+ v := EnrollmentStateVUnknown
+ return &v
+}
+
+// EnrollmentStatePEnrolled returns a pointer to EnrollmentStateVEnrolled
+func EnrollmentStatePEnrolled() *EnrollmentState {
+ v := EnrollmentStateVEnrolled
+ return &v
+}
+
+// EnrollmentStatePPendingReset returns a pointer to EnrollmentStateVPendingReset
+func EnrollmentStatePPendingReset() *EnrollmentState {
+ v := EnrollmentStateVPendingReset
+ return &v
+}
+
+// EnrollmentStatePFailed returns a pointer to EnrollmentStateVFailed
+func EnrollmentStatePFailed() *EnrollmentState {
+ v := EnrollmentStateVFailed
+ return &v
+}
+
+// EnrollmentStatePNotContacted returns a pointer to EnrollmentStateVNotContacted
+func EnrollmentStatePNotContacted() *EnrollmentState {
+ v := EnrollmentStateVNotContacted
+ return &v
+}
+
+// EnrollmentStatePBlocked returns a pointer to EnrollmentStateVBlocked
+func EnrollmentStatePBlocked() *EnrollmentState {
+ v := EnrollmentStateVBlocked
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentTroubleshootingEventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentTroubleshootingEventModel.go
new file mode 100644
index 00000000..d4154aff
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentTroubleshootingEventModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/EnterpriseCodeSigningCertificateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EnterpriseCodeSigningCertificateModel.go
new file mode 100644
index 00000000..e4c7f6a6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EnterpriseCodeSigningCertificateModel.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/matterbridge/msgraph.go/beta/EnterpriseCodeSigningCertificateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EnterpriseCodeSigningCertificateRequest.go
new file mode 100644
index 00000000..7489fb8b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EnterpriseCodeSigningCertificateRequest.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/matterbridge/msgraph.go/beta/EntitlementManagementModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EntitlementManagementModel.go
new file mode 100644
index 00000000..066ca91d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EntitlementManagementModel.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/matterbridge/msgraph.go/beta/EntitlementManagementRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EntitlementManagementRequest.go
new file mode 100644
index 00000000..d2601fee
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EntitlementManagementRequest.go
@@ -0,0 +1,891 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentPolicy collection
+func (r *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentRequestObject collection
+func (r *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentResourceRole collection
+func (r *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentResourceRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignment collection
+func (r *EntitlementManagementAccessPackageAssignmentsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageCatalog collection
+func (r *EntitlementManagementAccessPackageCatalogsCollectionRequest) Get(ctx context.Context) ([]AccessPackageCatalog, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceRequestObject collection
+func (r *EntitlementManagementAccessPackageResourceRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceRoleScope collection
+func (r *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRoleScope, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResource collection
+func (r *EntitlementManagementAccessPackageResourcesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackage collection
+func (r *EntitlementManagementAccessPackagesCollectionRequest) Get(ctx context.Context) ([]AccessPackage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/EntityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EntityModel.go
new file mode 100644
index 00000000..96c93ceb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EntityModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EntityRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EntityRequest.go
new file mode 100644
index 00000000..6ec06098
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EntityRequest.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/matterbridge/msgraph.go/beta/EntitySetNamesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EntitySetNamesModel.go
new file mode 100644
index 00000000..64b7fc42
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EntitySetNamesModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EntitySetNames undocumented
+type EntitySetNames struct {
+ // Object is the base model of EntitySetNames
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EntityTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EntityTypeEnum.go
new file mode 100644
index 00000000..037283e0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EntityTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EntityType undocumented
+type EntityType int
+
+const (
+ // EntityTypeVEvent undocumented
+ EntityTypeVEvent EntityType = 0
+ // EntityTypeVMessage undocumented
+ EntityTypeVMessage EntityType = 1
+ // EntityTypeVDriveItem undocumented
+ EntityTypeVDriveItem EntityType = 2
+ // EntityTypeVExternalFile undocumented
+ EntityTypeVExternalFile EntityType = 3
+ // EntityTypeVExternalItem undocumented
+ EntityTypeVExternalItem EntityType = 4
+)
+
+// EntityTypePEvent returns a pointer to EntityTypeVEvent
+func EntityTypePEvent() *EntityType {
+ v := EntityTypeVEvent
+ return &v
+}
+
+// EntityTypePMessage returns a pointer to EntityTypeVMessage
+func EntityTypePMessage() *EntityType {
+ v := EntityTypeVMessage
+ return &v
+}
+
+// EntityTypePDriveItem returns a pointer to EntityTypeVDriveItem
+func EntityTypePDriveItem() *EntityType {
+ v := EntityTypeVDriveItem
+ return &v
+}
+
+// EntityTypePExternalFile returns a pointer to EntityTypeVExternalFile
+func EntityTypePExternalFile() *EntityType {
+ v := EntityTypeVExternalFile
+ return &v
+}
+
+// EntityTypePExternalItem returns a pointer to EntityTypeVExternalItem
+func EntityTypePExternalItem() *EntityType {
+ v := EntityTypeVExternalItem
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EntryExportStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EntryExportStatusEnum.go
new file mode 100644
index 00000000..dc2e7fc4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EntryExportStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EntryExportStatus undocumented
+type EntryExportStatus int
+
+const (
+ // EntryExportStatusVNoop undocumented
+ EntryExportStatusVNoop EntryExportStatus = 0
+ // EntryExportStatusVSuccess undocumented
+ EntryExportStatusVSuccess EntryExportStatus = 1
+ // EntryExportStatusVRetryableError undocumented
+ EntryExportStatusVRetryableError EntryExportStatus = 2
+ // EntryExportStatusVPermanentError undocumented
+ EntryExportStatusVPermanentError EntryExportStatus = 3
+ // EntryExportStatusVError undocumented
+ EntryExportStatusVError EntryExportStatus = 4
+)
+
+// EntryExportStatusPNoop returns a pointer to EntryExportStatusVNoop
+func EntryExportStatusPNoop() *EntryExportStatus {
+ v := EntryExportStatusVNoop
+ return &v
+}
+
+// EntryExportStatusPSuccess returns a pointer to EntryExportStatusVSuccess
+func EntryExportStatusPSuccess() *EntryExportStatus {
+ v := EntryExportStatusVSuccess
+ return &v
+}
+
+// EntryExportStatusPRetryableError returns a pointer to EntryExportStatusVRetryableError
+func EntryExportStatusPRetryableError() *EntryExportStatus {
+ v := EntryExportStatusVRetryableError
+ return &v
+}
+
+// EntryExportStatusPPermanentError returns a pointer to EntryExportStatusVPermanentError
+func EntryExportStatusPPermanentError() *EntryExportStatus {
+ v := EntryExportStatusVPermanentError
+ return &v
+}
+
+// EntryExportStatusPError returns a pointer to EntryExportStatusVError
+func EntryExportStatusPError() *EntryExportStatus {
+ v := EntryExportStatusVError
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EntrySyncOperationEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EntrySyncOperationEnum.go
new file mode 100644
index 00000000..07347d89
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EntrySyncOperationEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EntrySyncOperation undocumented
+type EntrySyncOperation int
+
+const (
+ // EntrySyncOperationVNone undocumented
+ EntrySyncOperationVNone EntrySyncOperation = 0
+ // EntrySyncOperationVAdd undocumented
+ EntrySyncOperationVAdd EntrySyncOperation = 1
+ // EntrySyncOperationVDelete undocumented
+ EntrySyncOperationVDelete EntrySyncOperation = 2
+ // EntrySyncOperationVUpdate undocumented
+ EntrySyncOperationVUpdate EntrySyncOperation = 3
+)
+
+// EntrySyncOperationPNone returns a pointer to EntrySyncOperationVNone
+func EntrySyncOperationPNone() *EntrySyncOperation {
+ v := EntrySyncOperationVNone
+ return &v
+}
+
+// EntrySyncOperationPAdd returns a pointer to EntrySyncOperationVAdd
+func EntrySyncOperationPAdd() *EntrySyncOperation {
+ v := EntrySyncOperationVAdd
+ return &v
+}
+
+// EntrySyncOperationPDelete returns a pointer to EntrySyncOperationVDelete
+func EntrySyncOperationPDelete() *EntrySyncOperation {
+ v := EntrySyncOperationVDelete
+ return &v
+}
+
+// EntrySyncOperationPUpdate returns a pointer to EntrySyncOperationVUpdate
+func EntrySyncOperationPUpdate() *EntrySyncOperation {
+ v := EntrySyncOperationVUpdate
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ErrorCodeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ErrorCodeEnum.go
new file mode 100644
index 00000000..ea9b0004
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ErrorCodeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ErrorCode undocumented
+type ErrorCode int
+
+const (
+ // ErrorCodeVNoError undocumented
+ ErrorCodeVNoError ErrorCode = 0
+ // ErrorCodeVUnauthorized undocumented
+ ErrorCodeVUnauthorized ErrorCode = 1
+ // ErrorCodeVNotFound undocumented
+ ErrorCodeVNotFound ErrorCode = 2
+ // ErrorCodeVDeleted undocumented
+ ErrorCodeVDeleted ErrorCode = 3
+)
+
+// ErrorCodePNoError returns a pointer to ErrorCodeVNoError
+func ErrorCodePNoError() *ErrorCode {
+ v := ErrorCodeVNoError
+ return &v
+}
+
+// ErrorCodePUnauthorized returns a pointer to ErrorCodeVUnauthorized
+func ErrorCodePUnauthorized() *ErrorCode {
+ v := ErrorCodeVUnauthorized
+ return &v
+}
+
+// ErrorCodePNotFound returns a pointer to ErrorCodeVNotFound
+func ErrorCodePNotFound() *ErrorCode {
+ v := ErrorCodeVNotFound
+ return &v
+}
+
+// ErrorCodePDeleted returns a pointer to ErrorCodeVDeleted
+func ErrorCodePDeleted() *ErrorCode {
+ v := ErrorCodeVDeleted
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ErrorDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ErrorDetailModel.go
new file mode 100644
index 00000000..bcf9968e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ErrorDetailModel.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/matterbridge/msgraph.go/beta/EvaluateDynamicMembershipResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateDynamicMembershipResultModel.go
new file mode 100644
index 00000000..d8b94179
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateDynamicMembershipResultModel.go
@@ -0,0 +1,15 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResponseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResponseModel.go
new file mode 100644
index 00000000..bbdaa41d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResponseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EvaluateLabelJobResponse undocumented
+type EvaluateLabelJobResponse struct {
+ // JobResponseBase is the base model of EvaluateLabelJobResponse
+ JobResponseBase
+ // Result undocumented
+ Result *EvaluateLabelJobResultGroup `json:"result,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResultGroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResultGroupModel.go
new file mode 100644
index 00000000..bd908895
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResultGroupModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResultModel.go
new file mode 100644
index 00000000..cf3e5411
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResultModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelsAndPoliciesJobResponseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelsAndPoliciesJobResponseModel.go
new file mode 100644
index 00000000..f7c72f91
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelsAndPoliciesJobResponseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EvaluateLabelsAndPoliciesJobResponse undocumented
+type EvaluateLabelsAndPoliciesJobResponse struct {
+ // JobResponseBase is the base model of EvaluateLabelsAndPoliciesJobResponse
+ JobResponseBase
+ // Result undocumented
+ Result *EvaluateLabelsAndPoliciesResult `json:"result,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelsAndPoliciesResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelsAndPoliciesResultModel.go
new file mode 100644
index 00000000..ea9cb4d7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelsAndPoliciesResultModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateSensitivityLabelsRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateSensitivityLabelsRequestObjectModel.go
new file mode 100644
index 00000000..73843983
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateSensitivityLabelsRequestObjectModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/EventAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/EventAction.go
new file mode 100644
index 00000000..40366c79
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EventAction.go
@@ -0,0 +1,239 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageModel.go
new file mode 100644
index 00000000..76176931
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequest.go
new file mode 100644
index 00000000..95dd4c37
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/EventMessageRequestObjectAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectAction.go
new file mode 100644
index 00000000..be1f8af6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectAction.go
@@ -0,0 +1,111 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/EventMessageRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectModel.go
new file mode 100644
index 00000000..acd152ea
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectRequest.go
new file mode 100644
index 00000000..16b6b7a7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageResponseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageResponseModel.go
new file mode 100644
index 00000000..48ee9c02
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageResponseModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/EventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EventModel.go
new file mode 100644
index 00000000..17389b48
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EventModel.go
@@ -0,0 +1,89 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EventRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EventRequest.go
new file mode 100644
index 00000000..5b6cd264
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EventRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Attachment collection
+func (r *EventAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *EventExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Event collection
+func (r *EventInstancesCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *EventMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *EventSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EventTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EventTypeEnum.go
new file mode 100644
index 00000000..975d327f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/EventTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EventType undocumented
+type EventType int
+
+const (
+ // EventTypeVSingleInstance undocumented
+ EventTypeVSingleInstance EventType = 0
+ // EventTypeVOccurrence undocumented
+ EventTypeVOccurrence EventType = 1
+ // EventTypeVException undocumented
+ EventTypeVException EventType = 2
+ // EventTypeVSeriesMaster undocumented
+ EventTypeVSeriesMaster EventType = 3
+)
+
+// EventTypePSingleInstance returns a pointer to EventTypeVSingleInstance
+func EventTypePSingleInstance() *EventType {
+ v := EventTypeVSingleInstance
+ return &v
+}
+
+// EventTypePOccurrence returns a pointer to EventTypeVOccurrence
+func EventTypePOccurrence() *EventType {
+ v := EventTypeVOccurrence
+ return &v
+}
+
+// EventTypePException returns a pointer to EventTypeVException
+func EventTypePException() *EventType {
+ v := EventTypeVException
+ return &v
+}
+
+// EventTypePSeriesMaster returns a pointer to EventTypeVSeriesMaster
+func EventTypePSeriesMaster() *EventType {
+ v := EventTypeVSeriesMaster
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchClassificationRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchClassificationRequestObjectModel.go
new file mode 100644
index 00000000..933dcd73
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchClassificationRequestObjectModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchClassificationResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchClassificationResultModel.go
new file mode 100644
index 00000000..f5725d1f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchClassificationResultModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreAction.go
new file mode 100644
index 00000000..67bccbe8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreAction.go
@@ -0,0 +1,104 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]string, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreModel.go
new file mode 100644
index 00000000..d5a41493
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreRequest.go
new file mode 100644
index 00000000..a05f516a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreRequest.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/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ExactMatchSession collection
+func (r *ExactMatchDataStoreSessionsCollectionRequest) Get(ctx context.Context) ([]ExactMatchSession, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchJobBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchJobBaseModel.go
new file mode 100644
index 00000000..4d77efe6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchJobBaseModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchLookupJobModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchLookupJobModel.go
new file mode 100644
index 00000000..2679612a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchLookupJobModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchLookupJobRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchLookupJobRequest.go
new file mode 100644
index 00000000..2b8bba60
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchLookupJobRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for LookupResultRow collection
+func (r *ExactMatchLookupJobMatchingRowsCollectionRequest) Get(ctx context.Context) ([]LookupResultRow, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionAction.go
new file mode 100644
index 00000000..a2f7f71a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionAction.go
@@ -0,0 +1,96 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ExactMatchSessionCancelRequestParameter undocumented
+type ExactMatchSessionCancelRequestParameter struct {
+}
+
+// ExactMatchSessionCommitRequestParameter undocumented
+type ExactMatchSessionCommitRequestParameter struct {
+}
+
+// ExactMatchSessionRenewRequestParameter undocumented
+type ExactMatchSessionRenewRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/ExactMatchSessionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionModel.go
new file mode 100644
index 00000000..7b110ff2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionRequest.go
new file mode 100644
index 00000000..2e27695d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/ExactMatchUploadAgentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchUploadAgentModel.go
new file mode 100644
index 00000000..c18132ec
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchUploadAgentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/ExactMatchUploadAgentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchUploadAgentRequest.go
new file mode 100644
index 00000000..45b390a2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchUploadAgentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExchangeIDFormatEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExchangeIDFormatEnum.go
new file mode 100644
index 00000000..3aa5279e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExchangeIDFormatEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExchangeIDFormat undocumented
+type ExchangeIDFormat int
+
+const (
+ // ExchangeIDFormatVEntryID undocumented
+ ExchangeIDFormatVEntryID ExchangeIDFormat = 0
+ // ExchangeIDFormatVEwsID undocumented
+ ExchangeIDFormatVEwsID ExchangeIDFormat = 1
+ // ExchangeIDFormatVImmutableEntryID undocumented
+ ExchangeIDFormatVImmutableEntryID ExchangeIDFormat = 2
+ // ExchangeIDFormatVRestID undocumented
+ ExchangeIDFormatVRestID ExchangeIDFormat = 3
+ // ExchangeIDFormatVRestImmutableEntryID undocumented
+ ExchangeIDFormatVRestImmutableEntryID ExchangeIDFormat = 4
+)
+
+// ExchangeIDFormatPEntryID returns a pointer to ExchangeIDFormatVEntryID
+func ExchangeIDFormatPEntryID() *ExchangeIDFormat {
+ v := ExchangeIDFormatVEntryID
+ return &v
+}
+
+// ExchangeIDFormatPEwsID returns a pointer to ExchangeIDFormatVEwsID
+func ExchangeIDFormatPEwsID() *ExchangeIDFormat {
+ v := ExchangeIDFormatVEwsID
+ return &v
+}
+
+// ExchangeIDFormatPImmutableEntryID returns a pointer to ExchangeIDFormatVImmutableEntryID
+func ExchangeIDFormatPImmutableEntryID() *ExchangeIDFormat {
+ v := ExchangeIDFormatVImmutableEntryID
+ return &v
+}
+
+// ExchangeIDFormatPRestID returns a pointer to ExchangeIDFormatVRestID
+func ExchangeIDFormatPRestID() *ExchangeIDFormat {
+ v := ExchangeIDFormatVRestID
+ return &v
+}
+
+// ExchangeIDFormatPRestImmutableEntryID returns a pointer to ExchangeIDFormatVRestImmutableEntryID
+func ExchangeIDFormatPRestImmutableEntryID() *ExchangeIDFormat {
+ v := ExchangeIDFormatVRestImmutableEntryID
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExcludedAppsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExcludedAppsModel.go
new file mode 100644
index 00000000..2d4158b4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExcludedAppsModel.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/matterbridge/msgraph.go/beta/ExclusionGroupAssignmentTargetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExclusionGroupAssignmentTargetModel.go
new file mode 100644
index 00000000..4df756fa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExclusionGroupAssignmentTargetModel.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/matterbridge/msgraph.go/beta/ExpressionEvaluationDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExpressionEvaluationDetailsModel.go
new file mode 100644
index 00000000..ac17f9f2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExpressionEvaluationDetailsModel.go
@@ -0,0 +1,17 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExpressionInputObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExpressionInputObjectModel.go
new file mode 100644
index 00000000..60108c9c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExpressionInputObjectModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ExtendedKeyUsageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExtendedKeyUsageModel.go
new file mode 100644
index 00000000..807a8d04
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExtendedKeyUsageModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExtendedPlacePropertiesModelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExtendedPlacePropertiesModelModel.go
new file mode 100644
index 00000000..c2b67a17
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExtendedPlacePropertiesModelModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ExtensionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionModel.go
new file mode 100644
index 00000000..30971fcd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Extension undocumented
+type Extension struct {
+ // Entity is the base model of Extension
+ Entity
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionPropertyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionPropertyModel.go
new file mode 100644
index 00000000..749b4634
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionPropertyModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionPropertyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionPropertyRequest.go
new file mode 100644
index 00000000..346cd271
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionPropertyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/ExtensionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionRequest.go
new file mode 100644
index 00000000..6564e995
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionSchemaPropertyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionSchemaPropertyModel.go
new file mode 100644
index 00000000..5e49b19c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionSchemaPropertyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ExternalAudienceScopeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalAudienceScopeEnum.go
new file mode 100644
index 00000000..bf36edd2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalAudienceScopeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExternalAudienceScope undocumented
+type ExternalAudienceScope int
+
+const (
+ // ExternalAudienceScopeVNone undocumented
+ ExternalAudienceScopeVNone ExternalAudienceScope = 0
+ // ExternalAudienceScopeVContactsOnly undocumented
+ ExternalAudienceScopeVContactsOnly ExternalAudienceScope = 1
+ // ExternalAudienceScopeVAll undocumented
+ ExternalAudienceScopeVAll ExternalAudienceScope = 2
+)
+
+// ExternalAudienceScopePNone returns a pointer to ExternalAudienceScopeVNone
+func ExternalAudienceScopePNone() *ExternalAudienceScope {
+ v := ExternalAudienceScopeVNone
+ return &v
+}
+
+// ExternalAudienceScopePContactsOnly returns a pointer to ExternalAudienceScopeVContactsOnly
+func ExternalAudienceScopePContactsOnly() *ExternalAudienceScope {
+ v := ExternalAudienceScopeVContactsOnly
+ return &v
+}
+
+// ExternalAudienceScopePAll returns a pointer to ExternalAudienceScopeVAll
+func ExternalAudienceScopePAll() *ExternalAudienceScope {
+ v := ExternalAudienceScopeVAll
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExternalConnectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalConnectionModel.go
new file mode 100644
index 00000000..5f0f56ab
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalConnectionModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExternalConnectionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalConnectionRequest.go
new file mode 100644
index 00000000..9d76e081
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalConnectionRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ExternalItem collection
+func (r *ExternalConnectionItemsCollectionRequest) Get(ctx context.Context) ([]ExternalItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ConnectionOperation collection
+func (r *ExternalConnectionOperationsCollectionRequest) Get(ctx context.Context) ([]ConnectionOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ExternalFileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalFileModel.go
new file mode 100644
index 00000000..ebf82e1d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalFileModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExternalItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalItemModel.go
new file mode 100644
index 00000000..d785bd9c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalItemModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExternalItemRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalItemRequest.go
new file mode 100644
index 00000000..91359fe5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalItemRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/ExternalLinkModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalLinkModel.go
new file mode 100644
index 00000000..bbf90ed4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalLinkModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ExternalModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalModel.go
new file mode 100644
index 00000000..0b668b10
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// External undocumented
+type External struct {
+ // Entity is the base model of External
+ Entity
+ // Connections undocumented
+ Connections []ExternalConnection `json:"connections,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExternalRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalRequest.go
new file mode 100644
index 00000000..5bb6cd4e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ExternalRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ExternalConnection collection
+func (r *ExternalConnectionsCollectionRequest) Get(ctx context.Context) ([]ExternalConnection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FeatureRolloutPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FeatureRolloutPolicyModel.go
new file mode 100644
index 00000000..5940567a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FeatureRolloutPolicyModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FeatureRolloutPolicyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/FeatureRolloutPolicyRequest.go
new file mode 100644
index 00000000..eb21ba70
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FeatureRolloutPolicyRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *FeatureRolloutPolicyAppliesToCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/FeatureTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/FeatureTypeEnum.go
new file mode 100644
index 00000000..40a26a9c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FeatureTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FeatureType undocumented
+type FeatureType int
+
+const (
+ // FeatureTypeVRegistration undocumented
+ FeatureTypeVRegistration FeatureType = 0
+ // FeatureTypeVReset undocumented
+ FeatureTypeVReset FeatureType = 1
+ // FeatureTypeVUnknownFutureValue undocumented
+ FeatureTypeVUnknownFutureValue FeatureType = 2
+)
+
+// FeatureTypePRegistration returns a pointer to FeatureTypeVRegistration
+func FeatureTypePRegistration() *FeatureType {
+ v := FeatureTypeVRegistration
+ return &v
+}
+
+// FeatureTypePReset returns a pointer to FeatureTypeVReset
+func FeatureTypePReset() *FeatureType {
+ v := FeatureTypeVReset
+ return &v
+}
+
+// FeatureTypePUnknownFutureValue returns a pointer to FeatureTypeVUnknownFutureValue
+func FeatureTypePUnknownFutureValue() *FeatureType {
+ v := FeatureTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FeatureUsageDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FeatureUsageDetailModel.go
new file mode 100644
index 00000000..19b77a4c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FeatureUsageDetailModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/FieldValueSetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FieldValueSetModel.go
new file mode 100644
index 00000000..23d4cfd1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FieldValueSetModel.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/matterbridge/msgraph.go/beta/FieldValueSetRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/FieldValueSetRequest.go
new file mode 100644
index 00000000..94498be5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FieldValueSetRequest.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/matterbridge/msgraph.go/beta/FileAssessmentRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FileAssessmentRequestObjectModel.go
new file mode 100644
index 00000000..46fe71ca
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FileAssessmentRequestObjectModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FileAttachmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FileAttachmentModel.go
new file mode 100644
index 00000000..4d4774bf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FileAttachmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FileClassificationRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FileClassificationRequestObjectModel.go
new file mode 100644
index 00000000..a0fb98db
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FileClassificationRequestObjectModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FileClassificationRequestObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/FileClassificationRequestObjectRequest.go
new file mode 100644
index 00000000..d2736da6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FileClassificationRequestObjectRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FileEncryptionInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FileEncryptionInfoModel.go
new file mode 100644
index 00000000..510a1ef1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FileEncryptionInfoModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FileHashModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FileHashModel.go
new file mode 100644
index 00000000..f1a6dbb5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FileHashModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FileHashTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/FileHashTypeEnum.go
new file mode 100644
index 00000000..f21c9d73
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FileHashTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FileHashType undocumented
+type FileHashType int
+
+const (
+ // FileHashTypeVUnknown undocumented
+ FileHashTypeVUnknown FileHashType = 0
+ // FileHashTypeVSha1 undocumented
+ FileHashTypeVSha1 FileHashType = 1
+ // FileHashTypeVSha256 undocumented
+ FileHashTypeVSha256 FileHashType = 2
+ // FileHashTypeVMd5 undocumented
+ FileHashTypeVMd5 FileHashType = 3
+ // FileHashTypeVAuthenticodeHash256 undocumented
+ FileHashTypeVAuthenticodeHash256 FileHashType = 4
+ // FileHashTypeVLsHash undocumented
+ FileHashTypeVLsHash FileHashType = 5
+ // FileHashTypeVCtph undocumented
+ FileHashTypeVCtph FileHashType = 6
+ // FileHashTypeVUnknownFutureValue undocumented
+ FileHashTypeVUnknownFutureValue FileHashType = 127
+)
+
+// FileHashTypePUnknown returns a pointer to FileHashTypeVUnknown
+func FileHashTypePUnknown() *FileHashType {
+ v := FileHashTypeVUnknown
+ return &v
+}
+
+// FileHashTypePSha1 returns a pointer to FileHashTypeVSha1
+func FileHashTypePSha1() *FileHashType {
+ v := FileHashTypeVSha1
+ return &v
+}
+
+// FileHashTypePSha256 returns a pointer to FileHashTypeVSha256
+func FileHashTypePSha256() *FileHashType {
+ v := FileHashTypeVSha256
+ return &v
+}
+
+// FileHashTypePMd5 returns a pointer to FileHashTypeVMd5
+func FileHashTypePMd5() *FileHashType {
+ v := FileHashTypeVMd5
+ return &v
+}
+
+// FileHashTypePAuthenticodeHash256 returns a pointer to FileHashTypeVAuthenticodeHash256
+func FileHashTypePAuthenticodeHash256() *FileHashType {
+ v := FileHashTypeVAuthenticodeHash256
+ return &v
+}
+
+// FileHashTypePLsHash returns a pointer to FileHashTypeVLsHash
+func FileHashTypePLsHash() *FileHashType {
+ v := FileHashTypeVLsHash
+ return &v
+}
+
+// FileHashTypePCtph returns a pointer to FileHashTypeVCtph
+func FileHashTypePCtph() *FileHashType {
+ v := FileHashTypeVCtph
+ return &v
+}
+
+// FileHashTypePUnknownFutureValue returns a pointer to FileHashTypeVUnknownFutureValue
+func FileHashTypePUnknownFutureValue() *FileHashType {
+ v := FileHashTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FileModel.go
new file mode 100644
index 00000000..5cfe5b17
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FileModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityProfileModel.go
new file mode 100644
index 00000000..f73c3611
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityProfileModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityProfileRequest.go
new file mode 100644
index 00000000..5e0052d2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/FileSecurityStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityStateModel.go
new file mode 100644
index 00000000..a50e2dba
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityStateModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FileSystemInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FileSystemInfoModel.go
new file mode 100644
index 00000000..d0c5713a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FileSystemInfoModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/FileVaultStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/FileVaultStateEnum.go
new file mode 100644
index 00000000..7468b91a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FileVaultStateEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FileVaultState undocumented
+type FileVaultState int
+
+const (
+ // FileVaultStateVSuccess undocumented
+ FileVaultStateVSuccess FileVaultState = 0
+ // FileVaultStateVDriveEncryptedByUser undocumented
+ FileVaultStateVDriveEncryptedByUser FileVaultState = 1
+ // FileVaultStateVUserDeferredEncryption undocumented
+ FileVaultStateVUserDeferredEncryption FileVaultState = 2
+ // FileVaultStateVEscrowNotEnabled undocumented
+ FileVaultStateVEscrowNotEnabled FileVaultState = 4
+)
+
+// FileVaultStatePSuccess returns a pointer to FileVaultStateVSuccess
+func FileVaultStatePSuccess() *FileVaultState {
+ v := FileVaultStateVSuccess
+ return &v
+}
+
+// FileVaultStatePDriveEncryptedByUser returns a pointer to FileVaultStateVDriveEncryptedByUser
+func FileVaultStatePDriveEncryptedByUser() *FileVaultState {
+ v := FileVaultStateVDriveEncryptedByUser
+ return &v
+}
+
+// FileVaultStatePUserDeferredEncryption returns a pointer to FileVaultStateVUserDeferredEncryption
+func FileVaultStatePUserDeferredEncryption() *FileVaultState {
+ v := FileVaultStateVUserDeferredEncryption
+ return &v
+}
+
+// FileVaultStatePEscrowNotEnabled returns a pointer to FileVaultStateVEscrowNotEnabled
+func FileVaultStatePEscrowNotEnabled() *FileVaultState {
+ v := FileVaultStateVEscrowNotEnabled
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FilterClauseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FilterClauseModel.go
new file mode 100644
index 00000000..d4229ab9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FilterClauseModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FilterGroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FilterGroupModel.go
new file mode 100644
index 00000000..6c64ae44
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FilterGroupModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FilterModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FilterModel.go
new file mode 100644
index 00000000..f3396bb8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FilterModel.go
@@ -0,0 +1,15 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FilterOperandModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FilterOperandModel.go
new file mode 100644
index 00000000..b2a6511c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FilterOperandModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FilterOperand undocumented
+type FilterOperand struct {
+ // Object is the base model of FilterOperand
+ Object
+ // Values undocumented
+ Values []string `json:"values,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FilterOperatorSchemaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FilterOperatorSchemaModel.go
new file mode 100644
index 00000000..f60c3a12
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FilterOperatorSchemaModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/FilterOperatorSchemaRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/FilterOperatorSchemaRequest.go
new file mode 100644
index 00000000..a660d5be
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FilterOperatorSchemaRequest.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/matterbridge/msgraph.go/beta/FinancialsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FinancialsModel.go
new file mode 100644
index 00000000..fcae9cab
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FinancialsModel.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/matterbridge/msgraph.go/beta/FinancialsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/FinancialsRequest.go
new file mode 100644
index 00000000..67b0cb83
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FinancialsRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Company collection
+func (r *FinancialsCompaniesCollectionRequest) Get(ctx context.Context) ([]Company, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/FirewallCertificateRevocationListCheckMethodTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/FirewallCertificateRevocationListCheckMethodTypeEnum.go
new file mode 100644
index 00000000..51f2c573
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FirewallCertificateRevocationListCheckMethodTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FirewallCertificateRevocationListCheckMethodType undocumented
+type FirewallCertificateRevocationListCheckMethodType int
+
+const (
+ // FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault undocumented
+ FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault FirewallCertificateRevocationListCheckMethodType = 0
+ // FirewallCertificateRevocationListCheckMethodTypeVNone undocumented
+ FirewallCertificateRevocationListCheckMethodTypeVNone FirewallCertificateRevocationListCheckMethodType = 1
+ // FirewallCertificateRevocationListCheckMethodTypeVAttempt undocumented
+ FirewallCertificateRevocationListCheckMethodTypeVAttempt FirewallCertificateRevocationListCheckMethodType = 2
+ // FirewallCertificateRevocationListCheckMethodTypeVRequire undocumented
+ FirewallCertificateRevocationListCheckMethodTypeVRequire FirewallCertificateRevocationListCheckMethodType = 3
+)
+
+// FirewallCertificateRevocationListCheckMethodTypePDeviceDefault returns a pointer to FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault
+func FirewallCertificateRevocationListCheckMethodTypePDeviceDefault() *FirewallCertificateRevocationListCheckMethodType {
+ v := FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault
+ return &v
+}
+
+// FirewallCertificateRevocationListCheckMethodTypePNone returns a pointer to FirewallCertificateRevocationListCheckMethodTypeVNone
+func FirewallCertificateRevocationListCheckMethodTypePNone() *FirewallCertificateRevocationListCheckMethodType {
+ v := FirewallCertificateRevocationListCheckMethodTypeVNone
+ return &v
+}
+
+// FirewallCertificateRevocationListCheckMethodTypePAttempt returns a pointer to FirewallCertificateRevocationListCheckMethodTypeVAttempt
+func FirewallCertificateRevocationListCheckMethodTypePAttempt() *FirewallCertificateRevocationListCheckMethodType {
+ v := FirewallCertificateRevocationListCheckMethodTypeVAttempt
+ return &v
+}
+
+// FirewallCertificateRevocationListCheckMethodTypePRequire returns a pointer to FirewallCertificateRevocationListCheckMethodTypeVRequire
+func FirewallCertificateRevocationListCheckMethodTypePRequire() *FirewallCertificateRevocationListCheckMethodType {
+ v := FirewallCertificateRevocationListCheckMethodTypeVRequire
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FirewallPacketQueueingMethodTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/FirewallPacketQueueingMethodTypeEnum.go
new file mode 100644
index 00000000..0c4347ac
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FirewallPacketQueueingMethodTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FirewallPacketQueueingMethodType undocumented
+type FirewallPacketQueueingMethodType int
+
+const (
+ // FirewallPacketQueueingMethodTypeVDeviceDefault undocumented
+ FirewallPacketQueueingMethodTypeVDeviceDefault FirewallPacketQueueingMethodType = 0
+ // FirewallPacketQueueingMethodTypeVDisabled undocumented
+ FirewallPacketQueueingMethodTypeVDisabled FirewallPacketQueueingMethodType = 1
+ // FirewallPacketQueueingMethodTypeVQueueInbound undocumented
+ FirewallPacketQueueingMethodTypeVQueueInbound FirewallPacketQueueingMethodType = 2
+ // FirewallPacketQueueingMethodTypeVQueueOutbound undocumented
+ FirewallPacketQueueingMethodTypeVQueueOutbound FirewallPacketQueueingMethodType = 3
+ // FirewallPacketQueueingMethodTypeVQueueBoth undocumented
+ FirewallPacketQueueingMethodTypeVQueueBoth FirewallPacketQueueingMethodType = 4
+)
+
+// FirewallPacketQueueingMethodTypePDeviceDefault returns a pointer to FirewallPacketQueueingMethodTypeVDeviceDefault
+func FirewallPacketQueueingMethodTypePDeviceDefault() *FirewallPacketQueueingMethodType {
+ v := FirewallPacketQueueingMethodTypeVDeviceDefault
+ return &v
+}
+
+// FirewallPacketQueueingMethodTypePDisabled returns a pointer to FirewallPacketQueueingMethodTypeVDisabled
+func FirewallPacketQueueingMethodTypePDisabled() *FirewallPacketQueueingMethodType {
+ v := FirewallPacketQueueingMethodTypeVDisabled
+ return &v
+}
+
+// FirewallPacketQueueingMethodTypePQueueInbound returns a pointer to FirewallPacketQueueingMethodTypeVQueueInbound
+func FirewallPacketQueueingMethodTypePQueueInbound() *FirewallPacketQueueingMethodType {
+ v := FirewallPacketQueueingMethodTypeVQueueInbound
+ return &v
+}
+
+// FirewallPacketQueueingMethodTypePQueueOutbound returns a pointer to FirewallPacketQueueingMethodTypeVQueueOutbound
+func FirewallPacketQueueingMethodTypePQueueOutbound() *FirewallPacketQueueingMethodType {
+ v := FirewallPacketQueueingMethodTypeVQueueOutbound
+ return &v
+}
+
+// FirewallPacketQueueingMethodTypePQueueBoth returns a pointer to FirewallPacketQueueingMethodTypeVQueueBoth
+func FirewallPacketQueueingMethodTypePQueueBoth() *FirewallPacketQueueingMethodType {
+ v := FirewallPacketQueueingMethodTypeVQueueBoth
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FirewallPreSharedKeyEncodingMethodTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/FirewallPreSharedKeyEncodingMethodTypeEnum.go
new file mode 100644
index 00000000..a6bcc5e8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FirewallPreSharedKeyEncodingMethodTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FirewallPreSharedKeyEncodingMethodType undocumented
+type FirewallPreSharedKeyEncodingMethodType int
+
+const (
+ // FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault undocumented
+ FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault FirewallPreSharedKeyEncodingMethodType = 0
+ // FirewallPreSharedKeyEncodingMethodTypeVNone undocumented
+ FirewallPreSharedKeyEncodingMethodTypeVNone FirewallPreSharedKeyEncodingMethodType = 1
+ // FirewallPreSharedKeyEncodingMethodTypeVUtF8 undocumented
+ FirewallPreSharedKeyEncodingMethodTypeVUtF8 FirewallPreSharedKeyEncodingMethodType = 2
+)
+
+// FirewallPreSharedKeyEncodingMethodTypePDeviceDefault returns a pointer to FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault
+func FirewallPreSharedKeyEncodingMethodTypePDeviceDefault() *FirewallPreSharedKeyEncodingMethodType {
+ v := FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault
+ return &v
+}
+
+// FirewallPreSharedKeyEncodingMethodTypePNone returns a pointer to FirewallPreSharedKeyEncodingMethodTypeVNone
+func FirewallPreSharedKeyEncodingMethodTypePNone() *FirewallPreSharedKeyEncodingMethodType {
+ v := FirewallPreSharedKeyEncodingMethodTypeVNone
+ return &v
+}
+
+// FirewallPreSharedKeyEncodingMethodTypePUtF8 returns a pointer to FirewallPreSharedKeyEncodingMethodTypeVUtF8
+func FirewallPreSharedKeyEncodingMethodTypePUtF8() *FirewallPreSharedKeyEncodingMethodType {
+ v := FirewallPreSharedKeyEncodingMethodTypeVUtF8
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FlexSchemaContainerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FlexSchemaContainerModel.go
new file mode 100644
index 00000000..d5cd338b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FlexSchemaContainerModel.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/matterbridge/msgraph.go/beta/FocusActivityStatisticsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FocusActivityStatisticsModel.go
new file mode 100644
index 00000000..3d9ebf27
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FocusActivityStatisticsModel.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/matterbridge/msgraph.go/beta/FolderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FolderModel.go
new file mode 100644
index 00000000..f310c510
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FolderModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FolderProtectionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/FolderProtectionTypeEnum.go
new file mode 100644
index 00000000..d1712fff
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FolderProtectionTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FolderProtectionType undocumented
+type FolderProtectionType int
+
+const (
+ // FolderProtectionTypeVUserDefined undocumented
+ FolderProtectionTypeVUserDefined FolderProtectionType = 0
+ // FolderProtectionTypeVEnable undocumented
+ FolderProtectionTypeVEnable FolderProtectionType = 1
+ // FolderProtectionTypeVAuditMode undocumented
+ FolderProtectionTypeVAuditMode FolderProtectionType = 2
+ // FolderProtectionTypeVBlockDiskModification undocumented
+ FolderProtectionTypeVBlockDiskModification FolderProtectionType = 3
+ // FolderProtectionTypeVAuditDiskModification undocumented
+ FolderProtectionTypeVAuditDiskModification FolderProtectionType = 4
+)
+
+// FolderProtectionTypePUserDefined returns a pointer to FolderProtectionTypeVUserDefined
+func FolderProtectionTypePUserDefined() *FolderProtectionType {
+ v := FolderProtectionTypeVUserDefined
+ return &v
+}
+
+// FolderProtectionTypePEnable returns a pointer to FolderProtectionTypeVEnable
+func FolderProtectionTypePEnable() *FolderProtectionType {
+ v := FolderProtectionTypeVEnable
+ return &v
+}
+
+// FolderProtectionTypePAuditMode returns a pointer to FolderProtectionTypeVAuditMode
+func FolderProtectionTypePAuditMode() *FolderProtectionType {
+ v := FolderProtectionTypeVAuditMode
+ return &v
+}
+
+// FolderProtectionTypePBlockDiskModification returns a pointer to FolderProtectionTypeVBlockDiskModification
+func FolderProtectionTypePBlockDiskModification() *FolderProtectionType {
+ v := FolderProtectionTypeVBlockDiskModification
+ return &v
+}
+
+// FolderProtectionTypePAuditDiskModification returns a pointer to FolderProtectionTypeVAuditDiskModification
+func FolderProtectionTypePAuditDiskModification() *FolderProtectionType {
+ v := FolderProtectionTypeVAuditDiskModification
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FolderViewModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FolderViewModel.go
new file mode 100644
index 00000000..a799fb94
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FolderViewModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/FollowupFlagModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FollowupFlagModel.go
new file mode 100644
index 00000000..933e0fc7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FollowupFlagModel.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/matterbridge/msgraph.go/beta/FollowupFlagStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/FollowupFlagStatusEnum.go
new file mode 100644
index 00000000..b47c3d45
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FollowupFlagStatusEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FollowupFlagStatus undocumented
+type FollowupFlagStatus int
+
+const (
+ // FollowupFlagStatusVNotFlagged undocumented
+ FollowupFlagStatusVNotFlagged FollowupFlagStatus = 0
+ // FollowupFlagStatusVComplete undocumented
+ FollowupFlagStatusVComplete FollowupFlagStatus = 1
+ // FollowupFlagStatusVFlagged undocumented
+ FollowupFlagStatusVFlagged FollowupFlagStatus = 2
+)
+
+// FollowupFlagStatusPNotFlagged returns a pointer to FollowupFlagStatusVNotFlagged
+func FollowupFlagStatusPNotFlagged() *FollowupFlagStatus {
+ v := FollowupFlagStatusVNotFlagged
+ return &v
+}
+
+// FollowupFlagStatusPComplete returns a pointer to FollowupFlagStatusVComplete
+func FollowupFlagStatusPComplete() *FollowupFlagStatus {
+ v := FollowupFlagStatusVComplete
+ return &v
+}
+
+// FollowupFlagStatusPFlagged returns a pointer to FollowupFlagStatusVFlagged
+func FollowupFlagStatusPFlagged() *FollowupFlagStatus {
+ v := FollowupFlagStatusVFlagged
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FreeBusyErrorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FreeBusyErrorModel.go
new file mode 100644
index 00000000..d8a2e464
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FreeBusyErrorModel.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/matterbridge/msgraph.go/beta/FreeBusyStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/FreeBusyStatusEnum.go
new file mode 100644
index 00000000..3f4889ac
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/FreeBusyStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FreeBusyStatus undocumented
+type FreeBusyStatus int
+
+const (
+ // FreeBusyStatusVFree undocumented
+ FreeBusyStatusVFree FreeBusyStatus = 0
+ // FreeBusyStatusVTentative undocumented
+ FreeBusyStatusVTentative FreeBusyStatus = 1
+ // FreeBusyStatusVBusy undocumented
+ FreeBusyStatusVBusy FreeBusyStatus = 2
+ // FreeBusyStatusVOof undocumented
+ FreeBusyStatusVOof FreeBusyStatus = 3
+ // FreeBusyStatusVWorkingElsewhere undocumented
+ FreeBusyStatusVWorkingElsewhere FreeBusyStatus = 4
+ // FreeBusyStatusVUnknown undocumented
+ FreeBusyStatusVUnknown FreeBusyStatus = -1
+)
+
+// FreeBusyStatusPFree returns a pointer to FreeBusyStatusVFree
+func FreeBusyStatusPFree() *FreeBusyStatus {
+ v := FreeBusyStatusVFree
+ return &v
+}
+
+// FreeBusyStatusPTentative returns a pointer to FreeBusyStatusVTentative
+func FreeBusyStatusPTentative() *FreeBusyStatus {
+ v := FreeBusyStatusVTentative
+ return &v
+}
+
+// FreeBusyStatusPBusy returns a pointer to FreeBusyStatusVBusy
+func FreeBusyStatusPBusy() *FreeBusyStatus {
+ v := FreeBusyStatusVBusy
+ return &v
+}
+
+// FreeBusyStatusPOof returns a pointer to FreeBusyStatusVOof
+func FreeBusyStatusPOof() *FreeBusyStatus {
+ v := FreeBusyStatusVOof
+ return &v
+}
+
+// FreeBusyStatusPWorkingElsewhere returns a pointer to FreeBusyStatusVWorkingElsewhere
+func FreeBusyStatusPWorkingElsewhere() *FreeBusyStatus {
+ v := FreeBusyStatusVWorkingElsewhere
+ return &v
+}
+
+// FreeBusyStatusPUnknown returns a pointer to FreeBusyStatusVUnknown
+func FreeBusyStatusPUnknown() *FreeBusyStatus {
+ v := FreeBusyStatusVUnknown
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GeneralLedgerEntryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GeneralLedgerEntryModel.go
new file mode 100644
index 00000000..7f0b0121
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GeneralLedgerEntryModel.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 *time.Time `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/matterbridge/msgraph.go/beta/GeneralLedgerEntryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GeneralLedgerEntryRequest.go
new file mode 100644
index 00000000..95700e05
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GeneralLedgerEntryRequest.go
@@ -0,0 +1,45 @@
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/GenericErrorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GenericErrorModel.go
new file mode 100644
index 00000000..8ecf7672
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GenericErrorModel.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/matterbridge/msgraph.go/beta/GeoCoordinatesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GeoCoordinatesModel.go
new file mode 100644
index 00000000..a5ff16b7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GeoCoordinatesModel.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/matterbridge/msgraph.go/beta/GeolocationColumnModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GeolocationColumnModel.go
new file mode 100644
index 00000000..c1da5fec
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GeolocationColumnModel.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/matterbridge/msgraph.go/beta/GiphyRatingTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/GiphyRatingTypeEnum.go
new file mode 100644
index 00000000..bdbce185
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GiphyRatingTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GiphyRatingType undocumented
+type GiphyRatingType int
+
+const (
+ // GiphyRatingTypeVStrict undocumented
+ GiphyRatingTypeVStrict GiphyRatingType = 0
+ // GiphyRatingTypeVModerate undocumented
+ GiphyRatingTypeVModerate GiphyRatingType = 1
+ // GiphyRatingTypeVUnknownFutureValue undocumented
+ GiphyRatingTypeVUnknownFutureValue GiphyRatingType = 2
+)
+
+// GiphyRatingTypePStrict returns a pointer to GiphyRatingTypeVStrict
+func GiphyRatingTypePStrict() *GiphyRatingType {
+ v := GiphyRatingTypeVStrict
+ return &v
+}
+
+// GiphyRatingTypePModerate returns a pointer to GiphyRatingTypeVModerate
+func GiphyRatingTypePModerate() *GiphyRatingType {
+ v := GiphyRatingTypeVModerate
+ return &v
+}
+
+// GiphyRatingTypePUnknownFutureValue returns a pointer to GiphyRatingTypeVUnknownFutureValue
+func GiphyRatingTypePUnknownFutureValue() *GiphyRatingType {
+ v := GiphyRatingTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceCriteriaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceCriteriaModel.go
new file mode 100644
index 00000000..59623596
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceCriteriaModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GovernanceCriteria undocumented
+type GovernanceCriteria struct {
+ // Object is the base model of GovernanceCriteria
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceNotificationPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceNotificationPolicyModel.go
new file mode 100644
index 00000000..5cb8fdda
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceNotificationPolicyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceNotificationTemplateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceNotificationTemplateModel.go
new file mode 100644
index 00000000..462a5a6f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceNotificationTemplateModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePermissionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePermissionModel.go
new file mode 100644
index 00000000..260395fe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePermissionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyModel.go
new file mode 100644
index 00000000..cc34f758
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyTemplateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyTemplateModel.go
new file mode 100644
index 00000000..f5a2676e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyTemplateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyTemplateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyTemplateRequest.go
new file mode 100644
index 00000000..c8533d51
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyTemplateRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceAction.go
new file mode 100644
index 00000000..0a401402
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GovernanceResourceCollectionRegisterRequestParameter undocumented
+type GovernanceResourceCollectionRegisterRequestParameter struct {
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceModel.go
new file mode 100644
index 00000000..f074ef2a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceRequest.go
new file mode 100644
index 00000000..d87f200b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceRequest.go
@@ -0,0 +1,428 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleAssignmentRequestObject collection
+func (r *GovernanceResourceRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleAssignment collection
+func (r *GovernanceResourceRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleDefinition collection
+func (r *GovernanceResourceRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleSetting collection
+func (r *GovernanceResourceRoleSettingsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleSetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentModel.go
new file mode 100644
index 00000000..2d276a16
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequest.go
new file mode 100644
index 00000000..149fe4ee
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequest.go
@@ -0,0 +1,66 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectAction.go
new file mode 100644
index 00000000..0e5cdeae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectAction.go
@@ -0,0 +1,74 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectModel.go
new file mode 100644
index 00000000..7ce2492c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectRequest.go
new file mode 100644
index 00000000..b5f5fb01
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectRequest.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestStatusModel.go
new file mode 100644
index 00000000..faf3a16a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestStatusModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleDefinitionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleDefinitionModel.go
new file mode 100644
index 00000000..a3c527cf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleDefinitionModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleDefinitionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleDefinitionRequest.go
new file mode 100644
index 00000000..9407e678
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleDefinitionRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleSettingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleSettingModel.go
new file mode 100644
index 00000000..286e02cc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleSettingModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleSettingRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleSettingRequest.go
new file mode 100644
index 00000000..71a71953
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleSettingRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/GovernanceRuleSettingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRuleSettingModel.go
new file mode 100644
index 00000000..f871f596
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRuleSettingModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceScheduleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceScheduleModel.go
new file mode 100644
index 00000000..93767704
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceScheduleModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Duration `json:"duration,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceSubjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceSubjectModel.go
new file mode 100644
index 00000000..d7c0c749
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceSubjectModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/GovernanceSubjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceSubjectRequest.go
new file mode 100644
index 00000000..6ae2648f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceSubjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GraphServiceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GraphServiceRequest.go
new file mode 100644
index 00000000..2211ce6f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GraphServiceRequest.go
@@ -0,0 +1,8560 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentPolicy collection
+func (r *GraphServiceAccessPackageAssignmentPoliciesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentRequestObject collection
+func (r *GraphServiceAccessPackageAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentResourceRole collection
+func (r *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentResourceRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignment collection
+func (r *GraphServiceAccessPackageAssignmentsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageCatalog collection
+func (r *GraphServiceAccessPackageCatalogsCollectionRequest) Get(ctx context.Context) ([]AccessPackageCatalog, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceRequestObject collection
+func (r *GraphServiceAccessPackageResourceRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceRoleScope collection
+func (r *GraphServiceAccessPackageResourceRoleScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRoleScope, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResource collection
+func (r *GraphServiceAccessPackageResourcesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackage collection
+func (r *GraphServiceAccessPackagesCollectionRequest) Get(ctx context.Context) ([]AccessPackage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReviewDecision collection
+func (r *GraphServiceAccessReviewDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReview collection
+func (r *GraphServiceAccessReviewsCollectionRequest) Get(ctx context.Context) ([]AccessReview, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ActivityStatistics collection
+func (r *GraphServiceActivitystatisticsCollectionRequest) Get(ctx context.Context) ([]ActivityStatistics, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AdministrativeUnit collection
+func (r *GraphServiceAdministrativeUnitsCollectionRequest) Get(ctx context.Context) ([]AdministrativeUnit, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AgreementAcceptance collection
+func (r *GraphServiceAgreementAcceptancesCollectionRequest) Get(ctx context.Context) ([]AgreementAcceptance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Agreement collection
+func (r *GraphServiceAgreementsCollectionRequest) Get(ctx context.Context) ([]Agreement, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AllowedDataLocation collection
+func (r *GraphServiceAllowedDataLocationsCollectionRequest) Get(ctx context.Context) ([]AllowedDataLocation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AnonymousIPRiskEvent collection
+func (r *GraphServiceAnonymousIPRiskEventsCollectionRequest) Get(ctx context.Context) ([]AnonymousIPRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppRoleAssignment collection
+func (r *GraphServiceAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ApplicationTemplate collection
+func (r *GraphServiceApplicationTemplatesCollectionRequest) Get(ctx context.Context) ([]ApplicationTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Application collection
+func (r *GraphServiceApplicationsCollectionRequest) Get(ctx context.Context) ([]Application, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ApprovalWorkflowProvider collection
+func (r *GraphServiceApprovalWorkflowProvidersCollectionRequest) Get(ctx context.Context) ([]ApprovalWorkflowProvider, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BookingBusiness collection
+func (r *GraphServiceBookingBusinessesCollectionRequest) Get(ctx context.Context) ([]BookingBusiness, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BookingCurrency collection
+func (r *GraphServiceBookingCurrenciesCollectionRequest) Get(ctx context.Context) ([]BookingCurrency, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BusinessFlowTemplate collection
+func (r *GraphServiceBusinessFlowTemplatesCollectionRequest) Get(ctx context.Context) ([]BusinessFlowTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CertificateBasedAuthConfiguration collection
+func (r *GraphServiceCertificateBasedAuthConfigurationCollectionRequest) Get(ctx context.Context) ([]CertificateBasedAuthConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Chat collection
+func (r *GraphServiceChatsCollectionRequest) Get(ctx context.Context) ([]Chat, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Command collection
+func (r *GraphServiceCommandsCollectionRequest) Get(ctx context.Context) ([]Command, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ExternalConnection collection
+func (r *GraphServiceConnectionsCollectionRequest) Get(ctx context.Context) ([]ExternalConnection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OrgContact collection
+func (r *GraphServiceContactsCollectionRequest) Get(ctx context.Context) ([]OrgContact, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Contract collection
+func (r *GraphServiceContractsCollectionRequest) Get(ctx context.Context) ([]Contract, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DataPolicyOperation collection
+func (r *GraphServiceDataPolicyOperationsCollectionRequest) Get(ctx context.Context) ([]DataPolicyOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Device collection
+func (r *GraphServiceDevicesCollectionRequest) Get(ctx context.Context) ([]Device, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryDefinition collection
+func (r *GraphServiceDirectoriesCollectionRequest) Get(ctx context.Context) ([]DirectoryDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GraphServiceDirectoryObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryRoleTemplate collection
+func (r *GraphServiceDirectoryRoleTemplatesCollectionRequest) Get(ctx context.Context) ([]DirectoryRoleTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryRole collection
+func (r *GraphServiceDirectoryRolesCollectionRequest) Get(ctx context.Context) ([]DirectoryRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectorySettingTemplate collection
+func (r *GraphServiceDirectorySettingTemplatesCollectionRequest) Get(ctx context.Context) ([]DirectorySettingTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DomainDNSRecord collection
+func (r *GraphServiceDomainDNSRecordsCollectionRequest) Get(ctx context.Context) ([]DomainDNSRecord, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Domain collection
+func (r *GraphServiceDomainsCollectionRequest) Get(ctx context.Context) ([]Domain, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Drive collection
+func (r *GraphServiceDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for FilterOperatorSchema collection
+func (r *GraphServiceFilterOperatorsCollectionRequest) Get(ctx context.Context) ([]FilterOperatorSchema, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AttributeMappingFunctionSchema collection
+func (r *GraphServiceFunctionsCollectionRequest) Get(ctx context.Context) ([]AttributeMappingFunctionSchema, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceResource collection
+func (r *GraphServiceGovernanceResourcesCollectionRequest) Get(ctx context.Context) ([]GovernanceResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleAssignmentRequestObject collection
+func (r *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleAssignment collection
+func (r *GraphServiceGovernanceRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleDefinition collection
+func (r *GraphServiceGovernanceRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleSetting collection
+func (r *GraphServiceGovernanceRoleSettingsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleSetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceSubject collection
+func (r *GraphServiceGovernanceSubjectsCollectionRequest) Get(ctx context.Context) ([]GovernanceSubject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupLifecyclePolicy collection
+func (r *GraphServiceGroupLifecyclePoliciesCollectionRequest) Get(ctx context.Context) ([]GroupLifecyclePolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Group collection
+func (r *GraphServiceGroupsCollectionRequest) Get(ctx context.Context) ([]Group, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IdentityProvider collection
+func (r *GraphServiceIdentityProvidersCollectionRequest) Get(ctx context.Context) ([]IdentityProvider, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IdentityRiskEvent collection
+func (r *GraphServiceIdentityRiskEventsCollectionRequest) Get(ctx context.Context) ([]IdentityRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ImpossibleTravelRiskEvent collection
+func (r *GraphServiceImpossibleTravelRiskEventsCollectionRequest) Get(ctx context.Context) ([]ImpossibleTravelRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Invitation collection
+func (r *GraphServiceInvitationsCollectionRequest) Get(ctx context.Context) ([]Invitation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for LeakedCredentialsRiskEvent collection
+func (r *GraphServiceLeakedCredentialsRiskEventsCollectionRequest) Get(ctx context.Context) ([]LeakedCredentialsRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MalwareRiskEvent collection
+func (r *GraphServiceMalwareRiskEventsCollectionRequest) Get(ctx context.Context) ([]MalwareRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OAuth2PermissionGrant collection
+func (r *GraphServiceOauth2PermissionGrantsCollectionRequest) Get(ctx context.Context) ([]OAuth2PermissionGrant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnPremisesPublishingProfile collection
+func (r *GraphServiceOnPremisesPublishingProfilesCollectionRequest) Get(ctx context.Context) ([]OnPremisesPublishingProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Organization collection
+func (r *GraphServiceOrganizationCollectionRequest) Get(ctx context.Context) ([]Organization, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PayloadResponse collection
+func (r *GraphServicePayloadResponseCollectionRequest) Get(ctx context.Context) ([]PayloadResponse, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ResourceSpecificPermissionGrant collection
+func (r *GraphServicePermissionGrantsCollectionRequest) Get(ctx context.Context) ([]ResourceSpecificPermissionGrant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Place collection
+func (r *GraphServicePlacesCollectionRequest) Get(ctx context.Context) ([]Place, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Policy collection
+func (r *GraphServicePoliciesCollectionRequest) Get(ctx context.Context) ([]Policy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedAccess collection
+func (r *GraphServicePrivilegedAccessCollectionRequest) Get(ctx context.Context) ([]PrivilegedAccess, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedApproval collection
+func (r *GraphServicePrivilegedApprovalCollectionRequest) Get(ctx context.Context) ([]PrivilegedApproval, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedOperationEvent collection
+func (r *GraphServicePrivilegedOperationEventsCollectionRequest) Get(ctx context.Context) ([]PrivilegedOperationEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedRoleAssignmentRequestObject collection
+func (r *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]PrivilegedRoleAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedRoleAssignment collection
+func (r *GraphServicePrivilegedRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]PrivilegedRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedRole collection
+func (r *GraphServicePrivilegedRolesCollectionRequest) Get(ctx context.Context) ([]PrivilegedRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedSignupStatus collection
+func (r *GraphServicePrivilegedSignupStatusCollectionRequest) Get(ctx context.Context) ([]PrivilegedSignupStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProgramControlType collection
+func (r *GraphServiceProgramControlTypesCollectionRequest) Get(ctx context.Context) ([]ProgramControlType, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProgramControl collection
+func (r *GraphServiceProgramControlsCollectionRequest) Get(ctx context.Context) ([]ProgramControl, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Program collection
+func (r *GraphServiceProgramsCollectionRequest) Get(ctx context.Context) ([]Program, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RiskDetection collection
+func (r *GraphServiceRiskDetectionsCollectionRequest) Get(ctx context.Context) ([]RiskDetection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RiskyUser collection
+func (r *GraphServiceRiskyUsersCollectionRequest) Get(ctx context.Context) ([]RiskyUser, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SchemaExtension collection
+func (r *GraphServiceSchemaExtensionsCollectionRequest) Get(ctx context.Context) ([]SchemaExtension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ScopedRoleMembership collection
+func (r *GraphServiceScopedRoleMembershipsCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ServicePrincipal collection
+func (r *GraphServiceServicePrincipalsCollectionRequest) Get(ctx context.Context) ([]ServicePrincipal, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectorySetting collection
+func (r *GraphServiceSettingsCollectionRequest) Get(ctx context.Context) ([]DirectorySetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SharedDriveItem collection
+func (r *GraphServiceSharesCollectionRequest) Get(ctx context.Context) ([]SharedDriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Site collection
+func (r *GraphServiceSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SubscribedSKU collection
+func (r *GraphServiceSubscribedSKUsCollectionRequest) Get(ctx context.Context) ([]SubscribedSKU, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Subscription collection
+func (r *GraphServiceSubscriptionsCollectionRequest) Get(ctx context.Context) ([]Subscription, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SuspiciousIPRiskEvent collection
+func (r *GraphServiceSuspiciousIPRiskEventsCollectionRequest) Get(ctx context.Context) ([]SuspiciousIPRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Team collection
+func (r *GraphServiceTeamsCollectionRequest) Get(ctx context.Context) ([]Team, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsTemplate collection
+func (r *GraphServiceTeamsTemplatesCollectionRequest) Get(ctx context.Context) ([]TeamsTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UnfamiliarLocationRiskEvent collection
+func (r *GraphServiceUnfamiliarLocationRiskEventsCollectionRequest) Get(ctx context.Context) ([]UnfamiliarLocationRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for User collection
+func (r *GraphServiceUsersCollectionRequest) Get(ctx context.Context) ([]User, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItem collection
+func (r *GraphServiceWorkbooksCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/GroupAccessTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupAccessTypeEnum.go
new file mode 100644
index 00000000..1e046e91
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupAccessTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupAccessType undocumented
+type GroupAccessType int
+
+const (
+ // GroupAccessTypeVNone undocumented
+ GroupAccessTypeVNone GroupAccessType = 0
+ // GroupAccessTypeVPrivate undocumented
+ GroupAccessTypeVPrivate GroupAccessType = 1
+ // GroupAccessTypeVSecret undocumented
+ GroupAccessTypeVSecret GroupAccessType = 2
+ // GroupAccessTypeVPublic undocumented
+ GroupAccessTypeVPublic GroupAccessType = 3
+)
+
+// GroupAccessTypePNone returns a pointer to GroupAccessTypeVNone
+func GroupAccessTypePNone() *GroupAccessType {
+ v := GroupAccessTypeVNone
+ return &v
+}
+
+// GroupAccessTypePPrivate returns a pointer to GroupAccessTypeVPrivate
+func GroupAccessTypePPrivate() *GroupAccessType {
+ v := GroupAccessTypeVPrivate
+ return &v
+}
+
+// GroupAccessTypePSecret returns a pointer to GroupAccessTypeVSecret
+func GroupAccessTypePSecret() *GroupAccessType {
+ v := GroupAccessTypeVSecret
+ return &v
+}
+
+// GroupAccessTypePPublic returns a pointer to GroupAccessTypeVPublic
+func GroupAccessTypePPublic() *GroupAccessType {
+ v := GroupAccessTypeVPublic
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupAction.go
new file mode 100644
index 00000000..be991718
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupAction.go
@@ -0,0 +1,417 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// GroupCollectionEvaluateDynamicMembershipRequestParameter undocumented
+type GroupCollectionEvaluateDynamicMembershipRequestParameter struct {
+ // MemberID undocumented
+ MemberID *string `json:"memberId,omitempty"`
+ // MembershipRule undocumented
+ MembershipRule *string `json:"membershipRule,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"`
+}
+
+//
+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 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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]ResourceSpecificPermissionGrant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupAssignmentTargetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupAssignmentTargetModel.go
new file mode 100644
index 00000000..4d9c88be
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupAssignmentTargetModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyAction.go
new file mode 100644
index 00000000..d11dd4f3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyAction.go
@@ -0,0 +1,104 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GroupLifecyclePolicyCollectionRenewGroupRequestParameter undocumented
+type GroupLifecyclePolicyCollectionRenewGroupRequestParameter struct {
+ // GroupID undocumented
+ GroupID *string `json:"groupId,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"`
+}
+
+//
+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 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyModel.go
new file mode 100644
index 00000000..be7e003e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyRequest.go
new file mode 100644
index 00000000..ee936dd7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupMembershipGovernanceCriteriaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupMembershipGovernanceCriteriaModel.go
new file mode 100644
index 00000000..81a4e9bd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupMembershipGovernanceCriteriaModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupMembershipGovernanceCriteria undocumented
+type GroupMembershipGovernanceCriteria struct {
+ // GovernanceCriteria is the base model of GroupMembershipGovernanceCriteria
+ GovernanceCriteria
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupModel.go
new file mode 100644
index 00000000..40880082
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupModel.go
@@ -0,0 +1,155 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAction.go
new file mode 100644
index 00000000..c1f9f38b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAction.go
@@ -0,0 +1,136 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]GroupPolicyConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAssignmentModel.go
new file mode 100644
index 00000000..fc7b6801
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAssignmentRequest.go
new file mode 100644
index 00000000..e4f4b5e9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationModel.go
new file mode 100644
index 00000000..80f5b53c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationRequest.go
new file mode 100644
index 00000000..11e916b9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyConfigurationAssignment collection
+func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyDefinitionValue collection
+func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinitionValue, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationTypeEnum.go
new file mode 100644
index 00000000..20e101d2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyConfigurationType undocumented
+type GroupPolicyConfigurationType int
+
+const (
+ // GroupPolicyConfigurationTypeVPolicy undocumented
+ GroupPolicyConfigurationTypeVPolicy GroupPolicyConfigurationType = 0
+ // GroupPolicyConfigurationTypeVPreference undocumented
+ GroupPolicyConfigurationTypeVPreference GroupPolicyConfigurationType = 1
+)
+
+// GroupPolicyConfigurationTypePPolicy returns a pointer to GroupPolicyConfigurationTypeVPolicy
+func GroupPolicyConfigurationTypePPolicy() *GroupPolicyConfigurationType {
+ v := GroupPolicyConfigurationTypeVPolicy
+ return &v
+}
+
+// GroupPolicyConfigurationTypePPreference returns a pointer to GroupPolicyConfigurationTypeVPreference
+func GroupPolicyConfigurationTypePPreference() *GroupPolicyConfigurationType {
+ v := GroupPolicyConfigurationTypeVPreference
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionClassTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionClassTypeEnum.go
new file mode 100644
index 00000000..bc29f880
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionClassTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyDefinitionClassType undocumented
+type GroupPolicyDefinitionClassType int
+
+const (
+ // GroupPolicyDefinitionClassTypeVUser undocumented
+ GroupPolicyDefinitionClassTypeVUser GroupPolicyDefinitionClassType = 0
+ // GroupPolicyDefinitionClassTypeVMachine undocumented
+ GroupPolicyDefinitionClassTypeVMachine GroupPolicyDefinitionClassType = 1
+)
+
+// GroupPolicyDefinitionClassTypePUser returns a pointer to GroupPolicyDefinitionClassTypeVUser
+func GroupPolicyDefinitionClassTypePUser() *GroupPolicyDefinitionClassType {
+ v := GroupPolicyDefinitionClassTypeVUser
+ return &v
+}
+
+// GroupPolicyDefinitionClassTypePMachine returns a pointer to GroupPolicyDefinitionClassTypeVMachine
+func GroupPolicyDefinitionClassTypePMachine() *GroupPolicyDefinitionClassType {
+ v := GroupPolicyDefinitionClassTypeVMachine
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionFileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionFileModel.go
new file mode 100644
index 00000000..780a9a3b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionFileModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionFileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionFileRequest.go
new file mode 100644
index 00000000..3085c955
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionFileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyDefinition collection
+func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionModel.go
new file mode 100644
index 00000000..05301122
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionRequest.go
new file mode 100644
index 00000000..69d1d59d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyPresentation collection
+func (r *GroupPolicyDefinitionPresentationsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyPresentation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionValueModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionValueModel.go
new file mode 100644
index 00000000..cdf88390
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionValueModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionValueRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionValueRequest.go
new file mode 100644
index 00000000..78539f53
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionValueRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyPresentationValue collection
+func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) Get(ctx context.Context) ([]GroupPolicyPresentationValue, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReadinessEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReadinessEnum.go
new file mode 100644
index 00000000..7b00c646
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReadinessEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyMigrationReadiness undocumented
+type GroupPolicyMigrationReadiness int
+
+const (
+ // GroupPolicyMigrationReadinessVNone undocumented
+ GroupPolicyMigrationReadinessVNone GroupPolicyMigrationReadiness = 1
+ // GroupPolicyMigrationReadinessVPartial undocumented
+ GroupPolicyMigrationReadinessVPartial GroupPolicyMigrationReadiness = 2
+ // GroupPolicyMigrationReadinessVComplete undocumented
+ GroupPolicyMigrationReadinessVComplete GroupPolicyMigrationReadiness = 3
+ // GroupPolicyMigrationReadinessVError undocumented
+ GroupPolicyMigrationReadinessVError GroupPolicyMigrationReadiness = 4
+ // GroupPolicyMigrationReadinessVNotApplicable undocumented
+ GroupPolicyMigrationReadinessVNotApplicable GroupPolicyMigrationReadiness = 5
+)
+
+// GroupPolicyMigrationReadinessPNone returns a pointer to GroupPolicyMigrationReadinessVNone
+func GroupPolicyMigrationReadinessPNone() *GroupPolicyMigrationReadiness {
+ v := GroupPolicyMigrationReadinessVNone
+ return &v
+}
+
+// GroupPolicyMigrationReadinessPPartial returns a pointer to GroupPolicyMigrationReadinessVPartial
+func GroupPolicyMigrationReadinessPPartial() *GroupPolicyMigrationReadiness {
+ v := GroupPolicyMigrationReadinessVPartial
+ return &v
+}
+
+// GroupPolicyMigrationReadinessPComplete returns a pointer to GroupPolicyMigrationReadinessVComplete
+func GroupPolicyMigrationReadinessPComplete() *GroupPolicyMigrationReadiness {
+ v := GroupPolicyMigrationReadinessVComplete
+ return &v
+}
+
+// GroupPolicyMigrationReadinessPError returns a pointer to GroupPolicyMigrationReadinessVError
+func GroupPolicyMigrationReadinessPError() *GroupPolicyMigrationReadiness {
+ v := GroupPolicyMigrationReadinessVError
+ return &v
+}
+
+// GroupPolicyMigrationReadinessPNotApplicable returns a pointer to GroupPolicyMigrationReadinessVNotApplicable
+func GroupPolicyMigrationReadinessPNotApplicable() *GroupPolicyMigrationReadiness {
+ v := GroupPolicyMigrationReadinessVNotApplicable
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportAction.go
new file mode 100644
index 00000000..3bc1b4cd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportAction.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GroupPolicyMigrationReportCollectionCreateMigrationReportRequestParameter undocumented
+type GroupPolicyMigrationReportCollectionCreateMigrationReportRequestParameter struct {
+ // GroupPolicyObjectFile undocumented
+ GroupPolicyObjectFile *GroupPolicyObjectFile `json:"groupPolicyObjectFile,omitempty"`
+}
+
+//
+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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportModel.go
new file mode 100644
index 00000000..5cc081aa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportRequest.go
new file mode 100644
index 00000000..707e96b4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicySettingMapping collection
+func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest) Get(ctx context.Context) ([]GroupPolicySettingMapping, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyObjectFileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyObjectFileModel.go
new file mode 100644
index 00000000..35b18f52
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyObjectFileModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationCheckBoxModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationCheckBoxModel.go
new file mode 100644
index 00000000..a86e0800
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationCheckBoxModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationComboBoxModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationComboBoxModel.go
new file mode 100644
index 00000000..12a86997
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationComboBoxModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDecimalTextBoxModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDecimalTextBoxModel.go
new file mode 100644
index 00000000..4b4a45e5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDecimalTextBoxModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDropdownListItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDropdownListItemModel.go
new file mode 100644
index 00000000..3dfb939f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDropdownListItemModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDropdownListModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDropdownListModel.go
new file mode 100644
index 00000000..c85e4d97
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDropdownListModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationListBoxModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationListBoxModel.go
new file mode 100644
index 00000000..9b36bffb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationListBoxModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationLongDecimalTextBoxModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationLongDecimalTextBoxModel.go
new file mode 100644
index 00000000..6a3556ae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationLongDecimalTextBoxModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationModel.go
new file mode 100644
index 00000000..74758ecf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationMultiTextBoxModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationMultiTextBoxModel.go
new file mode 100644
index 00000000..dc201319
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationMultiTextBoxModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationRequest.go
new file mode 100644
index 00000000..e4d09d01
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Definition is navigation property
+func (b *GroupPolicyPresentationRequestBuilder) Definition() *GroupPolicyDefinitionRequestBuilder {
+ bb := &GroupPolicyDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/definition"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationTextBoxModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationTextBoxModel.go
new file mode 100644
index 00000000..e8074d41
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationTextBoxModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationTextModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationTextModel.go
new file mode 100644
index 00000000..50cbc2ad
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationTextModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationText Represents an ADMX text element.
+type GroupPolicyPresentationText struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationText
+ GroupPolicyPresentation
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueBooleanModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueBooleanModel.go
new file mode 100644
index 00000000..8b7f397b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueBooleanModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueDecimalModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueDecimalModel.go
new file mode 100644
index 00000000..cbcb2ff8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueDecimalModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueListModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueListModel.go
new file mode 100644
index 00000000..019b3000
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueListModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueLongDecimalModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueLongDecimalModel.go
new file mode 100644
index 00000000..a32ae6e1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueLongDecimalModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueModel.go
new file mode 100644
index 00000000..d073a725
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueMultiTextModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueMultiTextModel.go
new file mode 100644
index 00000000..ec151df7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueMultiTextModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueRequest.go
new file mode 100644
index 00000000..1517a648
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueTextModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueTextModel.go
new file mode 100644
index 00000000..4c2a5a21
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueTextModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingMappingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingMappingModel.go
new file mode 100644
index 00000000..85c3e273
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingMappingModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/GroupPolicySettingMappingRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingMappingRequest.go
new file mode 100644
index 00000000..dce6ddf8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingMappingRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingScopeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingScopeEnum.go
new file mode 100644
index 00000000..aa29bb47
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingScopeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicySettingScope undocumented
+type GroupPolicySettingScope int
+
+const (
+ // GroupPolicySettingScopeVUnknown undocumented
+ GroupPolicySettingScopeVUnknown GroupPolicySettingScope = 0
+ // GroupPolicySettingScopeVDevice undocumented
+ GroupPolicySettingScopeVDevice GroupPolicySettingScope = 1
+ // GroupPolicySettingScopeVUser undocumented
+ GroupPolicySettingScopeVUser GroupPolicySettingScope = 2
+)
+
+// GroupPolicySettingScopePUnknown returns a pointer to GroupPolicySettingScopeVUnknown
+func GroupPolicySettingScopePUnknown() *GroupPolicySettingScope {
+ v := GroupPolicySettingScopeVUnknown
+ return &v
+}
+
+// GroupPolicySettingScopePDevice returns a pointer to GroupPolicySettingScopeVDevice
+func GroupPolicySettingScopePDevice() *GroupPolicySettingScope {
+ v := GroupPolicySettingScopeVDevice
+ return &v
+}
+
+// GroupPolicySettingScopePUser returns a pointer to GroupPolicySettingScopeVUser
+func GroupPolicySettingScopePUser() *GroupPolicySettingScope {
+ v := GroupPolicySettingScopeVUser
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingTypeEnum.go
new file mode 100644
index 00000000..0691eb9a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicySettingType undocumented
+type GroupPolicySettingType int
+
+const (
+ // GroupPolicySettingTypeVUnknown undocumented
+ GroupPolicySettingTypeVUnknown GroupPolicySettingType = 0
+ // GroupPolicySettingTypeVPolicy undocumented
+ GroupPolicySettingTypeVPolicy GroupPolicySettingType = 1
+ // GroupPolicySettingTypeVAccount undocumented
+ GroupPolicySettingTypeVAccount GroupPolicySettingType = 2
+)
+
+// GroupPolicySettingTypePUnknown returns a pointer to GroupPolicySettingTypeVUnknown
+func GroupPolicySettingTypePUnknown() *GroupPolicySettingType {
+ v := GroupPolicySettingTypeVUnknown
+ return &v
+}
+
+// GroupPolicySettingTypePPolicy returns a pointer to GroupPolicySettingTypeVPolicy
+func GroupPolicySettingTypePPolicy() *GroupPolicySettingType {
+ v := GroupPolicySettingTypeVPolicy
+ return &v
+}
+
+// GroupPolicySettingTypePAccount returns a pointer to GroupPolicySettingTypeVAccount
+func GroupPolicySettingTypePAccount() *GroupPolicySettingType {
+ v := GroupPolicySettingTypeVAccount
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyTypeEnum.go
new file mode 100644
index 00000000..d7e3f5fb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyType undocumented
+type GroupPolicyType int
+
+const (
+ // GroupPolicyTypeVAdmxBacked undocumented
+ GroupPolicyTypeVAdmxBacked GroupPolicyType = 0
+ // GroupPolicyTypeVAdmxIngested undocumented
+ GroupPolicyTypeVAdmxIngested GroupPolicyType = 1
+)
+
+// GroupPolicyTypePAdmxBacked returns a pointer to GroupPolicyTypeVAdmxBacked
+func GroupPolicyTypePAdmxBacked() *GroupPolicyType {
+ v := GroupPolicyTypeVAdmxBacked
+ return &v
+}
+
+// GroupPolicyTypePAdmxIngested returns a pointer to GroupPolicyTypeVAdmxIngested
+func GroupPolicyTypePAdmxIngested() *GroupPolicyType {
+ v := GroupPolicyTypeVAdmxIngested
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPrivacyEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPrivacyEnum.go
new file mode 100644
index 00000000..3cf2cad9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupPrivacyEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPrivacy undocumented
+type GroupPrivacy int
+
+const (
+ // GroupPrivacyVPublic undocumented
+ GroupPrivacyVPublic GroupPrivacy = 0
+ // GroupPrivacyVPrivate undocumented
+ GroupPrivacyVPrivate GroupPrivacy = 1
+)
+
+// GroupPrivacyPPublic returns a pointer to GroupPrivacyVPublic
+func GroupPrivacyPPublic() *GroupPrivacy {
+ v := GroupPrivacyVPublic
+ return &v
+}
+
+// GroupPrivacyPPrivate returns a pointer to GroupPrivacyVPrivate
+func GroupPrivacyPPrivate() *GroupPrivacy {
+ v := GroupPrivacyVPrivate
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupRequest.go
new file mode 100644
index 00000000..f9aca3c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupRequest.go
@@ -0,0 +1,2068 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupAcceptedSendersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppRoleAssignment collection
+func (r *GroupAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Event collection
+func (r *GroupCalendarViewCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Conversation collection
+func (r *GroupConversationsCollectionRequest) Get(ctx context.Context) ([]Conversation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Drive collection
+func (r *GroupDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Endpoint collection
+func (r *GroupEndpointsCollectionRequest) Get(ctx context.Context) ([]Endpoint, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Event collection
+func (r *GroupEventsCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *GroupExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupLifecyclePolicy collection
+func (r *GroupGroupLifecyclePoliciesCollectionRequest) Get(ctx context.Context) ([]GroupLifecyclePolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupMembersWithLicenseErrorsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ResourceSpecificPermissionGrant collection
+func (r *GroupPermissionGrantsCollectionRequest) Get(ctx context.Context) ([]ResourceSpecificPermissionGrant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProfilePhoto collection
+func (r *GroupPhotosCollectionRequest) Get(ctx context.Context) ([]ProfilePhoto, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupRejectedSendersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectorySetting collection
+func (r *GroupSettingsCollectionRequest) Get(ctx context.Context) ([]DirectorySetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Site collection
+func (r *GroupSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ConversationThread collection
+func (r *GroupThreadsCollectionRequest) Get(ctx context.Context) ([]ConversationThread, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupTransitiveMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GroupTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/GroupTypeEnum.go
new file mode 100644
index 00000000..2d0127af
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/GroupTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupType undocumented
+type GroupType int
+
+const (
+ // GroupTypeVUnifiedGroups undocumented
+ GroupTypeVUnifiedGroups GroupType = 0
+ // GroupTypeVAzureAD undocumented
+ GroupTypeVAzureAD GroupType = 1
+ // GroupTypeVUnknownFutureValue undocumented
+ GroupTypeVUnknownFutureValue GroupType = 2
+)
+
+// GroupTypePUnifiedGroups returns a pointer to GroupTypeVUnifiedGroups
+func GroupTypePUnifiedGroups() *GroupType {
+ v := GroupTypeVUnifiedGroups
+ return &v
+}
+
+// GroupTypePAzureAD returns a pointer to GroupTypeVAzureAD
+func GroupTypePAzureAD() *GroupType {
+ v := GroupTypeVAzureAD
+ return &v
+}
+
+// GroupTypePUnknownFutureValue returns a pointer to GroupTypeVUnknownFutureValue
+func GroupTypePUnknownFutureValue() *GroupType {
+ v := GroupTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/HardwareInformationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/HardwareInformationModel.go
new file mode 100644
index 00000000..734d7648
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/HardwareInformationModel.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/matterbridge/msgraph.go/beta/HasPayloadLinkResultItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/HasPayloadLinkResultItemModel.go
new file mode 100644
index 00000000..0c3c2d5d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/HasPayloadLinkResultItemModel.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/matterbridge/msgraph.go/beta/HashAlgorithmsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/HashAlgorithmsEnum.go
new file mode 100644
index 00000000..8fc657f1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/HashAlgorithmsEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// HashAlgorithms undocumented
+type HashAlgorithms int
+
+const (
+ // HashAlgorithmsVSha1 undocumented
+ HashAlgorithmsVSha1 HashAlgorithms = 1
+ // HashAlgorithmsVSha2 undocumented
+ HashAlgorithmsVSha2 HashAlgorithms = 2
+)
+
+// HashAlgorithmsPSha1 returns a pointer to HashAlgorithmsVSha1
+func HashAlgorithmsPSha1() *HashAlgorithms {
+ v := HashAlgorithmsVSha1
+ return &v
+}
+
+// HashAlgorithmsPSha2 returns a pointer to HashAlgorithmsVSha2
+func HashAlgorithmsPSha2() *HashAlgorithms {
+ v := HashAlgorithmsVSha2
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/HashesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/HashesModel.go
new file mode 100644
index 00000000..dfc90cc9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/HashesModel.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/matterbridge/msgraph.go/beta/HealthStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/HealthStateEnum.go
new file mode 100644
index 00000000..4676928e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/HealthStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// HealthState undocumented
+type HealthState int
+
+const (
+ // HealthStateVUnknown undocumented
+ HealthStateVUnknown HealthState = 0
+ // HealthStateVHealthy undocumented
+ HealthStateVHealthy HealthState = 1
+ // HealthStateVUnhealthy undocumented
+ HealthStateVUnhealthy HealthState = 2
+)
+
+// HealthStatePUnknown returns a pointer to HealthStateVUnknown
+func HealthStatePUnknown() *HealthState {
+ v := HealthStateVUnknown
+ return &v
+}
+
+// HealthStatePHealthy returns a pointer to HealthStateVHealthy
+func HealthStatePHealthy() *HealthState {
+ v := HealthStateVHealthy
+ return &v
+}
+
+// HealthStatePUnhealthy returns a pointer to HealthStateVUnhealthy
+func HealthStatePUnhealthy() *HealthState {
+ v := HealthStateVUnhealthy
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityProfileModel.go
new file mode 100644
index 00000000..7b1b3c28
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityProfileModel.go
@@ -0,0 +1,47 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityProfileRequest.go
new file mode 100644
index 00000000..89d8b576
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityProfileRequest.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/matterbridge/msgraph.go/beta/HostSecurityStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityStateModel.go
new file mode 100644
index 00000000..64ed9885
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityStateModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/HourlyScheduleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/HourlyScheduleModel.go
new file mode 100644
index 00000000..2326c168
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/HourlyScheduleModel.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/matterbridge/msgraph.go/beta/HybridAgentUpdaterConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/HybridAgentUpdaterConfigurationModel.go
new file mode 100644
index 00000000..3ee7280c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/HybridAgentUpdaterConfigurationModel.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/matterbridge/msgraph.go/beta/IOSBookmarkModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSBookmarkModel.go
new file mode 100644
index 00000000..2c630a7a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSBookmarkModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileBaseModel.go
new file mode 100644
index 00000000..76bb1a78
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileBaseModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileBaseRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileBaseRequest.go
new file mode 100644
index 00000000..b1dc9224
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileBaseRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileModel.go
new file mode 100644
index 00000000..9ad7fdbb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSCertificateProfile Device Configuration.
+type IOSCertificateProfile struct {
+ // DeviceConfiguration is the base model of IOSCertificateProfile
+ DeviceConfiguration
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileRequest.go
new file mode 100644
index 00000000..d97fa04d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSCompliancePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSCompliancePolicyModel.go
new file mode 100644
index 00000000..21fa4256
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSCompliancePolicyModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSCustomConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSCustomConfigurationModel.go
new file mode 100644
index 00000000..67008d7b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSCustomConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationModel.go
new file mode 100644
index 00000000..5aa3259e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSDerivedCredentialAuthenticationConfiguration iOS Derived Credential profile.
+type IOSDerivedCredentialAuthenticationConfiguration struct {
+ // DeviceConfiguration is the base model of IOSDerivedCredentialAuthenticationConfiguration
+ DeviceConfiguration
+ // DerivedCredentialSettings undocumented
+ DerivedCredentialSettings *DeviceManagementDerivedCredentialSettings `json:"derivedCredentialSettings,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationRequest.go
new file mode 100644
index 00000000..a1ac2828
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// DerivedCredentialSettings is navigation property
+func (b *IOSDerivedCredentialAuthenticationConfigurationRequestBuilder) DerivedCredentialSettings() *DeviceManagementDerivedCredentialSettingsRequestBuilder {
+ bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/derivedCredentialSettings"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceFeaturesConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceFeaturesConfigurationModel.go
new file mode 100644
index 00000000..e100307d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceFeaturesConfigurationModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceFeaturesConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceFeaturesConfigurationRequest.go
new file mode 100644
index 00000000..215621a4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceFeaturesConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceTypeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceTypeModel.go
new file mode 100644
index 00000000..90e17f99
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceTypeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSEasEmailProfileConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSEasEmailProfileConfigurationModel.go
new file mode 100644
index 00000000..b7132fef
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSEasEmailProfileConfigurationModel.go
@@ -0,0 +1,61 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSEasEmailProfileConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSEasEmailProfileConfigurationRequest.go
new file mode 100644
index 00000000..b94a0140
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSEasEmailProfileConfigurationRequest.go
@@ -0,0 +1,66 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSEduCertificateSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSEduCertificateSettingsModel.go
new file mode 100644
index 00000000..2eb8a137
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSEduCertificateSettingsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSEduDeviceConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSEduDeviceConfigurationModel.go
new file mode 100644
index 00000000..4619fe1f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSEduDeviceConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSEducationDeviceConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSEducationDeviceConfigurationModel.go
new file mode 100644
index 00000000..26d16837
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSEducationDeviceConfigurationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSEducationDeviceConfiguration iOS Education configuration profile
+type IOSEducationDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of IOSEducationDeviceConfiguration
+ DeviceConfiguration
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSEnterpriseWiFiConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSEnterpriseWiFiConfigurationModel.go
new file mode 100644
index 00000000..7904716f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSEnterpriseWiFiConfigurationModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSEnterpriseWiFiConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSEnterpriseWiFiConfigurationRequest.go
new file mode 100644
index 00000000..75072e7e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSEnterpriseWiFiConfigurationRequest.go
@@ -0,0 +1,153 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IOSTrustedRootCertificate collection
+func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest) Get(ctx context.Context) ([]IOSTrustedRootCertificate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSGeneralDeviceConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSGeneralDeviceConfigurationModel.go
new file mode 100644
index 00000000..b6ac9880
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSGeneralDeviceConfigurationModel.go
@@ -0,0 +1,359 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenAppModel.go
new file mode 100644
index 00000000..584d7b20
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenAppModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSHomeScreenApp undocumented
+type IOSHomeScreenApp struct {
+ // IOSHomeScreenItem is the base model of IOSHomeScreenApp
+ IOSHomeScreenItem
+ // BundleID BundleID of app
+ BundleID *string `json:"bundleID,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenFolderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenFolderModel.go
new file mode 100644
index 00000000..0c5cdebb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenFolderModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenFolderPageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenFolderPageModel.go
new file mode 100644
index 00000000..84f73289
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenFolderPageModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenItemModel.go
new file mode 100644
index 00000000..b111931e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenItemModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSHomeScreenItem undocumented
+type IOSHomeScreenItem struct {
+ // Object is the base model of IOSHomeScreenItem
+ Object
+ // DisplayName Name of the app
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenPageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenPageModel.go
new file mode 100644
index 00000000..8c5170c2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenPageModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSImportedPFXCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSImportedPFXCertificateProfileModel.go
new file mode 100644
index 00000000..acced846
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSImportedPFXCertificateProfileModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSImportedPFXCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSImportedPFXCertificateProfileRequest.go
new file mode 100644
index 00000000..7fa295e0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSImportedPFXCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSKerberosSingleSignOnExtensionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSKerberosSingleSignOnExtensionModel.go
new file mode 100644
index 00000000..60523e10
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSKerberosSingleSignOnExtensionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSKerberosSingleSignOnExtension undocumented
+type IOSKerberosSingleSignOnExtension struct {
+ // KerberosSingleSignOnExtension is the base model of IOSKerberosSingleSignOnExtension
+ KerberosSingleSignOnExtension
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppAssignmentSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..928d1bee
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppAssignmentSettingsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppModel.go
new file mode 100644
index 00000000..a430b6a4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAction.go
new file mode 100644
index 00000000..2640b02c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAction.go
@@ -0,0 +1,134 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestParameter undocumented
+type IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestParameter 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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentModel.go
new file mode 100644
index 00000000..eb3e36d1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentRequest.go
new file mode 100644
index 00000000..d519cf6a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationModel.go
new file mode 100644
index 00000000..78cdc6a5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationPolicySetItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationPolicySetItemModel.go
new file mode 100644
index 00000000..52e153e3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationPolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationRequest.go
new file mode 100644
index 00000000..68d80f22
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationRequest.go
@@ -0,0 +1,421 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IOSLobAppProvisioningConfigurationAssignment collection
+func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]IOSLobAppProvisioningConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (r *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppProvisioningConfigGroupAssignment collection
+func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]MobileAppProvisioningConfigGroupAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionAction.go
new file mode 100644
index 00000000..1676b175
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionAction.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// IOSManagedAppProtectionCollectionHasPayloadLinksRequestParameter undocumented
+type IOSManagedAppProtectionCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionModel.go
new file mode 100644
index 00000000..ad3f1dd3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionRequest.go
new file mode 100644
index 00000000..83979855
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedMobileApp collection
+func (r *IOSManagedAppProtectionAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppRegistrationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppRegistrationModel.go
new file mode 100644
index 00000000..2e13b300
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppRegistrationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSMinimumOperatingSystemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSMinimumOperatingSystemModel.go
new file mode 100644
index 00000000..c7e9394a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSMinimumOperatingSystemModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSMobileAppConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSMobileAppConfigurationModel.go
new file mode 100644
index 00000000..cae13420
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSMobileAppConfigurationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSMobileAppIdentifierModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSMobileAppIdentifierModel.go
new file mode 100644
index 00000000..3d90f4f2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSMobileAppIdentifierModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSNetworkUsageRuleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSNetworkUsageRuleModel.go
new file mode 100644
index 00000000..3e760e1c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSNetworkUsageRuleModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSNotificationAlertTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSNotificationAlertTypeEnum.go
new file mode 100644
index 00000000..970486d2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSNotificationAlertTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSNotificationAlertType undocumented
+type IOSNotificationAlertType int
+
+const (
+ // IOSNotificationAlertTypeVDeviceDefault undocumented
+ IOSNotificationAlertTypeVDeviceDefault IOSNotificationAlertType = 0
+ // IOSNotificationAlertTypeVBanner undocumented
+ IOSNotificationAlertTypeVBanner IOSNotificationAlertType = 1
+ // IOSNotificationAlertTypeVModal undocumented
+ IOSNotificationAlertTypeVModal IOSNotificationAlertType = 2
+ // IOSNotificationAlertTypeVNone undocumented
+ IOSNotificationAlertTypeVNone IOSNotificationAlertType = 3
+)
+
+// IOSNotificationAlertTypePDeviceDefault returns a pointer to IOSNotificationAlertTypeVDeviceDefault
+func IOSNotificationAlertTypePDeviceDefault() *IOSNotificationAlertType {
+ v := IOSNotificationAlertTypeVDeviceDefault
+ return &v
+}
+
+// IOSNotificationAlertTypePBanner returns a pointer to IOSNotificationAlertTypeVBanner
+func IOSNotificationAlertTypePBanner() *IOSNotificationAlertType {
+ v := IOSNotificationAlertTypeVBanner
+ return &v
+}
+
+// IOSNotificationAlertTypePModal returns a pointer to IOSNotificationAlertTypeVModal
+func IOSNotificationAlertTypePModal() *IOSNotificationAlertType {
+ v := IOSNotificationAlertTypeVModal
+ return &v
+}
+
+// IOSNotificationAlertTypePNone returns a pointer to IOSNotificationAlertTypeVNone
+func IOSNotificationAlertTypePNone() *IOSNotificationAlertType {
+ v := IOSNotificationAlertTypeVNone
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSNotificationSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSNotificationSettingsModel.go
new file mode 100644
index 00000000..0d29accb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSNotificationSettingsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSPkcsCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSPkcsCertificateProfileModel.go
new file mode 100644
index 00000000..94e97d21
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSPkcsCertificateProfileModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSPkcsCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSPkcsCertificateProfileRequest.go
new file mode 100644
index 00000000..179ea2bb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSPkcsCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSScepCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSScepCertificateProfileModel.go
new file mode 100644
index 00000000..59e07b03
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSScepCertificateProfileModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSScepCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSScepCertificateProfileRequest.go
new file mode 100644
index 00000000..d03f82d4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSScepCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSSingleSignOnSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSSingleSignOnSettingsModel.go
new file mode 100644
index 00000000..b214ba3f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSSingleSignOnSettingsModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSStoreAppAssignmentSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSStoreAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..3f7890f3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSStoreAppAssignmentSettingsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSStoreAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSStoreAppModel.go
new file mode 100644
index 00000000..68700edd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSStoreAppModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSTrustedRootCertificateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSTrustedRootCertificateModel.go
new file mode 100644
index 00000000..31b64426
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSTrustedRootCertificateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSTrustedRootCertificateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSTrustedRootCertificateRequest.go
new file mode 100644
index 00000000..8dc88046
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSTrustedRootCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateConfigurationModel.go
new file mode 100644
index 00000000..8ac45dda
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"activeHoursStart,omitempty"`
+ // ActiveHoursEnd Active Hours End (active hours mean the time window when updates install should not happen)
+ ActiveHoursEnd *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateDeviceStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateDeviceStatusModel.go
new file mode 100644
index 00000000..4b4b5b1c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateDeviceStatusModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateDeviceStatusRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateDeviceStatusRequest.go
new file mode 100644
index 00000000..535f3b8b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateDeviceStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdatesInstallStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdatesInstallStatusEnum.go
new file mode 100644
index 00000000..4162ba14
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdatesInstallStatusEnum.go
@@ -0,0 +1,145 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSUpdatesInstallStatus undocumented
+type IOSUpdatesInstallStatus int
+
+const (
+ // IOSUpdatesInstallStatusVSuccess undocumented
+ IOSUpdatesInstallStatusVSuccess IOSUpdatesInstallStatus = 0
+ // IOSUpdatesInstallStatusVAvailable undocumented
+ IOSUpdatesInstallStatusVAvailable IOSUpdatesInstallStatus = 1
+ // IOSUpdatesInstallStatusVIdle undocumented
+ IOSUpdatesInstallStatusVIdle IOSUpdatesInstallStatus = 2
+ // IOSUpdatesInstallStatusVUnknown undocumented
+ IOSUpdatesInstallStatusVUnknown IOSUpdatesInstallStatus = 3
+ // IOSUpdatesInstallStatusVDownloading undocumented
+ IOSUpdatesInstallStatusVDownloading IOSUpdatesInstallStatus = -2016330712
+ // IOSUpdatesInstallStatusVDownloadFailed undocumented
+ IOSUpdatesInstallStatusVDownloadFailed IOSUpdatesInstallStatus = -2016330711
+ // IOSUpdatesInstallStatusVDownloadRequiresComputer undocumented
+ IOSUpdatesInstallStatusVDownloadRequiresComputer IOSUpdatesInstallStatus = -2016330710
+ // IOSUpdatesInstallStatusVDownloadInsufficientSpace undocumented
+ IOSUpdatesInstallStatusVDownloadInsufficientSpace IOSUpdatesInstallStatus = -2016330709
+ // IOSUpdatesInstallStatusVDownloadInsufficientPower undocumented
+ IOSUpdatesInstallStatusVDownloadInsufficientPower IOSUpdatesInstallStatus = -2016330708
+ // IOSUpdatesInstallStatusVDownloadInsufficientNetwork undocumented
+ IOSUpdatesInstallStatusVDownloadInsufficientNetwork IOSUpdatesInstallStatus = -2016330707
+ // IOSUpdatesInstallStatusVInstalling undocumented
+ IOSUpdatesInstallStatusVInstalling IOSUpdatesInstallStatus = -2016330706
+ // IOSUpdatesInstallStatusVInstallInsufficientSpace undocumented
+ IOSUpdatesInstallStatusVInstallInsufficientSpace IOSUpdatesInstallStatus = -2016330705
+ // IOSUpdatesInstallStatusVInstallInsufficientPower undocumented
+ IOSUpdatesInstallStatusVInstallInsufficientPower IOSUpdatesInstallStatus = -2016330704
+ // IOSUpdatesInstallStatusVInstallPhoneCallInProgress undocumented
+ IOSUpdatesInstallStatusVInstallPhoneCallInProgress IOSUpdatesInstallStatus = -2016330703
+ // IOSUpdatesInstallStatusVInstallFailed undocumented
+ IOSUpdatesInstallStatusVInstallFailed IOSUpdatesInstallStatus = -2016330702
+ // IOSUpdatesInstallStatusVNotSupportedOperation undocumented
+ IOSUpdatesInstallStatusVNotSupportedOperation IOSUpdatesInstallStatus = -2016330701
+ // IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError undocumented
+ IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError IOSUpdatesInstallStatus = -2016330699
+)
+
+// IOSUpdatesInstallStatusPSuccess returns a pointer to IOSUpdatesInstallStatusVSuccess
+func IOSUpdatesInstallStatusPSuccess() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVSuccess
+ return &v
+}
+
+// IOSUpdatesInstallStatusPAvailable returns a pointer to IOSUpdatesInstallStatusVAvailable
+func IOSUpdatesInstallStatusPAvailable() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVAvailable
+ return &v
+}
+
+// IOSUpdatesInstallStatusPIdle returns a pointer to IOSUpdatesInstallStatusVIdle
+func IOSUpdatesInstallStatusPIdle() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVIdle
+ return &v
+}
+
+// IOSUpdatesInstallStatusPUnknown returns a pointer to IOSUpdatesInstallStatusVUnknown
+func IOSUpdatesInstallStatusPUnknown() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVUnknown
+ return &v
+}
+
+// IOSUpdatesInstallStatusPDownloading returns a pointer to IOSUpdatesInstallStatusVDownloading
+func IOSUpdatesInstallStatusPDownloading() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVDownloading
+ return &v
+}
+
+// IOSUpdatesInstallStatusPDownloadFailed returns a pointer to IOSUpdatesInstallStatusVDownloadFailed
+func IOSUpdatesInstallStatusPDownloadFailed() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVDownloadFailed
+ return &v
+}
+
+// IOSUpdatesInstallStatusPDownloadRequiresComputer returns a pointer to IOSUpdatesInstallStatusVDownloadRequiresComputer
+func IOSUpdatesInstallStatusPDownloadRequiresComputer() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVDownloadRequiresComputer
+ return &v
+}
+
+// IOSUpdatesInstallStatusPDownloadInsufficientSpace returns a pointer to IOSUpdatesInstallStatusVDownloadInsufficientSpace
+func IOSUpdatesInstallStatusPDownloadInsufficientSpace() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVDownloadInsufficientSpace
+ return &v
+}
+
+// IOSUpdatesInstallStatusPDownloadInsufficientPower returns a pointer to IOSUpdatesInstallStatusVDownloadInsufficientPower
+func IOSUpdatesInstallStatusPDownloadInsufficientPower() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVDownloadInsufficientPower
+ return &v
+}
+
+// IOSUpdatesInstallStatusPDownloadInsufficientNetwork returns a pointer to IOSUpdatesInstallStatusVDownloadInsufficientNetwork
+func IOSUpdatesInstallStatusPDownloadInsufficientNetwork() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVDownloadInsufficientNetwork
+ return &v
+}
+
+// IOSUpdatesInstallStatusPInstalling returns a pointer to IOSUpdatesInstallStatusVInstalling
+func IOSUpdatesInstallStatusPInstalling() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVInstalling
+ return &v
+}
+
+// IOSUpdatesInstallStatusPInstallInsufficientSpace returns a pointer to IOSUpdatesInstallStatusVInstallInsufficientSpace
+func IOSUpdatesInstallStatusPInstallInsufficientSpace() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVInstallInsufficientSpace
+ return &v
+}
+
+// IOSUpdatesInstallStatusPInstallInsufficientPower returns a pointer to IOSUpdatesInstallStatusVInstallInsufficientPower
+func IOSUpdatesInstallStatusPInstallInsufficientPower() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVInstallInsufficientPower
+ return &v
+}
+
+// IOSUpdatesInstallStatusPInstallPhoneCallInProgress returns a pointer to IOSUpdatesInstallStatusVInstallPhoneCallInProgress
+func IOSUpdatesInstallStatusPInstallPhoneCallInProgress() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVInstallPhoneCallInProgress
+ return &v
+}
+
+// IOSUpdatesInstallStatusPInstallFailed returns a pointer to IOSUpdatesInstallStatusVInstallFailed
+func IOSUpdatesInstallStatusPInstallFailed() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVInstallFailed
+ return &v
+}
+
+// IOSUpdatesInstallStatusPNotSupportedOperation returns a pointer to IOSUpdatesInstallStatusVNotSupportedOperation
+func IOSUpdatesInstallStatusPNotSupportedOperation() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVNotSupportedOperation
+ return &v
+}
+
+// IOSUpdatesInstallStatusPSharedDeviceUserLoggedInError returns a pointer to IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError
+func IOSUpdatesInstallStatusPSharedDeviceUserLoggedInError() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnConfigurationModel.go
new file mode 100644
index 00000000..af47f1b5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnConfigurationRequest.go
new file mode 100644
index 00000000..567f2569
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnSecurityAssociationParametersModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnSecurityAssociationParametersModel.go
new file mode 100644
index 00000000..5f6da1ac
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnSecurityAssociationParametersModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAction.go
new file mode 100644
index 00000000..72e70100
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAction.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/IOSVppAppAssignedDeviceLicenseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedDeviceLicenseModel.go
new file mode 100644
index 00000000..789398bd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedDeviceLicenseModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedLicenseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedLicenseModel.go
new file mode 100644
index 00000000..95ecafbe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedLicenseModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedLicenseRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedLicenseRequest.go
new file mode 100644
index 00000000..3030b0af
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedLicenseRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedUserLicenseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedUserLicenseModel.go
new file mode 100644
index 00000000..be6b8ab5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedUserLicenseModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignmentSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..cdacd968
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignmentSettingsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppModel.go
new file mode 100644
index 00000000..9570af5a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppRequest.go
new file mode 100644
index 00000000..06a1ac21
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IOSVppAppAssignedLicense collection
+func (r *IOSVppAppAssignedLicensesCollectionRequest) Get(ctx context.Context) ([]IOSVppAppAssignedLicense, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/IOSVppAppRevokeLicensesActionResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppRevokeLicensesActionResultModel.go
new file mode 100644
index 00000000..e7e75d54
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppRevokeLicensesActionResultModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppEBookAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppEBookAssignmentModel.go
new file mode 100644
index 00000000..98b7995f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppEBookAssignmentModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSVppEBookAssignment Contains properties used to assign an iOS VPP EBook to a group.
+type IOSVppEBookAssignment struct {
+ // ManagedEBookAssignment is the base model of IOSVppEBookAssignment
+ ManagedEBookAssignment
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppEBookModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppEBookModel.go
new file mode 100644
index 00000000..a851cc6b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppEBookModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSWallpaperDisplayLocationEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSWallpaperDisplayLocationEnum.go
new file mode 100644
index 00000000..bf4b54b6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSWallpaperDisplayLocationEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSWallpaperDisplayLocation undocumented
+type IOSWallpaperDisplayLocation int
+
+const (
+ // IOSWallpaperDisplayLocationVNotConfigured undocumented
+ IOSWallpaperDisplayLocationVNotConfigured IOSWallpaperDisplayLocation = 0
+ // IOSWallpaperDisplayLocationVLockScreen undocumented
+ IOSWallpaperDisplayLocationVLockScreen IOSWallpaperDisplayLocation = 1
+ // IOSWallpaperDisplayLocationVHomeScreen undocumented
+ IOSWallpaperDisplayLocationVHomeScreen IOSWallpaperDisplayLocation = 2
+ // IOSWallpaperDisplayLocationVLockAndHomeScreens undocumented
+ IOSWallpaperDisplayLocationVLockAndHomeScreens IOSWallpaperDisplayLocation = 3
+)
+
+// IOSWallpaperDisplayLocationPNotConfigured returns a pointer to IOSWallpaperDisplayLocationVNotConfigured
+func IOSWallpaperDisplayLocationPNotConfigured() *IOSWallpaperDisplayLocation {
+ v := IOSWallpaperDisplayLocationVNotConfigured
+ return &v
+}
+
+// IOSWallpaperDisplayLocationPLockScreen returns a pointer to IOSWallpaperDisplayLocationVLockScreen
+func IOSWallpaperDisplayLocationPLockScreen() *IOSWallpaperDisplayLocation {
+ v := IOSWallpaperDisplayLocationVLockScreen
+ return &v
+}
+
+// IOSWallpaperDisplayLocationPHomeScreen returns a pointer to IOSWallpaperDisplayLocationVHomeScreen
+func IOSWallpaperDisplayLocationPHomeScreen() *IOSWallpaperDisplayLocation {
+ v := IOSWallpaperDisplayLocationVHomeScreen
+ return &v
+}
+
+// IOSWallpaperDisplayLocationPLockAndHomeScreens returns a pointer to IOSWallpaperDisplayLocationVLockAndHomeScreens
+func IOSWallpaperDisplayLocationPLockAndHomeScreens() *IOSWallpaperDisplayLocation {
+ v := IOSWallpaperDisplayLocationVLockAndHomeScreens
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterAutoFilterModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterAutoFilterModel.go
new file mode 100644
index 00000000..7dfa4bd7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterAutoFilterModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterBaseModel.go
new file mode 100644
index 00000000..3188ac9b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterBaseModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSWebContentFilterBase undocumented
+type IOSWebContentFilterBase struct {
+ // Object is the base model of IOSWebContentFilterBase
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterSpecificWebsitesAccessModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterSpecificWebsitesAccessModel.go
new file mode 100644
index 00000000..00c3a0a6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterSpecificWebsitesAccessModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IOSWiFiConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSWiFiConfigurationModel.go
new file mode 100644
index 00000000..8ee8a847
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IOSWiFiConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/IPCategoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IPCategoryModel.go
new file mode 100644
index 00000000..3b88a9b9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IPCategoryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IPNamedLocationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IPNamedLocationModel.go
new file mode 100644
index 00000000..b463b02c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IPNamedLocationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IPRangeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IPRangeModel.go
new file mode 100644
index 00000000..cc38506d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IPRangeModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IPRange undocumented
+type IPRange struct {
+ // Object is the base model of IPRange
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IPReferenceDataModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IPReferenceDataModel.go
new file mode 100644
index 00000000..5e6a0e47
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IPReferenceDataModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IPSecurityProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IPSecurityProfileModel.go
new file mode 100644
index 00000000..25dcd297
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IPSecurityProfileModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/IPSecurityProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IPSecurityProfileRequest.go
new file mode 100644
index 00000000..4c946ccd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IPSecurityProfileRequest.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/matterbridge/msgraph.go/beta/IPv4CidrRangeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IPv4CidrRangeModel.go
new file mode 100644
index 00000000..7f50b060
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IPv4CidrRangeModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IPv4RangeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IPv4RangeModel.go
new file mode 100644
index 00000000..495c0f06
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IPv4RangeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/IPv6CidrRangeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IPv6CidrRangeModel.go
new file mode 100644
index 00000000..71de48bd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IPv6CidrRangeModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IPv6RangeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IPv6RangeModel.go
new file mode 100644
index 00000000..552a8862
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IPv6RangeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ITunesPairingModeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ITunesPairingModeEnum.go
new file mode 100644
index 00000000..59e639c9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ITunesPairingModeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ITunesPairingMode undocumented
+type ITunesPairingMode int
+
+const (
+ // ITunesPairingModeVDisallow undocumented
+ ITunesPairingModeVDisallow ITunesPairingMode = 0
+ // ITunesPairingModeVAllow undocumented
+ ITunesPairingModeVAllow ITunesPairingMode = 1
+ // ITunesPairingModeVRequiresCertificate undocumented
+ ITunesPairingModeVRequiresCertificate ITunesPairingMode = 2
+)
+
+// ITunesPairingModePDisallow returns a pointer to ITunesPairingModeVDisallow
+func ITunesPairingModePDisallow() *ITunesPairingMode {
+ v := ITunesPairingModeVDisallow
+ return &v
+}
+
+// ITunesPairingModePAllow returns a pointer to ITunesPairingModeVAllow
+func ITunesPairingModePAllow() *ITunesPairingMode {
+ v := ITunesPairingModeVAllow
+ return &v
+}
+
+// ITunesPairingModePRequiresCertificate returns a pointer to ITunesPairingModeVRequiresCertificate
+func ITunesPairingModePRequiresCertificate() *ITunesPairingMode {
+ v := ITunesPairingModeVRequiresCertificate
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityContainerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityContainerModel.go
new file mode 100644
index 00000000..ecc00f16
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityContainerModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IdentityContainer undocumented
+type IdentityContainer struct {
+ // Entity is the base model of IdentityContainer
+ Entity
+ // UserFlows undocumented
+ UserFlows []IdentityUserFlow `json:"userFlows,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityContainerRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityContainerRequest.go
new file mode 100644
index 00000000..14bda4a4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityContainerRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IdentityUserFlow collection
+func (r *IdentityContainerUserFlowsCollectionRequest) Get(ctx context.Context) ([]IdentityUserFlow, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityGovernanceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityGovernanceModel.go
new file mode 100644
index 00000000..d6d0ef2d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityGovernanceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IdentityGovernance undocumented
+type IdentityGovernance struct {
+ // Entity is the base model of IdentityGovernance
+ Entity
+ // EntitlementManagement undocumented
+ EntitlementManagement *EntitlementManagement `json:"entitlementManagement,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityGovernanceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityGovernanceRequest.go
new file mode 100644
index 00000000..06784d32
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityGovernanceRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// EntitlementManagement is navigation property
+func (b *IdentityGovernanceRequestBuilder) EntitlementManagement() *EntitlementManagementRequestBuilder {
+ bb := &EntitlementManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/entitlementManagement"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityModel.go
new file mode 100644
index 00000000..5cba56a0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityProviderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityProviderModel.go
new file mode 100644
index 00000000..72f9d918
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityProviderModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityProviderRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityProviderRequest.go
new file mode 100644
index 00000000..45cacbc5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityProviderRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityRiskEventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityRiskEventModel.go
new file mode 100644
index 00000000..d80118ff
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityRiskEventModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityRiskEventRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityRiskEventRequest.go
new file mode 100644
index 00000000..a9964b1f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityRiskEventRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/IdentitySetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IdentitySetModel.go
new file mode 100644
index 00000000..1d06013d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IdentitySetModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserFlowModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserFlowModel.go
new file mode 100644
index 00000000..f8af2197
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserFlowModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserFlowRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserFlowRequest.go
new file mode 100644
index 00000000..fb3bebd4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserFlowRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/IdentityUserRiskModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserRiskModel.go
new file mode 100644
index 00000000..a4d0210d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserRiskModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/ImageInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImageInfoModel.go
new file mode 100644
index 00000000..37dde817
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImageInfoModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ImageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImageModel.go
new file mode 100644
index 00000000..8349e70f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImageModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImplicitGrantSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImplicitGrantSettingsModel.go
new file mode 100644
index 00000000..414c08e7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImplicitGrantSettingsModel.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/matterbridge/msgraph.go/beta/ImportanceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportanceEnum.go
new file mode 100644
index 00000000..910018c4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportanceEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Importance undocumented
+type Importance int
+
+const (
+ // ImportanceVLow undocumented
+ ImportanceVLow Importance = 0
+ // ImportanceVNormal undocumented
+ ImportanceVNormal Importance = 1
+ // ImportanceVHigh undocumented
+ ImportanceVHigh Importance = 2
+)
+
+// ImportancePLow returns a pointer to ImportanceVLow
+func ImportancePLow() *Importance {
+ v := ImportanceVLow
+ return &v
+}
+
+// ImportancePNormal returns a pointer to ImportanceVNormal
+func ImportancePNormal() *Importance {
+ v := ImportanceVNormal
+ return &v
+}
+
+// ImportancePHigh returns a pointer to ImportanceVHigh
+func ImportancePHigh() *Importance {
+ v := ImportanceVHigh
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityAction.go
new file mode 100644
index 00000000..ba546f13
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityAction.go
@@ -0,0 +1,102 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestParameter undocumented
+type ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestParameter struct {
+ // ImportedAppleDeviceIdentities undocumented
+ ImportedAppleDeviceIdentities []ImportedAppleDeviceIdentity `json:"importedAppleDeviceIdentities,omitempty"`
+ // OverwriteImportedDeviceIdentities undocumented
+ OverwriteImportedDeviceIdentities *bool `json:"overwriteImportedDeviceIdentities,omitempty"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]ImportedAppleDeviceIdentityResult, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityModel.go
new file mode 100644
index 00000000..f447cb55
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityModel.go
@@ -0,0 +1,33 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityRequest.go
new file mode 100644
index 00000000..7c217b29
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityResultModel.go
new file mode 100644
index 00000000..f8de8429
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityAction.go
new file mode 100644
index 00000000..1a56bcdc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityAction.go
@@ -0,0 +1,190 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]ImportedDeviceIdentityResult, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]ImportedDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityModel.go
new file mode 100644
index 00000000..68d79244
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityRequest.go
new file mode 100644
index 00000000..c391fec0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityResultModel.go
new file mode 100644
index 00000000..fc81c4a9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityTypeEnum.go
new file mode 100644
index 00000000..1e21e24e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ImportedDeviceIdentityType undocumented
+type ImportedDeviceIdentityType int
+
+const (
+ // ImportedDeviceIdentityTypeVUnknown undocumented
+ ImportedDeviceIdentityTypeVUnknown ImportedDeviceIdentityType = 0
+ // ImportedDeviceIdentityTypeVImei undocumented
+ ImportedDeviceIdentityTypeVImei ImportedDeviceIdentityType = 1
+ // ImportedDeviceIdentityTypeVSerialNumber undocumented
+ ImportedDeviceIdentityTypeVSerialNumber ImportedDeviceIdentityType = 2
+)
+
+// ImportedDeviceIdentityTypePUnknown returns a pointer to ImportedDeviceIdentityTypeVUnknown
+func ImportedDeviceIdentityTypePUnknown() *ImportedDeviceIdentityType {
+ v := ImportedDeviceIdentityTypeVUnknown
+ return &v
+}
+
+// ImportedDeviceIdentityTypePImei returns a pointer to ImportedDeviceIdentityTypeVImei
+func ImportedDeviceIdentityTypePImei() *ImportedDeviceIdentityType {
+ v := ImportedDeviceIdentityTypeVImei
+ return &v
+}
+
+// ImportedDeviceIdentityTypePSerialNumber returns a pointer to ImportedDeviceIdentityTypeVSerialNumber
+func ImportedDeviceIdentityTypePSerialNumber() *ImportedDeviceIdentityType {
+ v := ImportedDeviceIdentityTypeVSerialNumber
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityAction.go
new file mode 100644
index 00000000..46894497
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityAction.go
@@ -0,0 +1,108 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestParameter undocumented
+type ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestParameter struct {
+ // ImportedWindowsAutopilotDeviceIdentities undocumented
+ ImportedWindowsAutopilotDeviceIdentities []ImportedWindowsAutopilotDeviceIdentity `json:"importedWindowsAutopilotDeviceIdentities,omitempty"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]ImportedWindowsAutopilotDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityImportStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityImportStatusEnum.go
new file mode 100644
index 00000000..c29f75ae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityImportStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ImportedWindowsAutopilotDeviceIdentityImportStatus undocumented
+type ImportedWindowsAutopilotDeviceIdentityImportStatus int
+
+const (
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown undocumented
+ ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown ImportedWindowsAutopilotDeviceIdentityImportStatus = 0
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusVPending undocumented
+ ImportedWindowsAutopilotDeviceIdentityImportStatusVPending ImportedWindowsAutopilotDeviceIdentityImportStatus = 1
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial undocumented
+ ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial ImportedWindowsAutopilotDeviceIdentityImportStatus = 2
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete undocumented
+ ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete ImportedWindowsAutopilotDeviceIdentityImportStatus = 3
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusVError undocumented
+ ImportedWindowsAutopilotDeviceIdentityImportStatusVError ImportedWindowsAutopilotDeviceIdentityImportStatus = 4
+)
+
+// ImportedWindowsAutopilotDeviceIdentityImportStatusPUnknown returns a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown
+func ImportedWindowsAutopilotDeviceIdentityImportStatusPUnknown() *ImportedWindowsAutopilotDeviceIdentityImportStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown
+ return &v
+}
+
+// ImportedWindowsAutopilotDeviceIdentityImportStatusPPending returns a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVPending
+func ImportedWindowsAutopilotDeviceIdentityImportStatusPPending() *ImportedWindowsAutopilotDeviceIdentityImportStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityImportStatusVPending
+ return &v
+}
+
+// ImportedWindowsAutopilotDeviceIdentityImportStatusPPartial returns a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial
+func ImportedWindowsAutopilotDeviceIdentityImportStatusPPartial() *ImportedWindowsAutopilotDeviceIdentityImportStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial
+ return &v
+}
+
+// ImportedWindowsAutopilotDeviceIdentityImportStatusPComplete returns a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete
+func ImportedWindowsAutopilotDeviceIdentityImportStatusPComplete() *ImportedWindowsAutopilotDeviceIdentityImportStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete
+ return &v
+}
+
+// ImportedWindowsAutopilotDeviceIdentityImportStatusPError returns a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVError
+func ImportedWindowsAutopilotDeviceIdentityImportStatusPError() *ImportedWindowsAutopilotDeviceIdentityImportStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityImportStatusVError
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityModel.go
new file mode 100644
index 00000000..b419a5e4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityRequest.go
new file mode 100644
index 00000000..ae3152ff
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityStateModel.go
new file mode 100644
index 00000000..037d092d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityStateModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadModel.go
new file mode 100644
index 00000000..d15e2af3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadRequest.go
new file mode 100644
index 00000000..5ef9c58b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ImportedWindowsAutopilotDeviceIdentity collection
+func (r *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedWindowsAutopilotDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadStatusEnum.go
new file mode 100644
index 00000000..8073038b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ImportedWindowsAutopilotDeviceIdentityUploadStatus undocumented
+type ImportedWindowsAutopilotDeviceIdentityUploadStatus int
+
+const (
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload undocumented
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload ImportedWindowsAutopilotDeviceIdentityUploadStatus = 0
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending undocumented
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending ImportedWindowsAutopilotDeviceIdentityUploadStatus = 1
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete undocumented
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete ImportedWindowsAutopilotDeviceIdentityUploadStatus = 2
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusVError undocumented
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusVError ImportedWindowsAutopilotDeviceIdentityUploadStatus = 3
+)
+
+// ImportedWindowsAutopilotDeviceIdentityUploadStatusPNoUpload returns a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload
+func ImportedWindowsAutopilotDeviceIdentityUploadStatusPNoUpload() *ImportedWindowsAutopilotDeviceIdentityUploadStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload
+ return &v
+}
+
+// ImportedWindowsAutopilotDeviceIdentityUploadStatusPPending returns a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending
+func ImportedWindowsAutopilotDeviceIdentityUploadStatusPPending() *ImportedWindowsAutopilotDeviceIdentityUploadStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending
+ return &v
+}
+
+// ImportedWindowsAutopilotDeviceIdentityUploadStatusPComplete returns a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete
+func ImportedWindowsAutopilotDeviceIdentityUploadStatusPComplete() *ImportedWindowsAutopilotDeviceIdentityUploadStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete
+ return &v
+}
+
+// ImportedWindowsAutopilotDeviceIdentityUploadStatusPError returns a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVError
+func ImportedWindowsAutopilotDeviceIdentityUploadStatusPError() *ImportedWindowsAutopilotDeviceIdentityUploadStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityUploadStatusVError
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImpossibleTravelRiskEventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImpossibleTravelRiskEventModel.go
new file mode 100644
index 00000000..c49e05fc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImpossibleTravelRiskEventModel.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/matterbridge/msgraph.go/beta/ImpossibleTravelRiskEventRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImpossibleTravelRiskEventRequest.go
new file mode 100644
index 00000000..e4e07d70
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ImpossibleTravelRiskEventRequest.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/matterbridge/msgraph.go/beta/IncomingContextModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IncomingContextModel.go
new file mode 100644
index 00000000..e927da6f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IncomingContextModel.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/matterbridge/msgraph.go/beta/IncompleteDataModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IncompleteDataModel.go
new file mode 100644
index 00000000..1e2ee640
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IncompleteDataModel.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/matterbridge/msgraph.go/beta/InferenceClassificationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationModel.go
new file mode 100644
index 00000000..4c3ef14d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationOverrideModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationOverrideModel.go
new file mode 100644
index 00000000..7202bf7b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationOverrideModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationOverrideRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationOverrideRequest.go
new file mode 100644
index 00000000..812328d7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationOverrideRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/InferenceClassificationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationRequest.go
new file mode 100644
index 00000000..047fe9f5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for InferenceClassificationOverride collection
+func (r *InferenceClassificationOverridesCollectionRequest) Get(ctx context.Context) ([]InferenceClassificationOverride, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/InferenceClassificationTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationTypeEnum.go
new file mode 100644
index 00000000..c682b8f3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InferenceClassificationType undocumented
+type InferenceClassificationType int
+
+const (
+ // InferenceClassificationTypeVFocused undocumented
+ InferenceClassificationTypeVFocused InferenceClassificationType = 0
+ // InferenceClassificationTypeVOther undocumented
+ InferenceClassificationTypeVOther InferenceClassificationType = 1
+)
+
+// InferenceClassificationTypePFocused returns a pointer to InferenceClassificationTypeVFocused
+func InferenceClassificationTypePFocused() *InferenceClassificationType {
+ v := InferenceClassificationTypeVFocused
+ return &v
+}
+
+// InferenceClassificationTypePOther returns a pointer to InferenceClassificationTypeVOther
+func InferenceClassificationTypePOther() *InferenceClassificationType {
+ v := InferenceClassificationTypeVOther
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InferenceDataModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InferenceDataModel.go
new file mode 100644
index 00000000..f4c5e693
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InferenceDataModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/InformationProtectionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionAction.go
new file mode 100644
index 00000000..3f3079a8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionAction.go
@@ -0,0 +1,42 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/InformationProtectionActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionActionModel.go
new file mode 100644
index 00000000..1d629a4b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionActionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InformationProtectionAction undocumented
+type InformationProtectionAction struct {
+ // Object is the base model of InformationProtectionAction
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionContentLabelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionContentLabelModel.go
new file mode 100644
index 00000000..6106eb08
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionContentLabelModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelAction.go
new file mode 100644
index 00000000..7c06c7cc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelAction.go
@@ -0,0 +1,315 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]InformationProtectionAction, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]InformationProtectionAction, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]InformationProtectionAction, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelModel.go
new file mode 100644
index 00000000..e1f6a8a8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelRequest.go
new file mode 100644
index 00000000..b1f55ba1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionModel.go
new file mode 100644
index 00000000..f4eeb2ae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionPolicyModel.go
new file mode 100644
index 00000000..0de7c7b6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionPolicyModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/InformationProtectionPolicyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionPolicyRequest.go
new file mode 100644
index 00000000..61f19865
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionPolicyRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for InformationProtectionLabel collection
+func (r *InformationProtectionPolicyLabelsCollectionRequest) Get(ctx context.Context) ([]InformationProtectionLabel, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/InformationProtectionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionRequest.go
new file mode 100644
index 00000000..92ec92ba
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionRequest.go
@@ -0,0 +1,341 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DataLossPreventionPolicy collection
+func (r *InformationProtectionDataLossPreventionPoliciesCollectionRequest) Get(ctx context.Context) ([]DataLossPreventionPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SensitivityLabel collection
+func (r *InformationProtectionSensitivityLabelsCollectionRequest) Get(ctx context.Context) ([]SensitivityLabel, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ThreatAssessmentRequestObject collection
+func (r *InformationProtectionThreatAssessmentRequestsCollectionRequest) Get(ctx context.Context) ([]ThreatAssessmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InformationalURLModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InformationalURLModel.go
new file mode 100644
index 00000000..53503183
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InformationalURLModel.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/matterbridge/msgraph.go/beta/InitiatorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InitiatorModel.go
new file mode 100644
index 00000000..c2798980
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InitiatorModel.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/matterbridge/msgraph.go/beta/InitiatorTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/InitiatorTypeEnum.go
new file mode 100644
index 00000000..b57df40e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InitiatorTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InitiatorType undocumented
+type InitiatorType int
+
+const (
+ // InitiatorTypeVUser undocumented
+ InitiatorTypeVUser InitiatorType = 0
+ // InitiatorTypeVApp undocumented
+ InitiatorTypeVApp InitiatorType = 1
+ // InitiatorTypeVSystem undocumented
+ InitiatorTypeVSystem InitiatorType = 2
+ // InitiatorTypeVUnknownFutureValue undocumented
+ InitiatorTypeVUnknownFutureValue InitiatorType = 3
+)
+
+// InitiatorTypePUser returns a pointer to InitiatorTypeVUser
+func InitiatorTypePUser() *InitiatorType {
+ v := InitiatorTypeVUser
+ return &v
+}
+
+// InitiatorTypePApp returns a pointer to InitiatorTypeVApp
+func InitiatorTypePApp() *InitiatorType {
+ v := InitiatorTypeVApp
+ return &v
+}
+
+// InitiatorTypePSystem returns a pointer to InitiatorTypeVSystem
+func InitiatorTypePSystem() *InitiatorType {
+ v := InitiatorTypeVSystem
+ return &v
+}
+
+// InitiatorTypePUnknownFutureValue returns a pointer to InitiatorTypeVUnknownFutureValue
+func InitiatorTypePUnknownFutureValue() *InitiatorType {
+ v := InitiatorTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InkAccessSettingEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/InkAccessSettingEnum.go
new file mode 100644
index 00000000..d73d088f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InkAccessSettingEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InkAccessSetting undocumented
+type InkAccessSetting int
+
+const (
+ // InkAccessSettingVNotConfigured undocumented
+ InkAccessSettingVNotConfigured InkAccessSetting = 0
+ // InkAccessSettingVEnabled undocumented
+ InkAccessSettingVEnabled InkAccessSetting = 1
+ // InkAccessSettingVDisabled undocumented
+ InkAccessSettingVDisabled InkAccessSetting = 2
+)
+
+// InkAccessSettingPNotConfigured returns a pointer to InkAccessSettingVNotConfigured
+func InkAccessSettingPNotConfigured() *InkAccessSetting {
+ v := InkAccessSettingVNotConfigured
+ return &v
+}
+
+// InkAccessSettingPEnabled returns a pointer to InkAccessSettingVEnabled
+func InkAccessSettingPEnabled() *InkAccessSetting {
+ v := InkAccessSettingVEnabled
+ return &v
+}
+
+// InkAccessSettingPDisabled returns a pointer to InkAccessSettingVDisabled
+func InkAccessSettingPDisabled() *InkAccessSetting {
+ v := InkAccessSettingVDisabled
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InnerErrorDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InnerErrorDetailModel.go
new file mode 100644
index 00000000..4286e8a2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InnerErrorDetailModel.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/matterbridge/msgraph.go/beta/InsightIdentityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InsightIdentityModel.go
new file mode 100644
index 00000000..50e363d0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InsightIdentityModel.go
@@ -0,0 +1,15 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InsightValueDoubleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InsightValueDoubleModel.go
new file mode 100644
index 00000000..913ca57d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InsightValueDoubleModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InsightValueDouble undocumented
+type InsightValueDouble struct {
+ // UserExperienceAnalyticsInsightValue is the base model of InsightValueDouble
+ UserExperienceAnalyticsInsightValue
+ // Value undocumented
+ Value *float64 `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InsightValueIntModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InsightValueIntModel.go
new file mode 100644
index 00000000..9e354f10
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InsightValueIntModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/InstallIntentEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/InstallIntentEnum.go
new file mode 100644
index 00000000..b89abc08
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InstallIntentEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InstallIntent undocumented
+type InstallIntent int
+
+const (
+ // InstallIntentVAvailable undocumented
+ InstallIntentVAvailable InstallIntent = 0
+ // InstallIntentVRequired undocumented
+ InstallIntentVRequired InstallIntent = 1
+ // InstallIntentVUninstall undocumented
+ InstallIntentVUninstall InstallIntent = 2
+ // InstallIntentVAvailableWithoutEnrollment undocumented
+ InstallIntentVAvailableWithoutEnrollment InstallIntent = 3
+)
+
+// InstallIntentPAvailable returns a pointer to InstallIntentVAvailable
+func InstallIntentPAvailable() *InstallIntent {
+ v := InstallIntentVAvailable
+ return &v
+}
+
+// InstallIntentPRequired returns a pointer to InstallIntentVRequired
+func InstallIntentPRequired() *InstallIntent {
+ v := InstallIntentVRequired
+ return &v
+}
+
+// InstallIntentPUninstall returns a pointer to InstallIntentVUninstall
+func InstallIntentPUninstall() *InstallIntent {
+ v := InstallIntentVUninstall
+ return &v
+}
+
+// InstallIntentPAvailableWithoutEnrollment returns a pointer to InstallIntentVAvailableWithoutEnrollment
+func InstallIntentPAvailableWithoutEnrollment() *InstallIntent {
+ v := InstallIntentVAvailableWithoutEnrollment
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InstallStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/InstallStateEnum.go
new file mode 100644
index 00000000..8d334cb4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InstallStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InstallState undocumented
+type InstallState int
+
+const (
+ // InstallStateVNotApplicable undocumented
+ InstallStateVNotApplicable InstallState = 0
+ // InstallStateVInstalled undocumented
+ InstallStateVInstalled InstallState = 1
+ // InstallStateVFailed undocumented
+ InstallStateVFailed InstallState = 2
+ // InstallStateVNotInstalled undocumented
+ InstallStateVNotInstalled InstallState = 3
+ // InstallStateVUninstallFailed undocumented
+ InstallStateVUninstallFailed InstallState = 4
+ // InstallStateVUnknown undocumented
+ InstallStateVUnknown InstallState = 5
+)
+
+// InstallStatePNotApplicable returns a pointer to InstallStateVNotApplicable
+func InstallStatePNotApplicable() *InstallState {
+ v := InstallStateVNotApplicable
+ return &v
+}
+
+// InstallStatePInstalled returns a pointer to InstallStateVInstalled
+func InstallStatePInstalled() *InstallState {
+ v := InstallStateVInstalled
+ return &v
+}
+
+// InstallStatePFailed returns a pointer to InstallStateVFailed
+func InstallStatePFailed() *InstallState {
+ v := InstallStateVFailed
+ return &v
+}
+
+// InstallStatePNotInstalled returns a pointer to InstallStateVNotInstalled
+func InstallStatePNotInstalled() *InstallState {
+ v := InstallStateVNotInstalled
+ return &v
+}
+
+// InstallStatePUninstallFailed returns a pointer to InstallStateVUninstallFailed
+func InstallStatePUninstallFailed() *InstallState {
+ v := InstallStateVUninstallFailed
+ return &v
+}
+
+// InstallStatePUnknown returns a pointer to InstallStateVUnknown
+func InstallStatePUnknown() *InstallState {
+ v := InstallStateVUnknown
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InstanceResourceAccessModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InstanceResourceAccessModel.go
new file mode 100644
index 00000000..fc8b830e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InstanceResourceAccessModel.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/matterbridge/msgraph.go/beta/InstitutionDataModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InstitutionDataModel.go
new file mode 100644
index 00000000..d23f4841
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InstitutionDataModel.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/matterbridge/msgraph.go/beta/IntendedPurposeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/IntendedPurposeEnum.go
new file mode 100644
index 00000000..37a6036a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IntendedPurposeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IntendedPurpose undocumented
+type IntendedPurpose int
+
+const (
+ // IntendedPurposeVUnassigned undocumented
+ IntendedPurposeVUnassigned IntendedPurpose = 1
+ // IntendedPurposeVSmimeEncryption undocumented
+ IntendedPurposeVSmimeEncryption IntendedPurpose = 2
+ // IntendedPurposeVSmimeSigning undocumented
+ IntendedPurposeVSmimeSigning IntendedPurpose = 3
+ // IntendedPurposeVVpn undocumented
+ IntendedPurposeVVpn IntendedPurpose = 4
+ // IntendedPurposeVWifi undocumented
+ IntendedPurposeVWifi IntendedPurpose = 5
+)
+
+// IntendedPurposePUnassigned returns a pointer to IntendedPurposeVUnassigned
+func IntendedPurposePUnassigned() *IntendedPurpose {
+ v := IntendedPurposeVUnassigned
+ return &v
+}
+
+// IntendedPurposePSmimeEncryption returns a pointer to IntendedPurposeVSmimeEncryption
+func IntendedPurposePSmimeEncryption() *IntendedPurpose {
+ v := IntendedPurposeVSmimeEncryption
+ return &v
+}
+
+// IntendedPurposePSmimeSigning returns a pointer to IntendedPurposeVSmimeSigning
+func IntendedPurposePSmimeSigning() *IntendedPurpose {
+ v := IntendedPurposeVSmimeSigning
+ return &v
+}
+
+// IntendedPurposePVpn returns a pointer to IntendedPurposeVVpn
+func IntendedPurposePVpn() *IntendedPurpose {
+ v := IntendedPurposeVVpn
+ return &v
+}
+
+// IntendedPurposePWifi returns a pointer to IntendedPurposeVWifi
+func IntendedPurposePWifi() *IntendedPurpose {
+ v := IntendedPurposeVWifi
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InternetExplorerMessageSettingEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/InternetExplorerMessageSettingEnum.go
new file mode 100644
index 00000000..67bbdd93
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InternetExplorerMessageSettingEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InternetExplorerMessageSetting undocumented
+type InternetExplorerMessageSetting int
+
+const (
+ // InternetExplorerMessageSettingVNotConfigured undocumented
+ InternetExplorerMessageSettingVNotConfigured InternetExplorerMessageSetting = 0
+ // InternetExplorerMessageSettingVDisabled undocumented
+ InternetExplorerMessageSettingVDisabled InternetExplorerMessageSetting = 1
+ // InternetExplorerMessageSettingVEnabled undocumented
+ InternetExplorerMessageSettingVEnabled InternetExplorerMessageSetting = 2
+ // InternetExplorerMessageSettingVKeepGoing undocumented
+ InternetExplorerMessageSettingVKeepGoing InternetExplorerMessageSetting = 3
+)
+
+// InternetExplorerMessageSettingPNotConfigured returns a pointer to InternetExplorerMessageSettingVNotConfigured
+func InternetExplorerMessageSettingPNotConfigured() *InternetExplorerMessageSetting {
+ v := InternetExplorerMessageSettingVNotConfigured
+ return &v
+}
+
+// InternetExplorerMessageSettingPDisabled returns a pointer to InternetExplorerMessageSettingVDisabled
+func InternetExplorerMessageSettingPDisabled() *InternetExplorerMessageSetting {
+ v := InternetExplorerMessageSettingVDisabled
+ return &v
+}
+
+// InternetExplorerMessageSettingPEnabled returns a pointer to InternetExplorerMessageSettingVEnabled
+func InternetExplorerMessageSettingPEnabled() *InternetExplorerMessageSetting {
+ v := InternetExplorerMessageSettingVEnabled
+ return &v
+}
+
+// InternetExplorerMessageSettingPKeepGoing returns a pointer to InternetExplorerMessageSettingVKeepGoing
+func InternetExplorerMessageSettingPKeepGoing() *InternetExplorerMessageSetting {
+ v := InternetExplorerMessageSettingVKeepGoing
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InternetMessageHeaderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InternetMessageHeaderModel.go
new file mode 100644
index 00000000..4e6d0fb2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InternetMessageHeaderModel.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/matterbridge/msgraph.go/beta/InternetSiteSecurityLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/InternetSiteSecurityLevelEnum.go
new file mode 100644
index 00000000..4d9f070e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InternetSiteSecurityLevelEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InternetSiteSecurityLevel undocumented
+type InternetSiteSecurityLevel int
+
+const (
+ // InternetSiteSecurityLevelVUserDefined undocumented
+ InternetSiteSecurityLevelVUserDefined InternetSiteSecurityLevel = 0
+ // InternetSiteSecurityLevelVMedium undocumented
+ InternetSiteSecurityLevelVMedium InternetSiteSecurityLevel = 1
+ // InternetSiteSecurityLevelVMediumHigh undocumented
+ InternetSiteSecurityLevelVMediumHigh InternetSiteSecurityLevel = 2
+ // InternetSiteSecurityLevelVHigh undocumented
+ InternetSiteSecurityLevelVHigh InternetSiteSecurityLevel = 3
+)
+
+// InternetSiteSecurityLevelPUserDefined returns a pointer to InternetSiteSecurityLevelVUserDefined
+func InternetSiteSecurityLevelPUserDefined() *InternetSiteSecurityLevel {
+ v := InternetSiteSecurityLevelVUserDefined
+ return &v
+}
+
+// InternetSiteSecurityLevelPMedium returns a pointer to InternetSiteSecurityLevelVMedium
+func InternetSiteSecurityLevelPMedium() *InternetSiteSecurityLevel {
+ v := InternetSiteSecurityLevelVMedium
+ return &v
+}
+
+// InternetSiteSecurityLevelPMediumHigh returns a pointer to InternetSiteSecurityLevelVMediumHigh
+func InternetSiteSecurityLevelPMediumHigh() *InternetSiteSecurityLevel {
+ v := InternetSiteSecurityLevelVMediumHigh
+ return &v
+}
+
+// InternetSiteSecurityLevelPHigh returns a pointer to InternetSiteSecurityLevelVHigh
+func InternetSiteSecurityLevelPHigh() *InternetSiteSecurityLevel {
+ v := InternetSiteSecurityLevelVHigh
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandModel.go
new file mode 100644
index 00000000..13a78b54
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandModel.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAction.go
new file mode 100644
index 00000000..7d07e985
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IntuneBrandingProfileAssignRequestParameter undocumented
+type IntuneBrandingProfileAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []IntuneBrandingProfileAssignment `json:"assignments,omitempty"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/IntuneBrandingProfileAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAssignmentModel.go
new file mode 100644
index 00000000..d27e8777
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/IntuneBrandingProfileAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAssignmentRequest.go
new file mode 100644
index 00000000..cc88068c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileModel.go
new file mode 100644
index 00000000..a5aa919b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileModel.go
@@ -0,0 +1,63 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileRequest.go
new file mode 100644
index 00000000..92de586f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IntuneBrandingProfileAssignment collection
+func (r *IntuneBrandingProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]IntuneBrandingProfileAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/InvitationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InvitationModel.go
new file mode 100644
index 00000000..f97d5feb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InvitationModel.go
@@ -0,0 +1,29 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InvitationParticipantInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InvitationParticipantInfoModel.go
new file mode 100644
index 00000000..3cd99e65
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InvitationParticipantInfoModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/InvitationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/InvitationRequest.go
new file mode 100644
index 00000000..1636cd09
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InvitationRequest.go
@@ -0,0 +1,45 @@
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/InviteParticipantsOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InviteParticipantsOperationModel.go
new file mode 100644
index 00000000..6c83a995
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InviteParticipantsOperationModel.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/matterbridge/msgraph.go/beta/InvitedUserMessageInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InvitedUserMessageInfoModel.go
new file mode 100644
index 00000000..03714128
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/InvitedUserMessageInfoModel.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/matterbridge/msgraph.go/beta/IosikEv2VpnConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IosikEv2VpnConfigurationModel.go
new file mode 100644
index 00000000..038bd70a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/IosikEv2VpnConfigurationModel.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/matterbridge/msgraph.go/beta/ItemActionSetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActionSetModel.go
new file mode 100644
index 00000000..f42c996a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActionSetModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActionStatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActionStatModel.go
new file mode 100644
index 00000000..ec30c74e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActionStatModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityModel.go
new file mode 100644
index 00000000..ea191202
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityOLDModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityOLDModel.go
new file mode 100644
index 00000000..aecfd61a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityOLDModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityOLDRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityOLDRequest.go
new file mode 100644
index 00000000..ac5877d0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityOLDRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityRequest.go
new file mode 100644
index 00000000..3027b02a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// DriveItem is navigation property
+func (b *ItemActivityRequestBuilder) DriveItem() *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/driveItem"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityStatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityStatModel.go
new file mode 100644
index 00000000..73bc8873
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityStatModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityStatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityStatRequest.go
new file mode 100644
index 00000000..2e3595ea
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityStatRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemActivity collection
+func (r *ItemActivityStatActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityTimeSetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityTimeSetModel.go
new file mode 100644
index 00000000..7f59f89a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityTimeSetModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemAnalyticsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemAnalyticsModel.go
new file mode 100644
index 00000000..d1e53b6f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemAnalyticsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemAnalyticsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemAnalyticsRequest.go
new file mode 100644
index 00000000..f430f426
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemAnalyticsRequest.go
@@ -0,0 +1,153 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemActivityStat collection
+func (r *ItemAnalyticsItemActivityStatsCollectionRequest) Get(ctx context.Context) ([]ItemActivityStat, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemAttachmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemAttachmentModel.go
new file mode 100644
index 00000000..23b043fb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemAttachmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ItemAttachment undocumented
+type ItemAttachment struct {
+ // Attachment is the base model of ItemAttachment
+ Attachment
+ // Item undocumented
+ Item *OutlookItem `json:"item,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemAttachmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemAttachmentRequest.go
new file mode 100644
index 00000000..87fd32fa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemAttachmentRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/ItemBodyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemBodyModel.go
new file mode 100644
index 00000000..9db08b8d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemBodyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemCategoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemCategoryModel.go
new file mode 100644
index 00000000..ddcee146
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemCategoryModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemCategoryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemCategoryRequest.go
new file mode 100644
index 00000000..880e760d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemCategoryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemEmailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemEmailModel.go
new file mode 100644
index 00000000..737d583c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemEmailModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemEmailRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemEmailRequest.go
new file mode 100644
index 00000000..13d1aefd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemEmailRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemFacetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemFacetModel.go
new file mode 100644
index 00000000..e98e4267
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemFacetModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemModel.go
new file mode 100644
index 00000000..be9e100c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemModel.go
@@ -0,0 +1,45 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemPhoneModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemPhoneModel.go
new file mode 100644
index 00000000..b3a8a939
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemPhoneModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemPhoneRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemPhoneRequest.go
new file mode 100644
index 00000000..fca2c79d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemPhoneRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/ItemPreviewInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemPreviewInfoModel.go
new file mode 100644
index 00000000..c11ab480
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemPreviewInfoModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ItemReferenceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemReferenceModel.go
new file mode 100644
index 00000000..8d7a88c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemReferenceModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ItemRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ItemRequest.go
new file mode 100644
index 00000000..996c3dc6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ItemRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Picture collection
+func (r *ItemPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/JSONModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/JSONModel.go
new file mode 100644
index 00000000..ae844bbe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/JSONModel.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/matterbridge/msgraph.go/beta/JobResponseBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/JobResponseBaseModel.go
new file mode 100644
index 00000000..0b2d2712
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/JobResponseBaseModel.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/matterbridge/msgraph.go/beta/JobResponseBaseRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/JobResponseBaseRequest.go
new file mode 100644
index 00000000..bdc5ffa9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/JobResponseBaseRequest.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/matterbridge/msgraph.go/beta/JournalAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/JournalAction.go
new file mode 100644
index 00000000..df0bbd66
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/JournalAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// JournalPostRequestParameter undocumented
+type JournalPostRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/JournalLineModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/JournalLineModel.go
new file mode 100644
index 00000000..69464022
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/JournalLineModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `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/matterbridge/msgraph.go/beta/JournalLineRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/JournalLineRequest.go
new file mode 100644
index 00000000..25342524
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/JournalLineRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/JournalModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/JournalModel.go
new file mode 100644
index 00000000..dc1a127a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/JournalModel.go
@@ -0,0 +1,25 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/JournalRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/JournalRequest.go
new file mode 100644
index 00000000..674f311b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/JournalRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JournalLine collection
+func (r *JournalJournalLinesCollectionRequest) Get(ctx context.Context) ([]JournalLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/JustifyActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/JustifyActionModel.go
new file mode 100644
index 00000000..6e53ec1c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/JustifyActionModel.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/matterbridge/msgraph.go/beta/KerberosSingleSignOnExtensionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/KerberosSingleSignOnExtensionModel.go
new file mode 100644
index 00000000..12f18230
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/KerberosSingleSignOnExtensionModel.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/matterbridge/msgraph.go/beta/KeyBooleanValuePairModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/KeyBooleanValuePairModel.go
new file mode 100644
index 00000000..10167bf7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/KeyBooleanValuePairModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/KeyCredentialModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/KeyCredentialModel.go
new file mode 100644
index 00000000..77967012
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/KeyCredentialModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/KeyIntegerValuePairModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/KeyIntegerValuePairModel.go
new file mode 100644
index 00000000..4cd17b48
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/KeyIntegerValuePairModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/KeyRealValuePairModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/KeyRealValuePairModel.go
new file mode 100644
index 00000000..fcbe3cbd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/KeyRealValuePairModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/KeySizeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/KeySizeEnum.go
new file mode 100644
index 00000000..c620297b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/KeySizeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KeySize undocumented
+type KeySize int
+
+const (
+ // KeySizeVSize1024 undocumented
+ KeySizeVSize1024 KeySize = 0
+ // KeySizeVSize2048 undocumented
+ KeySizeVSize2048 KeySize = 1
+)
+
+// KeySizePSize1024 returns a pointer to KeySizeVSize1024
+func KeySizePSize1024() *KeySize {
+ v := KeySizeVSize1024
+ return &v
+}
+
+// KeySizePSize2048 returns a pointer to KeySizeVSize2048
+func KeySizePSize2048() *KeySize {
+ v := KeySizeVSize2048
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/KeyStorageProviderOptionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/KeyStorageProviderOptionEnum.go
new file mode 100644
index 00000000..b3860f22
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/KeyStorageProviderOptionEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KeyStorageProviderOption undocumented
+type KeyStorageProviderOption int
+
+const (
+ // KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp undocumented
+ KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp KeyStorageProviderOption = 0
+ // KeyStorageProviderOptionVUseTpmKspOtherwiseFail undocumented
+ KeyStorageProviderOptionVUseTpmKspOtherwiseFail KeyStorageProviderOption = 1
+ // KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail undocumented
+ KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail KeyStorageProviderOption = 2
+ // KeyStorageProviderOptionVUseSoftwareKsp undocumented
+ KeyStorageProviderOptionVUseSoftwareKsp KeyStorageProviderOption = 3
+)
+
+// KeyStorageProviderOptionPUseTpmKspOtherwiseUseSoftwareKsp returns a pointer to KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp
+func KeyStorageProviderOptionPUseTpmKspOtherwiseUseSoftwareKsp() *KeyStorageProviderOption {
+ v := KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp
+ return &v
+}
+
+// KeyStorageProviderOptionPUseTpmKspOtherwiseFail returns a pointer to KeyStorageProviderOptionVUseTpmKspOtherwiseFail
+func KeyStorageProviderOptionPUseTpmKspOtherwiseFail() *KeyStorageProviderOption {
+ v := KeyStorageProviderOptionVUseTpmKspOtherwiseFail
+ return &v
+}
+
+// KeyStorageProviderOptionPUsePassportForWorkKspOtherwiseFail returns a pointer to KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail
+func KeyStorageProviderOptionPUsePassportForWorkKspOtherwiseFail() *KeyStorageProviderOption {
+ v := KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail
+ return &v
+}
+
+// KeyStorageProviderOptionPUseSoftwareKsp returns a pointer to KeyStorageProviderOptionVUseSoftwareKsp
+func KeyStorageProviderOptionPUseSoftwareKsp() *KeyStorageProviderOption {
+ v := KeyStorageProviderOptionVUseSoftwareKsp
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/KeyStringValuePairModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/KeyStringValuePairModel.go
new file mode 100644
index 00000000..2254f761
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/KeyStringValuePairModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/KeyTypedValuePairModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/KeyTypedValuePairModel.go
new file mode 100644
index 00000000..2d1200eb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/KeyTypedValuePairModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/KeyUsagesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/KeyUsagesEnum.go
new file mode 100644
index 00000000..0a58c199
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/KeyUsagesEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KeyUsages undocumented
+type KeyUsages int
+
+const (
+ // KeyUsagesVKeyEncipherment undocumented
+ KeyUsagesVKeyEncipherment KeyUsages = 1
+ // KeyUsagesVDigitalSignature undocumented
+ KeyUsagesVDigitalSignature KeyUsages = 2
+)
+
+// KeyUsagesPKeyEncipherment returns a pointer to KeyUsagesVKeyEncipherment
+func KeyUsagesPKeyEncipherment() *KeyUsages {
+ v := KeyUsagesVKeyEncipherment
+ return &v
+}
+
+// KeyUsagesPDigitalSignature returns a pointer to KeyUsagesVDigitalSignature
+func KeyUsagesPDigitalSignature() *KeyUsages {
+ v := KeyUsagesVDigitalSignature
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/KeyValueModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/KeyValueModel.go
new file mode 100644
index 00000000..a04cb81d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/KeyValueModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/KeyValuePairModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/KeyValuePairModel.go
new file mode 100644
index 00000000..0ba1f721
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/KeyValuePairModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/LabelActionBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LabelActionBaseModel.go
new file mode 100644
index 00000000..d0b24709
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LabelActionBaseModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LabelDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LabelDetailsModel.go
new file mode 100644
index 00000000..b3e5a8a4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LabelDetailsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LabelPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LabelPolicyModel.go
new file mode 100644
index 00000000..7f064102
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LabelPolicyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/LabelingOptionsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LabelingOptionsModel.go
new file mode 100644
index 00000000..16790a31
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LabelingOptionsModel.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/matterbridge/msgraph.go/beta/LanManagerAuthenticationLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LanManagerAuthenticationLevelEnum.go
new file mode 100644
index 00000000..2c01a91a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LanManagerAuthenticationLevelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LanManagerAuthenticationLevel undocumented
+type LanManagerAuthenticationLevel int
+
+const (
+ // LanManagerAuthenticationLevelVLmAndNltm undocumented
+ LanManagerAuthenticationLevelVLmAndNltm LanManagerAuthenticationLevel = 0
+ // LanManagerAuthenticationLevelVLmNtlmAndNtlmV2 undocumented
+ LanManagerAuthenticationLevelVLmNtlmAndNtlmV2 LanManagerAuthenticationLevel = 1
+ // LanManagerAuthenticationLevelVLmAndNtlmOnly undocumented
+ LanManagerAuthenticationLevelVLmAndNtlmOnly LanManagerAuthenticationLevel = 2
+ // LanManagerAuthenticationLevelVLmAndNtlmV2 undocumented
+ LanManagerAuthenticationLevelVLmAndNtlmV2 LanManagerAuthenticationLevel = 3
+ // LanManagerAuthenticationLevelVLmNtlmV2AndNotLm undocumented
+ LanManagerAuthenticationLevelVLmNtlmV2AndNotLm LanManagerAuthenticationLevel = 4
+ // LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm undocumented
+ LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm LanManagerAuthenticationLevel = 5
+)
+
+// LanManagerAuthenticationLevelPLmAndNltm returns a pointer to LanManagerAuthenticationLevelVLmAndNltm
+func LanManagerAuthenticationLevelPLmAndNltm() *LanManagerAuthenticationLevel {
+ v := LanManagerAuthenticationLevelVLmAndNltm
+ return &v
+}
+
+// LanManagerAuthenticationLevelPLmNtlmAndNtlmV2 returns a pointer to LanManagerAuthenticationLevelVLmNtlmAndNtlmV2
+func LanManagerAuthenticationLevelPLmNtlmAndNtlmV2() *LanManagerAuthenticationLevel {
+ v := LanManagerAuthenticationLevelVLmNtlmAndNtlmV2
+ return &v
+}
+
+// LanManagerAuthenticationLevelPLmAndNtlmOnly returns a pointer to LanManagerAuthenticationLevelVLmAndNtlmOnly
+func LanManagerAuthenticationLevelPLmAndNtlmOnly() *LanManagerAuthenticationLevel {
+ v := LanManagerAuthenticationLevelVLmAndNtlmOnly
+ return &v
+}
+
+// LanManagerAuthenticationLevelPLmAndNtlmV2 returns a pointer to LanManagerAuthenticationLevelVLmAndNtlmV2
+func LanManagerAuthenticationLevelPLmAndNtlmV2() *LanManagerAuthenticationLevel {
+ v := LanManagerAuthenticationLevelVLmAndNtlmV2
+ return &v
+}
+
+// LanManagerAuthenticationLevelPLmNtlmV2AndNotLm returns a pointer to LanManagerAuthenticationLevelVLmNtlmV2AndNotLm
+func LanManagerAuthenticationLevelPLmNtlmV2AndNotLm() *LanManagerAuthenticationLevel {
+ v := LanManagerAuthenticationLevelVLmNtlmV2AndNotLm
+ return &v
+}
+
+// LanManagerAuthenticationLevelPLmNtlmV2AndNotLmOrNtm returns a pointer to LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm
+func LanManagerAuthenticationLevelPLmNtlmV2AndNotLmOrNtm() *LanManagerAuthenticationLevel {
+ v := LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyLevelEnum.go
new file mode 100644
index 00000000..527ed3d7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyLevelEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LanguageProficiencyLevel undocumented
+type LanguageProficiencyLevel int
+
+const (
+ // LanguageProficiencyLevelVElementary undocumented
+ LanguageProficiencyLevelVElementary LanguageProficiencyLevel = 0
+ // LanguageProficiencyLevelVConversational undocumented
+ LanguageProficiencyLevelVConversational LanguageProficiencyLevel = 1
+ // LanguageProficiencyLevelVLimitedWorking undocumented
+ LanguageProficiencyLevelVLimitedWorking LanguageProficiencyLevel = 2
+ // LanguageProficiencyLevelVProfessionalWorking undocumented
+ LanguageProficiencyLevelVProfessionalWorking LanguageProficiencyLevel = 3
+ // LanguageProficiencyLevelVFullProfessional undocumented
+ LanguageProficiencyLevelVFullProfessional LanguageProficiencyLevel = 4
+ // LanguageProficiencyLevelVNativeOrBilingual undocumented
+ LanguageProficiencyLevelVNativeOrBilingual LanguageProficiencyLevel = 5
+ // LanguageProficiencyLevelVUnknownFutureValue undocumented
+ LanguageProficiencyLevelVUnknownFutureValue LanguageProficiencyLevel = 6
+)
+
+// LanguageProficiencyLevelPElementary returns a pointer to LanguageProficiencyLevelVElementary
+func LanguageProficiencyLevelPElementary() *LanguageProficiencyLevel {
+ v := LanguageProficiencyLevelVElementary
+ return &v
+}
+
+// LanguageProficiencyLevelPConversational returns a pointer to LanguageProficiencyLevelVConversational
+func LanguageProficiencyLevelPConversational() *LanguageProficiencyLevel {
+ v := LanguageProficiencyLevelVConversational
+ return &v
+}
+
+// LanguageProficiencyLevelPLimitedWorking returns a pointer to LanguageProficiencyLevelVLimitedWorking
+func LanguageProficiencyLevelPLimitedWorking() *LanguageProficiencyLevel {
+ v := LanguageProficiencyLevelVLimitedWorking
+ return &v
+}
+
+// LanguageProficiencyLevelPProfessionalWorking returns a pointer to LanguageProficiencyLevelVProfessionalWorking
+func LanguageProficiencyLevelPProfessionalWorking() *LanguageProficiencyLevel {
+ v := LanguageProficiencyLevelVProfessionalWorking
+ return &v
+}
+
+// LanguageProficiencyLevelPFullProfessional returns a pointer to LanguageProficiencyLevelVFullProfessional
+func LanguageProficiencyLevelPFullProfessional() *LanguageProficiencyLevel {
+ v := LanguageProficiencyLevelVFullProfessional
+ return &v
+}
+
+// LanguageProficiencyLevelPNativeOrBilingual returns a pointer to LanguageProficiencyLevelVNativeOrBilingual
+func LanguageProficiencyLevelPNativeOrBilingual() *LanguageProficiencyLevel {
+ v := LanguageProficiencyLevelVNativeOrBilingual
+ return &v
+}
+
+// LanguageProficiencyLevelPUnknownFutureValue returns a pointer to LanguageProficiencyLevelVUnknownFutureValue
+func LanguageProficiencyLevelPUnknownFutureValue() *LanguageProficiencyLevel {
+ v := LanguageProficiencyLevelVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyModel.go
new file mode 100644
index 00000000..499a03a9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyModel.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/matterbridge/msgraph.go/beta/LanguageProficiencyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyRequest.go
new file mode 100644
index 00000000..e16707c6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyRequest.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/matterbridge/msgraph.go/beta/LeakedCredentialsRiskEventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LeakedCredentialsRiskEventModel.go
new file mode 100644
index 00000000..9f111932
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LeakedCredentialsRiskEventModel.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/matterbridge/msgraph.go/beta/LeakedCredentialsRiskEventRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/LeakedCredentialsRiskEventRequest.go
new file mode 100644
index 00000000..74784d7d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LeakedCredentialsRiskEventRequest.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/matterbridge/msgraph.go/beta/LearnedLocationModelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LearnedLocationModelModel.go
new file mode 100644
index 00000000..216c9422
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LearnedLocationModelModel.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/matterbridge/msgraph.go/beta/LicenseAssignmentStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LicenseAssignmentStateModel.go
new file mode 100644
index 00000000..4be42bf7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LicenseAssignmentStateModel.go
@@ -0,0 +1,19 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LicenseDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LicenseDetailsModel.go
new file mode 100644
index 00000000..b19356cb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LicenseDetailsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LicenseDetailsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/LicenseDetailsRequest.go
new file mode 100644
index 00000000..50430177
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LicenseDetailsRequest.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/matterbridge/msgraph.go/beta/LicenseInfoDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LicenseInfoDetailModel.go
new file mode 100644
index 00000000..850ad2f8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LicenseInfoDetailModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LicenseProcessingStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LicenseProcessingStateModel.go
new file mode 100644
index 00000000..89c2f4bb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LicenseProcessingStateModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LicenseProcessingState undocumented
+type LicenseProcessingState struct {
+ // Object is the base model of LicenseProcessingState
+ Object
+ // State undocumented
+ State *string `json:"state,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LicenseUnitsDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LicenseUnitsDetailModel.go
new file mode 100644
index 00000000..50ebfcd1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LicenseUnitsDetailModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ListInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ListInfoModel.go
new file mode 100644
index 00000000..bb58a275
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ListInfoModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ListItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ListItemModel.go
new file mode 100644
index 00000000..d6ef73cb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ListItemModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ListItemRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ListItemRequest.go
new file mode 100644
index 00000000..2523ab2e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ListItemRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemActivityOLD collection
+func (r *ListItemActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ListItemVersion collection
+func (r *ListItemVersionsCollectionRequest) Get(ctx context.Context) ([]ListItemVersion, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionAction.go
new file mode 100644
index 00000000..05ca2676
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ListItemVersionRestoreVersionRequestParameter undocumented
+type ListItemVersionRestoreVersionRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/ListItemVersionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionModel.go
new file mode 100644
index 00000000..88b6e707
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ListItemVersionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionRequest.go
new file mode 100644
index 00000000..62cb0666
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/ListModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ListModel.go
new file mode 100644
index 00000000..ddf68195
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ListModel.go
@@ -0,0 +1,29 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ListRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ListRequest.go
new file mode 100644
index 00000000..710c1cae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ListRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemActivityOLD collection
+func (r *ListActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ColumnDefinition collection
+func (r *ListColumnsCollectionRequest) Get(ctx context.Context) ([]ColumnDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ContentType collection
+func (r *ListContentTypesCollectionRequest) Get(ctx context.Context) ([]ContentType, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ListItem collection
+func (r *ListItemsCollectionRequest) Get(ctx context.Context) ([]ListItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Subscription collection
+func (r *ListSubscriptionsCollectionRequest) Get(ctx context.Context) ([]Subscription, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeEnum.go
new file mode 100644
index 00000000..a4eb2e71
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorType undocumented
+type LocalSecurityOptionsAdministratorElevationPromptBehaviorType int
+
+const (
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured LocalSecurityOptionsAdministratorElevationPromptBehaviorType = 0
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting LocalSecurityOptionsAdministratorElevationPromptBehaviorType = 1
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop LocalSecurityOptionsAdministratorElevationPromptBehaviorType = 2
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop LocalSecurityOptionsAdministratorElevationPromptBehaviorType = 3
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials LocalSecurityOptionsAdministratorElevationPromptBehaviorType = 4
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent LocalSecurityOptionsAdministratorElevationPromptBehaviorType = 5
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries LocalSecurityOptionsAdministratorElevationPromptBehaviorType = 6
+)
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePNotConfigured returns a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured
+func LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePNotConfigured() *LocalSecurityOptionsAdministratorElevationPromptBehaviorType {
+ v := LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured
+ return &v
+}
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePElevateWithoutPrompting returns a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting
+func LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePElevateWithoutPrompting() *LocalSecurityOptionsAdministratorElevationPromptBehaviorType {
+ v := LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting
+ return &v
+}
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop returns a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop
+func LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop() *LocalSecurityOptionsAdministratorElevationPromptBehaviorType {
+ v := LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop
+ return &v
+}
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentOnTheSecureDesktop returns a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop
+func LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentOnTheSecureDesktop() *LocalSecurityOptionsAdministratorElevationPromptBehaviorType {
+ v := LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop
+ return &v
+}
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentials returns a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials
+func LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentials() *LocalSecurityOptionsAdministratorElevationPromptBehaviorType {
+ v := LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials
+ return &v
+}
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsent returns a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent
+func LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsent() *LocalSecurityOptionsAdministratorElevationPromptBehaviorType {
+ v := LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent
+ return &v
+}
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentForNonWindowsBinaries returns a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries
+func LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentForNonWindowsBinaries() *LocalSecurityOptionsAdministratorElevationPromptBehaviorType {
+ v := LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeEnum.go
new file mode 100644
index 00000000..ad065e26
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType undocumented
+type LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType int
+
+const (
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured undocumented
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = 0
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators undocumented
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = 1
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers undocumented
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = 2
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers undocumented
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = 3
+)
+
+// LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePNotConfigured returns a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured
+func LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePNotConfigured() *LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType {
+ v := LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured
+ return &v
+}
+
+// LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministrators returns a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators
+func LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministrators() *LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType {
+ v := LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators
+ return &v
+}
+
+// LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndPowerUsers returns a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers
+func LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndPowerUsers() *LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType {
+ v := LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers
+ return &v
+}
+
+// LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndInteractiveUsers returns a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers
+func LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndInteractiveUsers() *LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType {
+ v := LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsInformationDisplayedOnLockScreenTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsInformationDisplayedOnLockScreenTypeEnum.go
new file mode 100644
index 00000000..2ce32a01
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsInformationDisplayedOnLockScreenTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocalSecurityOptionsInformationDisplayedOnLockScreenType undocumented
+type LocalSecurityOptionsInformationDisplayedOnLockScreenType int
+
+const (
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured undocumented
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured LocalSecurityOptionsInformationDisplayedOnLockScreenType = 0
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators undocumented
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators LocalSecurityOptionsInformationDisplayedOnLockScreenType = 1
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers undocumented
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers LocalSecurityOptionsInformationDisplayedOnLockScreenType = 2
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers undocumented
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers LocalSecurityOptionsInformationDisplayedOnLockScreenType = 3
+)
+
+// LocalSecurityOptionsInformationDisplayedOnLockScreenTypePNotConfigured returns a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured
+func LocalSecurityOptionsInformationDisplayedOnLockScreenTypePNotConfigured() *LocalSecurityOptionsInformationDisplayedOnLockScreenType {
+ v := LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured
+ return &v
+}
+
+// LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministrators returns a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators
+func LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministrators() *LocalSecurityOptionsInformationDisplayedOnLockScreenType {
+ v := LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators
+ return &v
+}
+
+// LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndPowerUsers returns a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers
+func LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndPowerUsers() *LocalSecurityOptionsInformationDisplayedOnLockScreenType {
+ v := LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers
+ return &v
+}
+
+// LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndInteractiveUsers returns a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers
+func LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndInteractiveUsers() *LocalSecurityOptionsInformationDisplayedOnLockScreenType {
+ v := LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsInformationShownOnLockScreenTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsInformationShownOnLockScreenTypeEnum.go
new file mode 100644
index 00000000..60f99426
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsInformationShownOnLockScreenTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocalSecurityOptionsInformationShownOnLockScreenType undocumented
+type LocalSecurityOptionsInformationShownOnLockScreenType int
+
+const (
+ // LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured undocumented
+ LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured LocalSecurityOptionsInformationShownOnLockScreenType = 0
+ // LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser undocumented
+ LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser LocalSecurityOptionsInformationShownOnLockScreenType = 1
+ // LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly undocumented
+ LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly LocalSecurityOptionsInformationShownOnLockScreenType = 2
+ // LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser undocumented
+ LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser LocalSecurityOptionsInformationShownOnLockScreenType = 3
+)
+
+// LocalSecurityOptionsInformationShownOnLockScreenTypePNotConfigured returns a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured
+func LocalSecurityOptionsInformationShownOnLockScreenTypePNotConfigured() *LocalSecurityOptionsInformationShownOnLockScreenType {
+ v := LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured
+ return &v
+}
+
+// LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameDomainUser returns a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser
+func LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameDomainUser() *LocalSecurityOptionsInformationShownOnLockScreenType {
+ v := LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser
+ return &v
+}
+
+// LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameOnly returns a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly
+func LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameOnly() *LocalSecurityOptionsInformationShownOnLockScreenType {
+ v := LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly
+ return &v
+}
+
+// LocalSecurityOptionsInformationShownOnLockScreenTypePDoNotDisplayUser returns a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser
+func LocalSecurityOptionsInformationShownOnLockScreenTypePDoNotDisplayUser() *LocalSecurityOptionsInformationShownOnLockScreenType {
+ v := LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsMinimumSessionSecurityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsMinimumSessionSecurityEnum.go
new file mode 100644
index 00000000..0bcfd367
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsMinimumSessionSecurityEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocalSecurityOptionsMinimumSessionSecurity undocumented
+type LocalSecurityOptionsMinimumSessionSecurity int
+
+const (
+ // LocalSecurityOptionsMinimumSessionSecurityVNone undocumented
+ LocalSecurityOptionsMinimumSessionSecurityVNone LocalSecurityOptionsMinimumSessionSecurity = 0
+ // LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity undocumented
+ LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity LocalSecurityOptionsMinimumSessionSecurity = 1
+ // LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption undocumented
+ LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption LocalSecurityOptionsMinimumSessionSecurity = 2
+ // LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption undocumented
+ LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption LocalSecurityOptionsMinimumSessionSecurity = 3
+)
+
+// LocalSecurityOptionsMinimumSessionSecurityPNone returns a pointer to LocalSecurityOptionsMinimumSessionSecurityVNone
+func LocalSecurityOptionsMinimumSessionSecurityPNone() *LocalSecurityOptionsMinimumSessionSecurity {
+ v := LocalSecurityOptionsMinimumSessionSecurityVNone
+ return &v
+}
+
+// LocalSecurityOptionsMinimumSessionSecurityPRequireNtmlV2SessionSecurity returns a pointer to LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity
+func LocalSecurityOptionsMinimumSessionSecurityPRequireNtmlV2SessionSecurity() *LocalSecurityOptionsMinimumSessionSecurity {
+ v := LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity
+ return &v
+}
+
+// LocalSecurityOptionsMinimumSessionSecurityPRequire128BitEncryption returns a pointer to LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption
+func LocalSecurityOptionsMinimumSessionSecurityPRequire128BitEncryption() *LocalSecurityOptionsMinimumSessionSecurity {
+ v := LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption
+ return &v
+}
+
+// LocalSecurityOptionsMinimumSessionSecurityPNtlmV2And128BitEncryption returns a pointer to LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption
+func LocalSecurityOptionsMinimumSessionSecurityPNtlmV2And128BitEncryption() *LocalSecurityOptionsMinimumSessionSecurity {
+ v := LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsSmartCardRemovalBehaviorTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsSmartCardRemovalBehaviorTypeEnum.go
new file mode 100644
index 00000000..8c0c06f6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsSmartCardRemovalBehaviorTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocalSecurityOptionsSmartCardRemovalBehaviorType undocumented
+type LocalSecurityOptionsSmartCardRemovalBehaviorType int
+
+const (
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation undocumented
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation LocalSecurityOptionsSmartCardRemovalBehaviorType = 0
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction undocumented
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction LocalSecurityOptionsSmartCardRemovalBehaviorType = 1
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff undocumented
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff LocalSecurityOptionsSmartCardRemovalBehaviorType = 2
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession undocumented
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession LocalSecurityOptionsSmartCardRemovalBehaviorType = 3
+)
+
+// LocalSecurityOptionsSmartCardRemovalBehaviorTypePLockWorkstation returns a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation
+func LocalSecurityOptionsSmartCardRemovalBehaviorTypePLockWorkstation() *LocalSecurityOptionsSmartCardRemovalBehaviorType {
+ v := LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation
+ return &v
+}
+
+// LocalSecurityOptionsSmartCardRemovalBehaviorTypePNoAction returns a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction
+func LocalSecurityOptionsSmartCardRemovalBehaviorTypePNoAction() *LocalSecurityOptionsSmartCardRemovalBehaviorType {
+ v := LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction
+ return &v
+}
+
+// LocalSecurityOptionsSmartCardRemovalBehaviorTypePForceLogoff returns a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff
+func LocalSecurityOptionsSmartCardRemovalBehaviorTypePForceLogoff() *LocalSecurityOptionsSmartCardRemovalBehaviorType {
+ v := LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff
+ return &v
+}
+
+// LocalSecurityOptionsSmartCardRemovalBehaviorTypePDisconnectRemoteDesktopSession returns a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession
+func LocalSecurityOptionsSmartCardRemovalBehaviorTypePDisconnectRemoteDesktopSession() *LocalSecurityOptionsSmartCardRemovalBehaviorType {
+ v := LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeEnum.go
new file mode 100644
index 00000000..21db535a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocalSecurityOptionsStandardUserElevationPromptBehaviorType undocumented
+type LocalSecurityOptionsStandardUserElevationPromptBehaviorType int
+
+const (
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured undocumented
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured LocalSecurityOptionsStandardUserElevationPromptBehaviorType = 0
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests undocumented
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests LocalSecurityOptionsStandardUserElevationPromptBehaviorType = 1
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop undocumented
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop LocalSecurityOptionsStandardUserElevationPromptBehaviorType = 2
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials undocumented
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials LocalSecurityOptionsStandardUserElevationPromptBehaviorType = 3
+)
+
+// LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePNotConfigured returns a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured
+func LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePNotConfigured() *LocalSecurityOptionsStandardUserElevationPromptBehaviorType {
+ v := LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured
+ return &v
+}
+
+// LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePAutomaticallyDenyElevationRequests returns a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests
+func LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePAutomaticallyDenyElevationRequests() *LocalSecurityOptionsStandardUserElevationPromptBehaviorType {
+ v := LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests
+ return &v
+}
+
+// LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop returns a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop
+func LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop() *LocalSecurityOptionsStandardUserElevationPromptBehaviorType {
+ v := LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop
+ return &v
+}
+
+// LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentials returns a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials
+func LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentials() *LocalSecurityOptionsStandardUserElevationPromptBehaviorType {
+ v := LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocaleInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocaleInfoModel.go
new file mode 100644
index 00000000..28fe7ab8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocaleInfoModel.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/matterbridge/msgraph.go/beta/LocalizedNotificationMessageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocalizedNotificationMessageModel.go
new file mode 100644
index 00000000..cfa1c170
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocalizedNotificationMessageModel.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/matterbridge/msgraph.go/beta/LocalizedNotificationMessageRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocalizedNotificationMessageRequest.go
new file mode 100644
index 00000000..424d3c2f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocalizedNotificationMessageRequest.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/matterbridge/msgraph.go/beta/LocateDeviceActionResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocateDeviceActionResultModel.go
new file mode 100644
index 00000000..d211b4db
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocateDeviceActionResultModel.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/matterbridge/msgraph.go/beta/LocatedRiskEventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocatedRiskEventModel.go
new file mode 100644
index 00000000..5b4a2f21
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocatedRiskEventModel.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/matterbridge/msgraph.go/beta/LocationConstraintItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocationConstraintItemModel.go
new file mode 100644
index 00000000..d16886d5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocationConstraintItemModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocationConstraintItem undocumented
+type LocationConstraintItem struct {
+ // Location is the base model of LocationConstraintItem
+ Location
+ // ResolveAvailability undocumented
+ ResolveAvailability *bool `json:"resolveAvailability,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocationConstraintModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocationConstraintModel.go
new file mode 100644
index 00000000..34903f11
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocationConstraintModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocationManagementConditionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocationManagementConditionModel.go
new file mode 100644
index 00000000..73d57b81
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocationManagementConditionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/LocationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocationModel.go
new file mode 100644
index 00000000..5cc1acd4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocationModel.go
@@ -0,0 +1,25 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocationTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocationTypeEnum.go
new file mode 100644
index 00000000..acb06b71
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocationTypeEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocationType undocumented
+type LocationType int
+
+const (
+ // LocationTypeVDefault undocumented
+ LocationTypeVDefault LocationType = 0
+ // LocationTypeVConferenceRoom undocumented
+ LocationTypeVConferenceRoom LocationType = 1
+ // LocationTypeVHomeAddress undocumented
+ LocationTypeVHomeAddress LocationType = 2
+ // LocationTypeVBusinessAddress undocumented
+ LocationTypeVBusinessAddress LocationType = 3
+ // LocationTypeVGeoCoordinates undocumented
+ LocationTypeVGeoCoordinates LocationType = 4
+ // LocationTypeVStreetAddress undocumented
+ LocationTypeVStreetAddress LocationType = 5
+ // LocationTypeVHotel undocumented
+ LocationTypeVHotel LocationType = 6
+ // LocationTypeVRestaurant undocumented
+ LocationTypeVRestaurant LocationType = 7
+ // LocationTypeVLocalBusiness undocumented
+ LocationTypeVLocalBusiness LocationType = 8
+ // LocationTypeVPostalAddress undocumented
+ LocationTypeVPostalAddress LocationType = 9
+)
+
+// LocationTypePDefault returns a pointer to LocationTypeVDefault
+func LocationTypePDefault() *LocationType {
+ v := LocationTypeVDefault
+ return &v
+}
+
+// LocationTypePConferenceRoom returns a pointer to LocationTypeVConferenceRoom
+func LocationTypePConferenceRoom() *LocationType {
+ v := LocationTypeVConferenceRoom
+ return &v
+}
+
+// LocationTypePHomeAddress returns a pointer to LocationTypeVHomeAddress
+func LocationTypePHomeAddress() *LocationType {
+ v := LocationTypeVHomeAddress
+ return &v
+}
+
+// LocationTypePBusinessAddress returns a pointer to LocationTypeVBusinessAddress
+func LocationTypePBusinessAddress() *LocationType {
+ v := LocationTypeVBusinessAddress
+ return &v
+}
+
+// LocationTypePGeoCoordinates returns a pointer to LocationTypeVGeoCoordinates
+func LocationTypePGeoCoordinates() *LocationType {
+ v := LocationTypeVGeoCoordinates
+ return &v
+}
+
+// LocationTypePStreetAddress returns a pointer to LocationTypeVStreetAddress
+func LocationTypePStreetAddress() *LocationType {
+ v := LocationTypeVStreetAddress
+ return &v
+}
+
+// LocationTypePHotel returns a pointer to LocationTypeVHotel
+func LocationTypePHotel() *LocationType {
+ v := LocationTypeVHotel
+ return &v
+}
+
+// LocationTypePRestaurant returns a pointer to LocationTypeVRestaurant
+func LocationTypePRestaurant() *LocationType {
+ v := LocationTypeVRestaurant
+ return &v
+}
+
+// LocationTypePLocalBusiness returns a pointer to LocationTypeVLocalBusiness
+func LocationTypePLocalBusiness() *LocationType {
+ v := LocationTypeVLocalBusiness
+ return &v
+}
+
+// LocationTypePPostalAddress returns a pointer to LocationTypeVPostalAddress
+func LocationTypePPostalAddress() *LocationType {
+ v := LocationTypeVPostalAddress
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocationUniqueIDTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocationUniqueIDTypeEnum.go
new file mode 100644
index 00000000..06d14e58
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LocationUniqueIDTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocationUniqueIDType undocumented
+type LocationUniqueIDType int
+
+const (
+ // LocationUniqueIDTypeVUnknown undocumented
+ LocationUniqueIDTypeVUnknown LocationUniqueIDType = 0
+ // LocationUniqueIDTypeVLocationStore undocumented
+ LocationUniqueIDTypeVLocationStore LocationUniqueIDType = 1
+ // LocationUniqueIDTypeVDirectory undocumented
+ LocationUniqueIDTypeVDirectory LocationUniqueIDType = 2
+ // LocationUniqueIDTypeVPrivate undocumented
+ LocationUniqueIDTypeVPrivate LocationUniqueIDType = 3
+ // LocationUniqueIDTypeVBing undocumented
+ LocationUniqueIDTypeVBing LocationUniqueIDType = 4
+)
+
+// LocationUniqueIDTypePUnknown returns a pointer to LocationUniqueIDTypeVUnknown
+func LocationUniqueIDTypePUnknown() *LocationUniqueIDType {
+ v := LocationUniqueIDTypeVUnknown
+ return &v
+}
+
+// LocationUniqueIDTypePLocationStore returns a pointer to LocationUniqueIDTypeVLocationStore
+func LocationUniqueIDTypePLocationStore() *LocationUniqueIDType {
+ v := LocationUniqueIDTypeVLocationStore
+ return &v
+}
+
+// LocationUniqueIDTypePDirectory returns a pointer to LocationUniqueIDTypeVDirectory
+func LocationUniqueIDTypePDirectory() *LocationUniqueIDType {
+ v := LocationUniqueIDTypeVDirectory
+ return &v
+}
+
+// LocationUniqueIDTypePPrivate returns a pointer to LocationUniqueIDTypeVPrivate
+func LocationUniqueIDTypePPrivate() *LocationUniqueIDType {
+ v := LocationUniqueIDTypeVPrivate
+ return &v
+}
+
+// LocationUniqueIDTypePBing returns a pointer to LocationUniqueIDTypeVBing
+func LocationUniqueIDTypePBing() *LocationUniqueIDType {
+ v := LocationUniqueIDTypeVBing
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LogLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LogLevelEnum.go
new file mode 100644
index 00000000..9e9faf2c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LogLevelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LogLevel undocumented
+type LogLevel int
+
+const (
+ // LogLevelVLogAlways undocumented
+ LogLevelVLogAlways LogLevel = 0
+ // LogLevelVCritical undocumented
+ LogLevelVCritical LogLevel = 1
+ // LogLevelVError undocumented
+ LogLevelVError LogLevel = 2
+ // LogLevelVWarning undocumented
+ LogLevelVWarning LogLevel = 3
+ // LogLevelVInformation undocumented
+ LogLevelVInformation LogLevel = 4
+ // LogLevelVVerbose undocumented
+ LogLevelVVerbose LogLevel = 5
+)
+
+// LogLevelPLogAlways returns a pointer to LogLevelVLogAlways
+func LogLevelPLogAlways() *LogLevel {
+ v := LogLevelVLogAlways
+ return &v
+}
+
+// LogLevelPCritical returns a pointer to LogLevelVCritical
+func LogLevelPCritical() *LogLevel {
+ v := LogLevelVCritical
+ return &v
+}
+
+// LogLevelPError returns a pointer to LogLevelVError
+func LogLevelPError() *LogLevel {
+ v := LogLevelVError
+ return &v
+}
+
+// LogLevelPWarning returns a pointer to LogLevelVWarning
+func LogLevelPWarning() *LogLevel {
+ v := LogLevelVWarning
+ return &v
+}
+
+// LogLevelPInformation returns a pointer to LogLevelVInformation
+func LogLevelPInformation() *LogLevel {
+ v := LogLevelVInformation
+ return &v
+}
+
+// LogLevelPVerbose returns a pointer to LogLevelVVerbose
+func LogLevelPVerbose() *LogLevel {
+ v := LogLevelVVerbose
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LoggedOnUserModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LoggedOnUserModel.go
new file mode 100644
index 00000000..28c8d030
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LoggedOnUserModel.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/matterbridge/msgraph.go/beta/LogonTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LogonTypeEnum.go
new file mode 100644
index 00000000..8953b6e3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LogonTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LogonType undocumented
+type LogonType int
+
+const (
+ // LogonTypeVUnknown undocumented
+ LogonTypeVUnknown LogonType = 0
+ // LogonTypeVInteractive undocumented
+ LogonTypeVInteractive LogonType = 1
+ // LogonTypeVRemoteInteractive undocumented
+ LogonTypeVRemoteInteractive LogonType = 2
+ // LogonTypeVNetwork undocumented
+ LogonTypeVNetwork LogonType = 3
+ // LogonTypeVBatch undocumented
+ LogonTypeVBatch LogonType = 4
+ // LogonTypeVService undocumented
+ LogonTypeVService LogonType = 5
+ // LogonTypeVUnknownFutureValue undocumented
+ LogonTypeVUnknownFutureValue LogonType = 127
+)
+
+// LogonTypePUnknown returns a pointer to LogonTypeVUnknown
+func LogonTypePUnknown() *LogonType {
+ v := LogonTypeVUnknown
+ return &v
+}
+
+// LogonTypePInteractive returns a pointer to LogonTypeVInteractive
+func LogonTypePInteractive() *LogonType {
+ v := LogonTypeVInteractive
+ return &v
+}
+
+// LogonTypePRemoteInteractive returns a pointer to LogonTypeVRemoteInteractive
+func LogonTypePRemoteInteractive() *LogonType {
+ v := LogonTypeVRemoteInteractive
+ return &v
+}
+
+// LogonTypePNetwork returns a pointer to LogonTypeVNetwork
+func LogonTypePNetwork() *LogonType {
+ v := LogonTypeVNetwork
+ return &v
+}
+
+// LogonTypePBatch returns a pointer to LogonTypeVBatch
+func LogonTypePBatch() *LogonType {
+ v := LogonTypeVBatch
+ return &v
+}
+
+// LogonTypePService returns a pointer to LogonTypeVService
+func LogonTypePService() *LogonType {
+ v := LogonTypeVService
+ return &v
+}
+
+// LogonTypePUnknownFutureValue returns a pointer to LogonTypeVUnknownFutureValue
+func LogonTypePUnknownFutureValue() *LogonType {
+ v := LogonTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LogonUserModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LogonUserModel.go
new file mode 100644
index 00000000..78aa9f0e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LogonUserModel.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/matterbridge/msgraph.go/beta/LookupColumnModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LookupColumnModel.go
new file mode 100644
index 00000000..42ae43e4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LookupColumnModel.go
@@ -0,0 +1,19 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LookupResultRowModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LookupResultRowModel.go
new file mode 100644
index 00000000..d809fc88
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LookupResultRowModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/LookupResultRowRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/LookupResultRowRequest.go
new file mode 100644
index 00000000..880c399c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LookupResultRowRequest.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/matterbridge/msgraph.go/beta/LostModeStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LostModeStateEnum.go
new file mode 100644
index 00000000..999265fe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/LostModeStateEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LostModeState undocumented
+type LostModeState int
+
+const (
+ // LostModeStateVDisabled undocumented
+ LostModeStateVDisabled LostModeState = 0
+ // LostModeStateVEnabled undocumented
+ LostModeStateVEnabled LostModeState = 1
+)
+
+// LostModeStatePDisabled returns a pointer to LostModeStateVDisabled
+func LostModeStatePDisabled() *LostModeState {
+ v := LostModeStateVDisabled
+ return &v
+}
+
+// LostModeStatePEnabled returns a pointer to LostModeStateVEnabled
+func LostModeStatePEnabled() *LostModeState {
+ v := LostModeStateVEnabled
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionAction.go
new file mode 100644
index 00000000..df02f2bb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionAction.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacManagedAppProtectionCollectionHasPayloadLinksRequestParameter undocumented
+type MacManagedAppProtectionCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionModel.go
new file mode 100644
index 00000000..60bc8404
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacManagedAppProtection undocumented
+type MacManagedAppProtection struct {
+ // Entity is the base model of MacManagedAppProtection
+ Entity
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionRequest.go
new file mode 100644
index 00000000..78ecbd8d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCertificateProfileBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCertificateProfileBaseModel.go
new file mode 100644
index 00000000..9c404879
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCertificateProfileBaseModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCertificateProfileBaseRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCertificateProfileBaseRequest.go
new file mode 100644
index 00000000..01641caf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCertificateProfileBaseRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCompliancePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCompliancePolicyModel.go
new file mode 100644
index 00000000..4d505bff
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCompliancePolicyModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCustomAppConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCustomAppConfigurationModel.go
new file mode 100644
index 00000000..e13fa444
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCustomAppConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCustomConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCustomConfigurationModel.go
new file mode 100644
index 00000000..68fecc71
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCustomConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSDeviceFeaturesConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSDeviceFeaturesConfigurationModel.go
new file mode 100644
index 00000000..09bfb4fa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSDeviceFeaturesConfigurationModel.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSDeviceFeaturesConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSDeviceFeaturesConfigurationRequest.go
new file mode 100644
index 00000000..b4312867
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSDeviceFeaturesConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// SingleSignOnExtensionPkinitCertificate is navigation property
+func (b *MacOSDeviceFeaturesConfigurationRequestBuilder) SingleSignOnExtensionPkinitCertificate() *MacOSCertificateProfileBaseRequestBuilder {
+ bb := &MacOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleSignOnExtensionPkinitCertificate"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSEndpointProtectionConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSEndpointProtectionConfigurationModel.go
new file mode 100644
index 00000000..9e0c8c56
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSEndpointProtectionConfigurationModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationModel.go
new file mode 100644
index 00000000..81fd37b7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationRequest.go
new file mode 100644
index 00000000..1cadf1af
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSExtensionsConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSExtensionsConfigurationModel.go
new file mode 100644
index 00000000..2ba806ee
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSExtensionsConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSFileVaultRecoveryKeyTypesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSFileVaultRecoveryKeyTypesEnum.go
new file mode 100644
index 00000000..03eaf4c5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSFileVaultRecoveryKeyTypesEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSFileVaultRecoveryKeyTypes undocumented
+type MacOSFileVaultRecoveryKeyTypes int
+
+const (
+ // MacOSFileVaultRecoveryKeyTypesVNotConfigured undocumented
+ MacOSFileVaultRecoveryKeyTypesVNotConfigured MacOSFileVaultRecoveryKeyTypes = 0
+ // MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey undocumented
+ MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey MacOSFileVaultRecoveryKeyTypes = 1
+ // MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey undocumented
+ MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey MacOSFileVaultRecoveryKeyTypes = 2
+)
+
+// MacOSFileVaultRecoveryKeyTypesPNotConfigured returns a pointer to MacOSFileVaultRecoveryKeyTypesVNotConfigured
+func MacOSFileVaultRecoveryKeyTypesPNotConfigured() *MacOSFileVaultRecoveryKeyTypes {
+ v := MacOSFileVaultRecoveryKeyTypesVNotConfigured
+ return &v
+}
+
+// MacOSFileVaultRecoveryKeyTypesPInstitutionalRecoveryKey returns a pointer to MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey
+func MacOSFileVaultRecoveryKeyTypesPInstitutionalRecoveryKey() *MacOSFileVaultRecoveryKeyTypes {
+ v := MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey
+ return &v
+}
+
+// MacOSFileVaultRecoveryKeyTypesPPersonalRecoveryKey returns a pointer to MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey
+func MacOSFileVaultRecoveryKeyTypesPPersonalRecoveryKey() *MacOSFileVaultRecoveryKeyTypes {
+ v := MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSFirewallApplicationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSFirewallApplicationModel.go
new file mode 100644
index 00000000..010146f8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSFirewallApplicationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSGatekeeperAppSourcesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSGatekeeperAppSourcesEnum.go
new file mode 100644
index 00000000..399fe897
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSGatekeeperAppSourcesEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSGatekeeperAppSources undocumented
+type MacOSGatekeeperAppSources int
+
+const (
+ // MacOSGatekeeperAppSourcesVNotConfigured undocumented
+ MacOSGatekeeperAppSourcesVNotConfigured MacOSGatekeeperAppSources = 0
+ // MacOSGatekeeperAppSourcesVMacAppStore undocumented
+ MacOSGatekeeperAppSourcesVMacAppStore MacOSGatekeeperAppSources = 1
+ // MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers undocumented
+ MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers MacOSGatekeeperAppSources = 2
+ // MacOSGatekeeperAppSourcesVAnywhere undocumented
+ MacOSGatekeeperAppSourcesVAnywhere MacOSGatekeeperAppSources = 3
+)
+
+// MacOSGatekeeperAppSourcesPNotConfigured returns a pointer to MacOSGatekeeperAppSourcesVNotConfigured
+func MacOSGatekeeperAppSourcesPNotConfigured() *MacOSGatekeeperAppSources {
+ v := MacOSGatekeeperAppSourcesVNotConfigured
+ return &v
+}
+
+// MacOSGatekeeperAppSourcesPMacAppStore returns a pointer to MacOSGatekeeperAppSourcesVMacAppStore
+func MacOSGatekeeperAppSourcesPMacAppStore() *MacOSGatekeeperAppSources {
+ v := MacOSGatekeeperAppSourcesVMacAppStore
+ return &v
+}
+
+// MacOSGatekeeperAppSourcesPMacAppStoreAndIdentifiedDevelopers returns a pointer to MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers
+func MacOSGatekeeperAppSourcesPMacAppStoreAndIdentifiedDevelopers() *MacOSGatekeeperAppSources {
+ v := MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers
+ return &v
+}
+
+// MacOSGatekeeperAppSourcesPAnywhere returns a pointer to MacOSGatekeeperAppSourcesVAnywhere
+func MacOSGatekeeperAppSourcesPAnywhere() *MacOSGatekeeperAppSources {
+ v := MacOSGatekeeperAppSourcesVAnywhere
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSGeneralDeviceConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSGeneralDeviceConfigurationModel.go
new file mode 100644
index 00000000..db01c028
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSGeneralDeviceConfigurationModel.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSImportedPFXCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSImportedPFXCertificateProfileModel.go
new file mode 100644
index 00000000..83a142b8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSImportedPFXCertificateProfileModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSImportedPFXCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSImportedPFXCertificateProfileRequest.go
new file mode 100644
index 00000000..5b0ba0d9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSImportedPFXCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSKerberosSingleSignOnExtensionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSKerberosSingleSignOnExtensionModel.go
new file mode 100644
index 00000000..38ca12d0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSKerberosSingleSignOnExtensionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSKerberosSingleSignOnExtension undocumented
+type MacOSKerberosSingleSignOnExtension struct {
+ // KerberosSingleSignOnExtension is the base model of MacOSKerberosSingleSignOnExtension
+ KerberosSingleSignOnExtension
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSKernelExtensionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSKernelExtensionModel.go
new file mode 100644
index 00000000..be447cd1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSKernelExtensionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSLaunchItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSLaunchItemModel.go
new file mode 100644
index 00000000..dc2a7067
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSLaunchItemModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSLobAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSLobAppModel.go
new file mode 100644
index 00000000..f15ed8db
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSLobAppModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSLobChildAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSLobChildAppModel.go
new file mode 100644
index 00000000..8d44cb6f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSLobChildAppModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSMicrosoftEdgeAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSMicrosoftEdgeAppModel.go
new file mode 100644
index 00000000..b8976fc2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSMicrosoftEdgeAppModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSMicrosoftEdgeApp Contains properties and inherited properties for the MacOS Microsoft Edge App.
+type MacOSMicrosoftEdgeApp struct {
+ // MobileApp is the base model of MacOSMicrosoftEdgeApp
+ MobileApp
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSMinimumOperatingSystemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSMinimumOperatingSystemModel.go
new file mode 100644
index 00000000..bcb593f5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSMinimumOperatingSystemModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSOfficeSuiteAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSOfficeSuiteAppModel.go
new file mode 100644
index 00000000..ed43df5f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSOfficeSuiteAppModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSOfficeSuiteApp Contains properties and inherited properties for the MacOS Office Suite App.
+type MacOSOfficeSuiteApp struct {
+ // MobileApp is the base model of MacOSOfficeSuiteApp
+ MobileApp
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSPkcsCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSPkcsCertificateProfileModel.go
new file mode 100644
index 00000000..575630ab
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSPkcsCertificateProfileModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSPkcsCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSPkcsCertificateProfileRequest.go
new file mode 100644
index 00000000..3697b025
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSPkcsCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSScepCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSScepCertificateProfileModel.go
new file mode 100644
index 00000000..587d56c9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSScepCertificateProfileModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSScepCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSScepCertificateProfileRequest.go
new file mode 100644
index 00000000..cb85630a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSScepCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSTrustedRootCertificateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSTrustedRootCertificateModel.go
new file mode 100644
index 00000000..66c01832
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSTrustedRootCertificateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSTrustedRootCertificateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSTrustedRootCertificateRequest.go
new file mode 100644
index 00000000..14bb0f5f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSTrustedRootCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSVpnConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSVpnConfigurationModel.go
new file mode 100644
index 00000000..6abf833c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSVpnConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSVpnConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSVpnConfigurationRequest.go
new file mode 100644
index 00000000..69374387
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSVpnConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// IdentityCertificate is navigation property
+func (b *MacOSVpnConfigurationRequestBuilder) IdentityCertificate() *MacOSCertificateProfileBaseRequestBuilder {
+ bb := &MacOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiFiConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiFiConfigurationModel.go
new file mode 100644
index 00000000..9ef11a65
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiFiConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiredNetworkConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiredNetworkConfigurationModel.go
new file mode 100644
index 00000000..1622c7be
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiredNetworkConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiredNetworkConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiredNetworkConfigurationRequest.go
new file mode 100644
index 00000000..8cd6b641
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiredNetworkConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignedLicenseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignedLicenseModel.go
new file mode 100644
index 00000000..b0f6e5fd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignedLicenseModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignedLicenseRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignedLicenseRequest.go
new file mode 100644
index 00000000..9596b4b6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignedLicenseRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/MacOsVppAppAssignmentSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..00390557
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignmentSettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppModel.go
new file mode 100644
index 00000000..fcc4e6f5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppRequest.go
new file mode 100644
index 00000000..0963bac9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MacOsVppAppAssignedLicense collection
+func (r *MacOsVppAppAssignedLicensesCollectionRequest) Get(ctx context.Context) ([]MacOsVppAppAssignedLicense, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/MacOsVppAppRevokeLicensesActionResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppRevokeLicensesActionResultModel.go
new file mode 100644
index 00000000..2443b150
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppRevokeLicensesActionResultModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/MailAssessmentRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MailAssessmentRequestObjectModel.go
new file mode 100644
index 00000000..8891591f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MailAssessmentRequestObjectModel.go
@@ -0,0 +1,15 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MailDestinationRoutingReasonEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MailDestinationRoutingReasonEnum.go
new file mode 100644
index 00000000..13d40638
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MailDestinationRoutingReasonEnum.go
@@ -0,0 +1,137 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MailDestinationRoutingReason undocumented
+type MailDestinationRoutingReason int
+
+const (
+ // MailDestinationRoutingReasonVNone undocumented
+ MailDestinationRoutingReasonVNone MailDestinationRoutingReason = 0
+ // MailDestinationRoutingReasonVMailFlowRule undocumented
+ MailDestinationRoutingReasonVMailFlowRule MailDestinationRoutingReason = 1
+ // MailDestinationRoutingReasonVSafeSender undocumented
+ MailDestinationRoutingReasonVSafeSender MailDestinationRoutingReason = 2
+ // MailDestinationRoutingReasonVBlockedSender undocumented
+ MailDestinationRoutingReasonVBlockedSender MailDestinationRoutingReason = 3
+ // MailDestinationRoutingReasonVAdvancedSpamFiltering undocumented
+ MailDestinationRoutingReasonVAdvancedSpamFiltering MailDestinationRoutingReason = 4
+ // MailDestinationRoutingReasonVDomainAllowList undocumented
+ MailDestinationRoutingReasonVDomainAllowList MailDestinationRoutingReason = 5
+ // MailDestinationRoutingReasonVDomainBlockList undocumented
+ MailDestinationRoutingReasonVDomainBlockList MailDestinationRoutingReason = 6
+ // MailDestinationRoutingReasonVNotInAddressBook undocumented
+ MailDestinationRoutingReasonVNotInAddressBook MailDestinationRoutingReason = 7
+ // MailDestinationRoutingReasonVFirstTimeSender undocumented
+ MailDestinationRoutingReasonVFirstTimeSender MailDestinationRoutingReason = 8
+ // MailDestinationRoutingReasonVAutoPurgeToInbox undocumented
+ MailDestinationRoutingReasonVAutoPurgeToInbox MailDestinationRoutingReason = 9
+ // MailDestinationRoutingReasonVAutoPurgeToJunk undocumented
+ MailDestinationRoutingReasonVAutoPurgeToJunk MailDestinationRoutingReason = 10
+ // MailDestinationRoutingReasonVAutoPurgeToDeleted undocumented
+ MailDestinationRoutingReasonVAutoPurgeToDeleted MailDestinationRoutingReason = 11
+ // MailDestinationRoutingReasonVOutbound undocumented
+ MailDestinationRoutingReasonVOutbound MailDestinationRoutingReason = 12
+ // MailDestinationRoutingReasonVNotJunk undocumented
+ MailDestinationRoutingReasonVNotJunk MailDestinationRoutingReason = 13
+ // MailDestinationRoutingReasonVJunk undocumented
+ MailDestinationRoutingReasonVJunk MailDestinationRoutingReason = 14
+ // MailDestinationRoutingReasonVUnknownFutureValue undocumented
+ MailDestinationRoutingReasonVUnknownFutureValue MailDestinationRoutingReason = 15
+)
+
+// MailDestinationRoutingReasonPNone returns a pointer to MailDestinationRoutingReasonVNone
+func MailDestinationRoutingReasonPNone() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVNone
+ return &v
+}
+
+// MailDestinationRoutingReasonPMailFlowRule returns a pointer to MailDestinationRoutingReasonVMailFlowRule
+func MailDestinationRoutingReasonPMailFlowRule() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVMailFlowRule
+ return &v
+}
+
+// MailDestinationRoutingReasonPSafeSender returns a pointer to MailDestinationRoutingReasonVSafeSender
+func MailDestinationRoutingReasonPSafeSender() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVSafeSender
+ return &v
+}
+
+// MailDestinationRoutingReasonPBlockedSender returns a pointer to MailDestinationRoutingReasonVBlockedSender
+func MailDestinationRoutingReasonPBlockedSender() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVBlockedSender
+ return &v
+}
+
+// MailDestinationRoutingReasonPAdvancedSpamFiltering returns a pointer to MailDestinationRoutingReasonVAdvancedSpamFiltering
+func MailDestinationRoutingReasonPAdvancedSpamFiltering() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVAdvancedSpamFiltering
+ return &v
+}
+
+// MailDestinationRoutingReasonPDomainAllowList returns a pointer to MailDestinationRoutingReasonVDomainAllowList
+func MailDestinationRoutingReasonPDomainAllowList() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVDomainAllowList
+ return &v
+}
+
+// MailDestinationRoutingReasonPDomainBlockList returns a pointer to MailDestinationRoutingReasonVDomainBlockList
+func MailDestinationRoutingReasonPDomainBlockList() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVDomainBlockList
+ return &v
+}
+
+// MailDestinationRoutingReasonPNotInAddressBook returns a pointer to MailDestinationRoutingReasonVNotInAddressBook
+func MailDestinationRoutingReasonPNotInAddressBook() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVNotInAddressBook
+ return &v
+}
+
+// MailDestinationRoutingReasonPFirstTimeSender returns a pointer to MailDestinationRoutingReasonVFirstTimeSender
+func MailDestinationRoutingReasonPFirstTimeSender() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVFirstTimeSender
+ return &v
+}
+
+// MailDestinationRoutingReasonPAutoPurgeToInbox returns a pointer to MailDestinationRoutingReasonVAutoPurgeToInbox
+func MailDestinationRoutingReasonPAutoPurgeToInbox() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVAutoPurgeToInbox
+ return &v
+}
+
+// MailDestinationRoutingReasonPAutoPurgeToJunk returns a pointer to MailDestinationRoutingReasonVAutoPurgeToJunk
+func MailDestinationRoutingReasonPAutoPurgeToJunk() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVAutoPurgeToJunk
+ return &v
+}
+
+// MailDestinationRoutingReasonPAutoPurgeToDeleted returns a pointer to MailDestinationRoutingReasonVAutoPurgeToDeleted
+func MailDestinationRoutingReasonPAutoPurgeToDeleted() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVAutoPurgeToDeleted
+ return &v
+}
+
+// MailDestinationRoutingReasonPOutbound returns a pointer to MailDestinationRoutingReasonVOutbound
+func MailDestinationRoutingReasonPOutbound() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVOutbound
+ return &v
+}
+
+// MailDestinationRoutingReasonPNotJunk returns a pointer to MailDestinationRoutingReasonVNotJunk
+func MailDestinationRoutingReasonPNotJunk() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVNotJunk
+ return &v
+}
+
+// MailDestinationRoutingReasonPJunk returns a pointer to MailDestinationRoutingReasonVJunk
+func MailDestinationRoutingReasonPJunk() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVJunk
+ return &v
+}
+
+// MailDestinationRoutingReasonPUnknownFutureValue returns a pointer to MailDestinationRoutingReasonVUnknownFutureValue
+func MailDestinationRoutingReasonPUnknownFutureValue() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MailFolderAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/MailFolderAction.go
new file mode 100644
index 00000000..ab74b5b5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MailFolderAction.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MailFolderCopyRequestParameter undocumented
+type MailFolderCopyRequestParameter struct {
+ // DestinationID undocumented
+ DestinationID *string `json:"DestinationId,omitempty"`
+}
+
+// MailFolderMoveRequestParameter undocumented
+type MailFolderMoveRequestParameter struct {
+ // DestinationID undocumented
+ DestinationID *string `json:"DestinationId,omitempty"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/MailFolderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MailFolderModel.go
new file mode 100644
index 00000000..b02a988d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MailFolderModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MailFolderRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MailFolderRequest.go
new file mode 100644
index 00000000..5a7c1c80
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MailFolderRequest.go
@@ -0,0 +1,609 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MailFolder collection
+func (r *MailFolderChildFoldersCollectionRequest) Get(ctx context.Context) ([]MailFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MessageRule collection
+func (r *MailFolderMessageRulesCollectionRequest) Get(ctx context.Context) ([]MessageRule, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Message collection
+func (r *MailFolderMessagesCollectionRequest) Get(ctx context.Context) ([]Message, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserConfiguration collection
+func (r *MailFolderUserConfigurationsCollectionRequest) Get(ctx context.Context) ([]UserConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/MailSearchFolderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MailSearchFolderModel.go
new file mode 100644
index 00000000..0d5518fb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MailSearchFolderModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MailTipsErrorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MailTipsErrorModel.go
new file mode 100644
index 00000000..23fa73c6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MailTipsErrorModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/MailTipsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MailTipsModel.go
new file mode 100644
index 00000000..448b24cb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MailTipsModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MailTipsTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MailTipsTypeEnum.go
new file mode 100644
index 00000000..6eab53bd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MailTipsTypeEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MailTipsType undocumented
+type MailTipsType int
+
+const (
+ // MailTipsTypeVAutomaticReplies undocumented
+ MailTipsTypeVAutomaticReplies MailTipsType = 1
+ // MailTipsTypeVMailboxFullStatus undocumented
+ MailTipsTypeVMailboxFullStatus MailTipsType = 2
+ // MailTipsTypeVCustomMailTip undocumented
+ MailTipsTypeVCustomMailTip MailTipsType = 4
+ // MailTipsTypeVExternalMemberCount undocumented
+ MailTipsTypeVExternalMemberCount MailTipsType = 8
+ // MailTipsTypeVTotalMemberCount undocumented
+ MailTipsTypeVTotalMemberCount MailTipsType = 16
+ // MailTipsTypeVMaxMessageSize undocumented
+ MailTipsTypeVMaxMessageSize MailTipsType = 32
+ // MailTipsTypeVDeliveryRestriction undocumented
+ MailTipsTypeVDeliveryRestriction MailTipsType = 64
+ // MailTipsTypeVModerationStatus undocumented
+ MailTipsTypeVModerationStatus MailTipsType = 128
+ // MailTipsTypeVRecipientScope undocumented
+ MailTipsTypeVRecipientScope MailTipsType = 256
+ // MailTipsTypeVRecipientSuggestions undocumented
+ MailTipsTypeVRecipientSuggestions MailTipsType = 512
+)
+
+// MailTipsTypePAutomaticReplies returns a pointer to MailTipsTypeVAutomaticReplies
+func MailTipsTypePAutomaticReplies() *MailTipsType {
+ v := MailTipsTypeVAutomaticReplies
+ return &v
+}
+
+// MailTipsTypePMailboxFullStatus returns a pointer to MailTipsTypeVMailboxFullStatus
+func MailTipsTypePMailboxFullStatus() *MailTipsType {
+ v := MailTipsTypeVMailboxFullStatus
+ return &v
+}
+
+// MailTipsTypePCustomMailTip returns a pointer to MailTipsTypeVCustomMailTip
+func MailTipsTypePCustomMailTip() *MailTipsType {
+ v := MailTipsTypeVCustomMailTip
+ return &v
+}
+
+// MailTipsTypePExternalMemberCount returns a pointer to MailTipsTypeVExternalMemberCount
+func MailTipsTypePExternalMemberCount() *MailTipsType {
+ v := MailTipsTypeVExternalMemberCount
+ return &v
+}
+
+// MailTipsTypePTotalMemberCount returns a pointer to MailTipsTypeVTotalMemberCount
+func MailTipsTypePTotalMemberCount() *MailTipsType {
+ v := MailTipsTypeVTotalMemberCount
+ return &v
+}
+
+// MailTipsTypePMaxMessageSize returns a pointer to MailTipsTypeVMaxMessageSize
+func MailTipsTypePMaxMessageSize() *MailTipsType {
+ v := MailTipsTypeVMaxMessageSize
+ return &v
+}
+
+// MailTipsTypePDeliveryRestriction returns a pointer to MailTipsTypeVDeliveryRestriction
+func MailTipsTypePDeliveryRestriction() *MailTipsType {
+ v := MailTipsTypeVDeliveryRestriction
+ return &v
+}
+
+// MailTipsTypePModerationStatus returns a pointer to MailTipsTypeVModerationStatus
+func MailTipsTypePModerationStatus() *MailTipsType {
+ v := MailTipsTypeVModerationStatus
+ return &v
+}
+
+// MailTipsTypePRecipientScope returns a pointer to MailTipsTypeVRecipientScope
+func MailTipsTypePRecipientScope() *MailTipsType {
+ v := MailTipsTypeVRecipientScope
+ return &v
+}
+
+// MailTipsTypePRecipientSuggestions returns a pointer to MailTipsTypeVRecipientSuggestions
+func MailTipsTypePRecipientSuggestions() *MailTipsType {
+ v := MailTipsTypeVRecipientSuggestions
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MailboxSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MailboxSettingsModel.go
new file mode 100644
index 00000000..e0ac85a4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MailboxSettingsModel.go
@@ -0,0 +1,25 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageDetailModel.go
new file mode 100644
index 00000000..91ada548
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageDetailModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MailboxUsageDetail undocumented
+type MailboxUsageDetail struct {
+ // Entity is the base model of MailboxUsageDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"deletedDate,omitempty"`
+ // CreatedDate undocumented
+ CreatedDate *time.Time `json:"createdDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageMailboxCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageMailboxCountsModel.go
new file mode 100644
index 00000000..bd5b7c26
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageMailboxCountsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MailboxUsageMailboxCounts undocumented
+type MailboxUsageMailboxCounts struct {
+ // Entity is the base model of MailboxUsageMailboxCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageQuotaStatusMailboxCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageQuotaStatusMailboxCountsModel.go
new file mode 100644
index 00000000..a3a47676
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageQuotaStatusMailboxCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MailboxUsageQuotaStatusMailboxCounts undocumented
+type MailboxUsageQuotaStatusMailboxCounts struct {
+ // Entity is the base model of MailboxUsageQuotaStatusMailboxCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageStorageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageStorageModel.go
new file mode 100644
index 00000000..6406afa9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageStorageModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MailboxUsageStorage undocumented
+type MailboxUsageStorage struct {
+ // Entity is the base model of MailboxUsageStorage
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // StorageUsedInBytes undocumented
+ StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MalwareRiskEventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MalwareRiskEventModel.go
new file mode 100644
index 00000000..6ee373f7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MalwareRiskEventModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MalwareRiskEventRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MalwareRiskEventRequest.go
new file mode 100644
index 00000000..52e0aa9c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MalwareRiskEventRequest.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/matterbridge/msgraph.go/beta/MalwareStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MalwareStateModel.go
new file mode 100644
index 00000000..e9622fe6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MalwareStateModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ManagedAllDeviceCertificateStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAllDeviceCertificateStateModel.go
new file mode 100644
index 00000000..b521470e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAllDeviceCertificateStateModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAllDeviceCertificateStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAllDeviceCertificateStateRequest.go
new file mode 100644
index 00000000..274d0ae9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAllDeviceCertificateStateRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAndroidLobAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAndroidLobAppModel.go
new file mode 100644
index 00000000..1016dc01
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAndroidLobAppModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAndroidStoreAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAndroidStoreAppModel.go
new file mode 100644
index 00000000..f461f96f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAndroidStoreAppModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppAvailabilityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppAvailabilityEnum.go
new file mode 100644
index 00000000..59a3ff20
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppAvailabilityEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppAvailability undocumented
+type ManagedAppAvailability int
+
+const (
+ // ManagedAppAvailabilityVGlobal undocumented
+ ManagedAppAvailabilityVGlobal ManagedAppAvailability = 0
+ // ManagedAppAvailabilityVLineOfBusiness undocumented
+ ManagedAppAvailabilityVLineOfBusiness ManagedAppAvailability = 1
+)
+
+// ManagedAppAvailabilityPGlobal returns a pointer to ManagedAppAvailabilityVGlobal
+func ManagedAppAvailabilityPGlobal() *ManagedAppAvailability {
+ v := ManagedAppAvailabilityVGlobal
+ return &v
+}
+
+// ManagedAppAvailabilityPLineOfBusiness returns a pointer to ManagedAppAvailabilityVLineOfBusiness
+func ManagedAppAvailabilityPLineOfBusiness() *ManagedAppAvailability {
+ v := ManagedAppAvailabilityVLineOfBusiness
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppClipboardSharingLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppClipboardSharingLevelEnum.go
new file mode 100644
index 00000000..980adf65
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppClipboardSharingLevelEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppClipboardSharingLevel undocumented
+type ManagedAppClipboardSharingLevel int
+
+const (
+ // ManagedAppClipboardSharingLevelVAllApps undocumented
+ ManagedAppClipboardSharingLevelVAllApps ManagedAppClipboardSharingLevel = 0
+ // ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn undocumented
+ ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn ManagedAppClipboardSharingLevel = 1
+ // ManagedAppClipboardSharingLevelVManagedApps undocumented
+ ManagedAppClipboardSharingLevelVManagedApps ManagedAppClipboardSharingLevel = 2
+ // ManagedAppClipboardSharingLevelVBlocked undocumented
+ ManagedAppClipboardSharingLevelVBlocked ManagedAppClipboardSharingLevel = 3
+)
+
+// ManagedAppClipboardSharingLevelPAllApps returns a pointer to ManagedAppClipboardSharingLevelVAllApps
+func ManagedAppClipboardSharingLevelPAllApps() *ManagedAppClipboardSharingLevel {
+ v := ManagedAppClipboardSharingLevelVAllApps
+ return &v
+}
+
+// ManagedAppClipboardSharingLevelPManagedAppsWithPasteIn returns a pointer to ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn
+func ManagedAppClipboardSharingLevelPManagedAppsWithPasteIn() *ManagedAppClipboardSharingLevel {
+ v := ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn
+ return &v
+}
+
+// ManagedAppClipboardSharingLevelPManagedApps returns a pointer to ManagedAppClipboardSharingLevelVManagedApps
+func ManagedAppClipboardSharingLevelPManagedApps() *ManagedAppClipboardSharingLevel {
+ v := ManagedAppClipboardSharingLevelVManagedApps
+ return &v
+}
+
+// ManagedAppClipboardSharingLevelPBlocked returns a pointer to ManagedAppClipboardSharingLevelVBlocked
+func ManagedAppClipboardSharingLevelPBlocked() *ManagedAppClipboardSharingLevel {
+ v := ManagedAppClipboardSharingLevelVBlocked
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppConfigurationModel.go
new file mode 100644
index 00000000..12762061
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataEncryptionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataEncryptionTypeEnum.go
new file mode 100644
index 00000000..1c25ac40
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataEncryptionTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppDataEncryptionType undocumented
+type ManagedAppDataEncryptionType int
+
+const (
+ // ManagedAppDataEncryptionTypeVUseDeviceSettings undocumented
+ ManagedAppDataEncryptionTypeVUseDeviceSettings ManagedAppDataEncryptionType = 0
+ // ManagedAppDataEncryptionTypeVAfterDeviceRestart undocumented
+ ManagedAppDataEncryptionTypeVAfterDeviceRestart ManagedAppDataEncryptionType = 1
+ // ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles undocumented
+ ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles ManagedAppDataEncryptionType = 2
+ // ManagedAppDataEncryptionTypeVWhenDeviceLocked undocumented
+ ManagedAppDataEncryptionTypeVWhenDeviceLocked ManagedAppDataEncryptionType = 3
+)
+
+// ManagedAppDataEncryptionTypePUseDeviceSettings returns a pointer to ManagedAppDataEncryptionTypeVUseDeviceSettings
+func ManagedAppDataEncryptionTypePUseDeviceSettings() *ManagedAppDataEncryptionType {
+ v := ManagedAppDataEncryptionTypeVUseDeviceSettings
+ return &v
+}
+
+// ManagedAppDataEncryptionTypePAfterDeviceRestart returns a pointer to ManagedAppDataEncryptionTypeVAfterDeviceRestart
+func ManagedAppDataEncryptionTypePAfterDeviceRestart() *ManagedAppDataEncryptionType {
+ v := ManagedAppDataEncryptionTypeVAfterDeviceRestart
+ return &v
+}
+
+// ManagedAppDataEncryptionTypePWhenDeviceLockedExceptOpenFiles returns a pointer to ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles
+func ManagedAppDataEncryptionTypePWhenDeviceLockedExceptOpenFiles() *ManagedAppDataEncryptionType {
+ v := ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles
+ return &v
+}
+
+// ManagedAppDataEncryptionTypePWhenDeviceLocked returns a pointer to ManagedAppDataEncryptionTypeVWhenDeviceLocked
+func ManagedAppDataEncryptionTypePWhenDeviceLocked() *ManagedAppDataEncryptionType {
+ v := ManagedAppDataEncryptionTypeVWhenDeviceLocked
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataStorageLocationEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataStorageLocationEnum.go
new file mode 100644
index 00000000..622e068c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataStorageLocationEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppDataStorageLocation undocumented
+type ManagedAppDataStorageLocation int
+
+const (
+ // ManagedAppDataStorageLocationVOneDriveForBusiness undocumented
+ ManagedAppDataStorageLocationVOneDriveForBusiness ManagedAppDataStorageLocation = 1
+ // ManagedAppDataStorageLocationVSharePoint undocumented
+ ManagedAppDataStorageLocationVSharePoint ManagedAppDataStorageLocation = 2
+ // ManagedAppDataStorageLocationVLocalStorage undocumented
+ ManagedAppDataStorageLocationVLocalStorage ManagedAppDataStorageLocation = 6
+)
+
+// ManagedAppDataStorageLocationPOneDriveForBusiness returns a pointer to ManagedAppDataStorageLocationVOneDriveForBusiness
+func ManagedAppDataStorageLocationPOneDriveForBusiness() *ManagedAppDataStorageLocation {
+ v := ManagedAppDataStorageLocationVOneDriveForBusiness
+ return &v
+}
+
+// ManagedAppDataStorageLocationPSharePoint returns a pointer to ManagedAppDataStorageLocationVSharePoint
+func ManagedAppDataStorageLocationPSharePoint() *ManagedAppDataStorageLocation {
+ v := ManagedAppDataStorageLocationVSharePoint
+ return &v
+}
+
+// ManagedAppDataStorageLocationPLocalStorage returns a pointer to ManagedAppDataStorageLocationVLocalStorage
+func ManagedAppDataStorageLocationPLocalStorage() *ManagedAppDataStorageLocation {
+ v := ManagedAppDataStorageLocationVLocalStorage
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataTransferLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataTransferLevelEnum.go
new file mode 100644
index 00000000..fc03c9d0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataTransferLevelEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppDataTransferLevel undocumented
+type ManagedAppDataTransferLevel int
+
+const (
+ // ManagedAppDataTransferLevelVAllApps undocumented
+ ManagedAppDataTransferLevelVAllApps ManagedAppDataTransferLevel = 0
+ // ManagedAppDataTransferLevelVManagedApps undocumented
+ ManagedAppDataTransferLevelVManagedApps ManagedAppDataTransferLevel = 1
+ // ManagedAppDataTransferLevelVNone undocumented
+ ManagedAppDataTransferLevelVNone ManagedAppDataTransferLevel = 2
+)
+
+// ManagedAppDataTransferLevelPAllApps returns a pointer to ManagedAppDataTransferLevelVAllApps
+func ManagedAppDataTransferLevelPAllApps() *ManagedAppDataTransferLevel {
+ v := ManagedAppDataTransferLevelVAllApps
+ return &v
+}
+
+// ManagedAppDataTransferLevelPManagedApps returns a pointer to ManagedAppDataTransferLevelVManagedApps
+func ManagedAppDataTransferLevelPManagedApps() *ManagedAppDataTransferLevel {
+ v := ManagedAppDataTransferLevelVManagedApps
+ return &v
+}
+
+// ManagedAppDataTransferLevelPNone returns a pointer to ManagedAppDataTransferLevelVNone
+func ManagedAppDataTransferLevelPNone() *ManagedAppDataTransferLevel {
+ v := ManagedAppDataTransferLevelVNone
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDeviceThreatLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDeviceThreatLevelEnum.go
new file mode 100644
index 00000000..eeb6799a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDeviceThreatLevelEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppDeviceThreatLevel undocumented
+type ManagedAppDeviceThreatLevel int
+
+const (
+ // ManagedAppDeviceThreatLevelVNotConfigured undocumented
+ ManagedAppDeviceThreatLevelVNotConfigured ManagedAppDeviceThreatLevel = 0
+ // ManagedAppDeviceThreatLevelVSecured undocumented
+ ManagedAppDeviceThreatLevelVSecured ManagedAppDeviceThreatLevel = 1
+ // ManagedAppDeviceThreatLevelVLow undocumented
+ ManagedAppDeviceThreatLevelVLow ManagedAppDeviceThreatLevel = 2
+ // ManagedAppDeviceThreatLevelVMedium undocumented
+ ManagedAppDeviceThreatLevelVMedium ManagedAppDeviceThreatLevel = 3
+ // ManagedAppDeviceThreatLevelVHigh undocumented
+ ManagedAppDeviceThreatLevelVHigh ManagedAppDeviceThreatLevel = 4
+)
+
+// ManagedAppDeviceThreatLevelPNotConfigured returns a pointer to ManagedAppDeviceThreatLevelVNotConfigured
+func ManagedAppDeviceThreatLevelPNotConfigured() *ManagedAppDeviceThreatLevel {
+ v := ManagedAppDeviceThreatLevelVNotConfigured
+ return &v
+}
+
+// ManagedAppDeviceThreatLevelPSecured returns a pointer to ManagedAppDeviceThreatLevelVSecured
+func ManagedAppDeviceThreatLevelPSecured() *ManagedAppDeviceThreatLevel {
+ v := ManagedAppDeviceThreatLevelVSecured
+ return &v
+}
+
+// ManagedAppDeviceThreatLevelPLow returns a pointer to ManagedAppDeviceThreatLevelVLow
+func ManagedAppDeviceThreatLevelPLow() *ManagedAppDeviceThreatLevel {
+ v := ManagedAppDeviceThreatLevelVLow
+ return &v
+}
+
+// ManagedAppDeviceThreatLevelPMedium returns a pointer to ManagedAppDeviceThreatLevelVMedium
+func ManagedAppDeviceThreatLevelPMedium() *ManagedAppDeviceThreatLevel {
+ v := ManagedAppDeviceThreatLevelVMedium
+ return &v
+}
+
+// ManagedAppDeviceThreatLevelPHigh returns a pointer to ManagedAppDeviceThreatLevelVHigh
+func ManagedAppDeviceThreatLevelPHigh() *ManagedAppDeviceThreatLevel {
+ v := ManagedAppDeviceThreatLevelVHigh
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDiagnosticStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDiagnosticStatusModel.go
new file mode 100644
index 00000000..fb5ef645
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDiagnosticStatusModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppFlaggedReasonEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppFlaggedReasonEnum.go
new file mode 100644
index 00000000..720d2d1a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppFlaggedReasonEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppFlaggedReason undocumented
+type ManagedAppFlaggedReason int
+
+const (
+ // ManagedAppFlaggedReasonVNone undocumented
+ ManagedAppFlaggedReasonVNone ManagedAppFlaggedReason = 0
+ // ManagedAppFlaggedReasonVRootedDevice undocumented
+ ManagedAppFlaggedReasonVRootedDevice ManagedAppFlaggedReason = 1
+ // ManagedAppFlaggedReasonVAndroidBootloaderUnlocked undocumented
+ ManagedAppFlaggedReasonVAndroidBootloaderUnlocked ManagedAppFlaggedReason = 2
+ // ManagedAppFlaggedReasonVAndroidFactoryRomModified undocumented
+ ManagedAppFlaggedReasonVAndroidFactoryRomModified ManagedAppFlaggedReason = 3
+)
+
+// ManagedAppFlaggedReasonPNone returns a pointer to ManagedAppFlaggedReasonVNone
+func ManagedAppFlaggedReasonPNone() *ManagedAppFlaggedReason {
+ v := ManagedAppFlaggedReasonVNone
+ return &v
+}
+
+// ManagedAppFlaggedReasonPRootedDevice returns a pointer to ManagedAppFlaggedReasonVRootedDevice
+func ManagedAppFlaggedReasonPRootedDevice() *ManagedAppFlaggedReason {
+ v := ManagedAppFlaggedReasonVRootedDevice
+ return &v
+}
+
+// ManagedAppFlaggedReasonPAndroidBootloaderUnlocked returns a pointer to ManagedAppFlaggedReasonVAndroidBootloaderUnlocked
+func ManagedAppFlaggedReasonPAndroidBootloaderUnlocked() *ManagedAppFlaggedReason {
+ v := ManagedAppFlaggedReasonVAndroidBootloaderUnlocked
+ return &v
+}
+
+// ManagedAppFlaggedReasonPAndroidFactoryRomModified returns a pointer to ManagedAppFlaggedReasonVAndroidFactoryRomModified
+func ManagedAppFlaggedReasonPAndroidFactoryRomModified() *ManagedAppFlaggedReason {
+ v := ManagedAppFlaggedReasonVAndroidFactoryRomModified
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppModel.go
new file mode 100644
index 00000000..934b49e4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppNotificationRestrictionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppNotificationRestrictionEnum.go
new file mode 100644
index 00000000..7791a0d5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppNotificationRestrictionEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppNotificationRestriction undocumented
+type ManagedAppNotificationRestriction int
+
+const (
+ // ManagedAppNotificationRestrictionVAllow undocumented
+ ManagedAppNotificationRestrictionVAllow ManagedAppNotificationRestriction = 0
+ // ManagedAppNotificationRestrictionVBlockOrganizationalData undocumented
+ ManagedAppNotificationRestrictionVBlockOrganizationalData ManagedAppNotificationRestriction = 1
+ // ManagedAppNotificationRestrictionVBlock undocumented
+ ManagedAppNotificationRestrictionVBlock ManagedAppNotificationRestriction = 2
+)
+
+// ManagedAppNotificationRestrictionPAllow returns a pointer to ManagedAppNotificationRestrictionVAllow
+func ManagedAppNotificationRestrictionPAllow() *ManagedAppNotificationRestriction {
+ v := ManagedAppNotificationRestrictionVAllow
+ return &v
+}
+
+// ManagedAppNotificationRestrictionPBlockOrganizationalData returns a pointer to ManagedAppNotificationRestrictionVBlockOrganizationalData
+func ManagedAppNotificationRestrictionPBlockOrganizationalData() *ManagedAppNotificationRestriction {
+ v := ManagedAppNotificationRestrictionVBlockOrganizationalData
+ return &v
+}
+
+// ManagedAppNotificationRestrictionPBlock returns a pointer to ManagedAppNotificationRestrictionVBlock
+func ManagedAppNotificationRestrictionPBlock() *ManagedAppNotificationRestriction {
+ v := ManagedAppNotificationRestrictionVBlock
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppOperationModel.go
new file mode 100644
index 00000000..a57401a3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppOperationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppOperationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppOperationRequest.go
new file mode 100644
index 00000000..b473cc1f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppOperationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPinCharacterSetEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPinCharacterSetEnum.go
new file mode 100644
index 00000000..922c8e7e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPinCharacterSetEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppPinCharacterSet undocumented
+type ManagedAppPinCharacterSet int
+
+const (
+ // ManagedAppPinCharacterSetVNumeric undocumented
+ ManagedAppPinCharacterSetVNumeric ManagedAppPinCharacterSet = 0
+ // ManagedAppPinCharacterSetVAlphanumericAndSymbol undocumented
+ ManagedAppPinCharacterSetVAlphanumericAndSymbol ManagedAppPinCharacterSet = 1
+)
+
+// ManagedAppPinCharacterSetPNumeric returns a pointer to ManagedAppPinCharacterSetVNumeric
+func ManagedAppPinCharacterSetPNumeric() *ManagedAppPinCharacterSet {
+ v := ManagedAppPinCharacterSetVNumeric
+ return &v
+}
+
+// ManagedAppPinCharacterSetPAlphanumericAndSymbol returns a pointer to ManagedAppPinCharacterSetVAlphanumericAndSymbol
+func ManagedAppPinCharacterSetPAlphanumericAndSymbol() *ManagedAppPinCharacterSet {
+ v := ManagedAppPinCharacterSetVAlphanumericAndSymbol
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyAction.go
new file mode 100644
index 00000000..a42f9623
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedAppPolicyTargetAppsRequestParameter undocumented
+type ManagedAppPolicyTargetAppsRequestParameter struct {
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryModel.go
new file mode 100644
index 00000000..cf66ff07
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryPerAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryPerAppModel.go
new file mode 100644
index 00000000..3117fc87
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryPerAppModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryRequest.go
new file mode 100644
index 00000000..45e22395
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyModel.go
new file mode 100644
index 00000000..61c75b2a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyRequest.go
new file mode 100644
index 00000000..ba349bd1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionAction.go
new file mode 100644
index 00000000..a04aef21
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedAppProtectionTargetAppsRequestParameter undocumented
+type ManagedAppProtectionTargetAppsRequestParameter struct {
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionModel.go
new file mode 100644
index 00000000..daffa6c5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionModel.go
@@ -0,0 +1,85 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Duration `json:"periodOfflineBeforeAccessCheck,omitempty"`
+ // PeriodOnlineBeforeAccessCheck The period after which access is checked when the device is connected to the internet.
+ PeriodOnlineBeforeAccessCheck *time.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 *time.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 *time.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 *time.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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionPolicySetItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionPolicySetItemModel.go
new file mode 100644
index 00000000..cd3b7d35
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionPolicySetItemModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionRequest.go
new file mode 100644
index 00000000..7d92d6e0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRegistrationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRegistrationModel.go
new file mode 100644
index 00000000..3016f093
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRegistrationModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRegistrationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRegistrationRequest.go
new file mode 100644
index 00000000..6ac2cef3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRegistrationRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAppPolicy collection
+func (r *ManagedAppRegistrationAppliedPoliciesCollectionRequest) Get(ctx context.Context) ([]ManagedAppPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAppPolicy collection
+func (r *ManagedAppRegistrationIntendedPoliciesCollectionRequest) Get(ctx context.Context) ([]ManagedAppPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAppOperation collection
+func (r *ManagedAppRegistrationOperationsCollectionRequest) Get(ctx context.Context) ([]ManagedAppOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRemediationActionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRemediationActionEnum.go
new file mode 100644
index 00000000..68350c36
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRemediationActionEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppRemediationAction undocumented
+type ManagedAppRemediationAction int
+
+const (
+ // ManagedAppRemediationActionVBlock undocumented
+ ManagedAppRemediationActionVBlock ManagedAppRemediationAction = 0
+ // ManagedAppRemediationActionVWipe undocumented
+ ManagedAppRemediationActionVWipe ManagedAppRemediationAction = 1
+ // ManagedAppRemediationActionVWarn undocumented
+ ManagedAppRemediationActionVWarn ManagedAppRemediationAction = 2
+)
+
+// ManagedAppRemediationActionPBlock returns a pointer to ManagedAppRemediationActionVBlock
+func ManagedAppRemediationActionPBlock() *ManagedAppRemediationAction {
+ v := ManagedAppRemediationActionVBlock
+ return &v
+}
+
+// ManagedAppRemediationActionPWipe returns a pointer to ManagedAppRemediationActionVWipe
+func ManagedAppRemediationActionPWipe() *ManagedAppRemediationAction {
+ v := ManagedAppRemediationActionVWipe
+ return &v
+}
+
+// ManagedAppRemediationActionPWarn returns a pointer to ManagedAppRemediationActionVWarn
+func ManagedAppRemediationActionPWarn() *ManagedAppRemediationAction {
+ v := ManagedAppRemediationActionVWarn
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusModel.go
new file mode 100644
index 00000000..42c10204
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusRawModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusRawModel.go
new file mode 100644
index 00000000..b0c46afe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusRawModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "encoding/json"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusRequest.go
new file mode 100644
index 00000000..c354fa50
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedBrowserTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedBrowserTypeEnum.go
new file mode 100644
index 00000000..bc8b5946
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedBrowserTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedBrowserType undocumented
+type ManagedBrowserType int
+
+const (
+ // ManagedBrowserTypeVNotConfigured undocumented
+ ManagedBrowserTypeVNotConfigured ManagedBrowserType = 0
+ // ManagedBrowserTypeVMicrosoftEdge undocumented
+ ManagedBrowserTypeVMicrosoftEdge ManagedBrowserType = 1
+)
+
+// ManagedBrowserTypePNotConfigured returns a pointer to ManagedBrowserTypeVNotConfigured
+func ManagedBrowserTypePNotConfigured() *ManagedBrowserType {
+ v := ManagedBrowserTypeVNotConfigured
+ return &v
+}
+
+// ManagedBrowserTypePMicrosoftEdge returns a pointer to ManagedBrowserTypeVMicrosoftEdge
+func ManagedBrowserTypePMicrosoftEdge() *ManagedBrowserType {
+ v := ManagedBrowserTypeVMicrosoftEdge
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceAction.go
new file mode 100644
index 00000000..1aa646b4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceAction.go
@@ -0,0 +1,908 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+// 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"`
+}
+
+//
+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 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCertificateStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCertificateStateModel.go
new file mode 100644
index 00000000..c7190529
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCertificateStateModel.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCertificateStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCertificateStateRequest.go
new file mode 100644
index 00000000..331bd7a0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCertificateStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCleanupSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCleanupSettingsModel.go
new file mode 100644
index 00000000..f5cfe666
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCleanupSettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceEncryptionStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceEncryptionStateModel.go
new file mode 100644
index 00000000..9084c352
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceEncryptionStateModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceEncryptionStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceEncryptionStateRequest.go
new file mode 100644
index 00000000..be96ae50
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceEncryptionStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAction.go
new file mode 100644
index 00000000..b7eba7c3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedDeviceMobileAppConfigurationAssignRequestParameter undocumented
+type ManagedDeviceMobileAppConfigurationAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []ManagedDeviceMobileAppConfigurationAssignment `json:"assignments,omitempty"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentModel.go
new file mode 100644
index 00000000..8e8c873f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentRequest.go
new file mode 100644
index 00000000..5dc907df
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusModel.go
new file mode 100644
index 00000000..9b6eb017
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusRequest.go
new file mode 100644
index 00000000..cb559c3b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryModel.go
new file mode 100644
index 00000000..6c0c19b1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryRequest.go
new file mode 100644
index 00000000..45472974
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationModel.go
new file mode 100644
index 00000000..d3597eb4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationPolicySetItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationPolicySetItemModel.go
new file mode 100644
index 00000000..052821cd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationPolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationRequest.go
new file mode 100644
index 00000000..f4997a98
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationRequest.go
@@ -0,0 +1,341 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationAssignment collection
+func (r *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (r *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (r *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateModel.go
new file mode 100644
index 00000000..151ad6ec
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateRequest.go
new file mode 100644
index 00000000..3f082ec3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusModel.go
new file mode 100644
index 00000000..5f57355d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusRequest.go
new file mode 100644
index 00000000..17081be5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryModel.go
new file mode 100644
index 00000000..b9b82deb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryRequest.go
new file mode 100644
index 00000000..90d256ff
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceModel.go
new file mode 100644
index 00000000..d75b6161
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceModel.go
@@ -0,0 +1,165 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceModelsAndManufacturersModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceModelsAndManufacturersModel.go
new file mode 100644
index 00000000..66dea095
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceModelsAndManufacturersModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOverviewModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOverviewModel.go
new file mode 100644
index 00000000..1845bf0d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOverviewModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOverviewRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOverviewRequest.go
new file mode 100644
index 00000000..6fe32df3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOverviewRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOwnerTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOwnerTypeEnum.go
new file mode 100644
index 00000000..18014278
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOwnerTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedDeviceOwnerType undocumented
+type ManagedDeviceOwnerType int
+
+const (
+ // ManagedDeviceOwnerTypeVUnknown undocumented
+ ManagedDeviceOwnerTypeVUnknown ManagedDeviceOwnerType = 0
+ // ManagedDeviceOwnerTypeVCompany undocumented
+ ManagedDeviceOwnerTypeVCompany ManagedDeviceOwnerType = 1
+ // ManagedDeviceOwnerTypeVPersonal undocumented
+ ManagedDeviceOwnerTypeVPersonal ManagedDeviceOwnerType = 2
+)
+
+// ManagedDeviceOwnerTypePUnknown returns a pointer to ManagedDeviceOwnerTypeVUnknown
+func ManagedDeviceOwnerTypePUnknown() *ManagedDeviceOwnerType {
+ v := ManagedDeviceOwnerTypeVUnknown
+ return &v
+}
+
+// ManagedDeviceOwnerTypePCompany returns a pointer to ManagedDeviceOwnerTypeVCompany
+func ManagedDeviceOwnerTypePCompany() *ManagedDeviceOwnerType {
+ v := ManagedDeviceOwnerTypeVCompany
+ return &v
+}
+
+// ManagedDeviceOwnerTypePPersonal returns a pointer to ManagedDeviceOwnerTypeVPersonal
+func ManagedDeviceOwnerTypePPersonal() *ManagedDeviceOwnerType {
+ v := ManagedDeviceOwnerTypeVPersonal
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDevicePartnerReportedHealthStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDevicePartnerReportedHealthStateEnum.go
new file mode 100644
index 00000000..eeb258d4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDevicePartnerReportedHealthStateEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedDevicePartnerReportedHealthState undocumented
+type ManagedDevicePartnerReportedHealthState int
+
+const (
+ // ManagedDevicePartnerReportedHealthStateVUnknown undocumented
+ ManagedDevicePartnerReportedHealthStateVUnknown ManagedDevicePartnerReportedHealthState = 0
+ // ManagedDevicePartnerReportedHealthStateVActivated undocumented
+ ManagedDevicePartnerReportedHealthStateVActivated ManagedDevicePartnerReportedHealthState = 1
+ // ManagedDevicePartnerReportedHealthStateVDeactivated undocumented
+ ManagedDevicePartnerReportedHealthStateVDeactivated ManagedDevicePartnerReportedHealthState = 2
+ // ManagedDevicePartnerReportedHealthStateVSecured undocumented
+ ManagedDevicePartnerReportedHealthStateVSecured ManagedDevicePartnerReportedHealthState = 3
+ // ManagedDevicePartnerReportedHealthStateVLowSeverity undocumented
+ ManagedDevicePartnerReportedHealthStateVLowSeverity ManagedDevicePartnerReportedHealthState = 4
+ // ManagedDevicePartnerReportedHealthStateVMediumSeverity undocumented
+ ManagedDevicePartnerReportedHealthStateVMediumSeverity ManagedDevicePartnerReportedHealthState = 5
+ // ManagedDevicePartnerReportedHealthStateVHighSeverity undocumented
+ ManagedDevicePartnerReportedHealthStateVHighSeverity ManagedDevicePartnerReportedHealthState = 6
+ // ManagedDevicePartnerReportedHealthStateVUnresponsive undocumented
+ ManagedDevicePartnerReportedHealthStateVUnresponsive ManagedDevicePartnerReportedHealthState = 7
+ // ManagedDevicePartnerReportedHealthStateVCompromised undocumented
+ ManagedDevicePartnerReportedHealthStateVCompromised ManagedDevicePartnerReportedHealthState = 8
+ // ManagedDevicePartnerReportedHealthStateVMisconfigured undocumented
+ ManagedDevicePartnerReportedHealthStateVMisconfigured ManagedDevicePartnerReportedHealthState = 9
+)
+
+// ManagedDevicePartnerReportedHealthStatePUnknown returns a pointer to ManagedDevicePartnerReportedHealthStateVUnknown
+func ManagedDevicePartnerReportedHealthStatePUnknown() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVUnknown
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePActivated returns a pointer to ManagedDevicePartnerReportedHealthStateVActivated
+func ManagedDevicePartnerReportedHealthStatePActivated() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVActivated
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePDeactivated returns a pointer to ManagedDevicePartnerReportedHealthStateVDeactivated
+func ManagedDevicePartnerReportedHealthStatePDeactivated() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVDeactivated
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePSecured returns a pointer to ManagedDevicePartnerReportedHealthStateVSecured
+func ManagedDevicePartnerReportedHealthStatePSecured() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVSecured
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePLowSeverity returns a pointer to ManagedDevicePartnerReportedHealthStateVLowSeverity
+func ManagedDevicePartnerReportedHealthStatePLowSeverity() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVLowSeverity
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePMediumSeverity returns a pointer to ManagedDevicePartnerReportedHealthStateVMediumSeverity
+func ManagedDevicePartnerReportedHealthStatePMediumSeverity() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVMediumSeverity
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePHighSeverity returns a pointer to ManagedDevicePartnerReportedHealthStateVHighSeverity
+func ManagedDevicePartnerReportedHealthStatePHighSeverity() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVHighSeverity
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePUnresponsive returns a pointer to ManagedDevicePartnerReportedHealthStateVUnresponsive
+func ManagedDevicePartnerReportedHealthStatePUnresponsive() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVUnresponsive
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePCompromised returns a pointer to ManagedDevicePartnerReportedHealthStateVCompromised
+func ManagedDevicePartnerReportedHealthStatePCompromised() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVCompromised
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePMisconfigured returns a pointer to ManagedDevicePartnerReportedHealthStateVMisconfigured
+func ManagedDevicePartnerReportedHealthStatePMisconfigured() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVMisconfigured
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceRemoteActionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceRemoteActionEnum.go
new file mode 100644
index 00000000..9b0d5955
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceRemoteActionEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedDeviceRemoteAction undocumented
+type ManagedDeviceRemoteAction int
+
+const (
+ // ManagedDeviceRemoteActionVRetire undocumented
+ ManagedDeviceRemoteActionVRetire ManagedDeviceRemoteAction = 0
+ // ManagedDeviceRemoteActionVDelete undocumented
+ ManagedDeviceRemoteActionVDelete ManagedDeviceRemoteAction = 1
+ // ManagedDeviceRemoteActionVFullScan undocumented
+ ManagedDeviceRemoteActionVFullScan ManagedDeviceRemoteAction = 2
+ // ManagedDeviceRemoteActionVQuickScan undocumented
+ ManagedDeviceRemoteActionVQuickScan ManagedDeviceRemoteAction = 3
+ // ManagedDeviceRemoteActionVSignatureUpdate undocumented
+ ManagedDeviceRemoteActionVSignatureUpdate ManagedDeviceRemoteAction = 4
+ // ManagedDeviceRemoteActionVWipe undocumented
+ ManagedDeviceRemoteActionVWipe ManagedDeviceRemoteAction = 5
+ // ManagedDeviceRemoteActionVCustomTextNotification undocumented
+ ManagedDeviceRemoteActionVCustomTextNotification ManagedDeviceRemoteAction = 6
+ // ManagedDeviceRemoteActionVRebootNow undocumented
+ ManagedDeviceRemoteActionVRebootNow ManagedDeviceRemoteAction = 7
+ // ManagedDeviceRemoteActionVSetDeviceName undocumented
+ ManagedDeviceRemoteActionVSetDeviceName ManagedDeviceRemoteAction = 8
+)
+
+// ManagedDeviceRemoteActionPRetire returns a pointer to ManagedDeviceRemoteActionVRetire
+func ManagedDeviceRemoteActionPRetire() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVRetire
+ return &v
+}
+
+// ManagedDeviceRemoteActionPDelete returns a pointer to ManagedDeviceRemoteActionVDelete
+func ManagedDeviceRemoteActionPDelete() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVDelete
+ return &v
+}
+
+// ManagedDeviceRemoteActionPFullScan returns a pointer to ManagedDeviceRemoteActionVFullScan
+func ManagedDeviceRemoteActionPFullScan() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVFullScan
+ return &v
+}
+
+// ManagedDeviceRemoteActionPQuickScan returns a pointer to ManagedDeviceRemoteActionVQuickScan
+func ManagedDeviceRemoteActionPQuickScan() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVQuickScan
+ return &v
+}
+
+// ManagedDeviceRemoteActionPSignatureUpdate returns a pointer to ManagedDeviceRemoteActionVSignatureUpdate
+func ManagedDeviceRemoteActionPSignatureUpdate() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVSignatureUpdate
+ return &v
+}
+
+// ManagedDeviceRemoteActionPWipe returns a pointer to ManagedDeviceRemoteActionVWipe
+func ManagedDeviceRemoteActionPWipe() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVWipe
+ return &v
+}
+
+// ManagedDeviceRemoteActionPCustomTextNotification returns a pointer to ManagedDeviceRemoteActionVCustomTextNotification
+func ManagedDeviceRemoteActionPCustomTextNotification() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVCustomTextNotification
+ return &v
+}
+
+// ManagedDeviceRemoteActionPRebootNow returns a pointer to ManagedDeviceRemoteActionVRebootNow
+func ManagedDeviceRemoteActionPRebootNow() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVRebootNow
+ return &v
+}
+
+// ManagedDeviceRemoteActionPSetDeviceName returns a pointer to ManagedDeviceRemoteActionVSetDeviceName
+func ManagedDeviceRemoteActionPSetDeviceName() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVSetDeviceName
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceReportedAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceReportedAppModel.go
new file mode 100644
index 00000000..0847ea79
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceReportedAppModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceRequest.go
new file mode 100644
index 00000000..216679bd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceRequest.go
@@ -0,0 +1,623 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DetectedApp collection
+func (r *ManagedDeviceDetectedAppsCollectionRequest) Get(ctx context.Context) ([]DetectedApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceCompliancePolicyState collection
+func (r *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicyState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfigurationState collection
+func (r *ManagedDeviceDeviceConfigurationStatesCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationState collection
+func (r *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SecurityBaselineState collection
+func (r *ManagedDeviceSecurityBaselineStatesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for User collection
+func (r *ManagedDeviceUsersCollectionRequest) Get(ctx context.Context) ([]User, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAction.go
new file mode 100644
index 00000000..fa697c02
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedEBookAssignRequestParameter undocumented
+type ManagedEBookAssignRequestParameter struct {
+ // ManagedEBookAssignments undocumented
+ ManagedEBookAssignments []ManagedEBookAssignment `json:"managedEBookAssignments,omitempty"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/ManagedEBookAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAssignmentModel.go
new file mode 100644
index 00000000..70531260
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAssignmentModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAssignmentRequest.go
new file mode 100644
index 00000000..357bcedc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookCategoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookCategoryModel.go
new file mode 100644
index 00000000..454df9b0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookCategoryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookCategoryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookCategoryRequest.go
new file mode 100644
index 00000000..bb76969c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookCategoryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookModel.go
new file mode 100644
index 00000000..eb1a2aa4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookRequest.go
new file mode 100644
index 00000000..04e5a8f7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookRequest.go
@@ -0,0 +1,428 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedEBookAssignment collection
+func (r *ManagedEBookAssignmentsCollectionRequest) Get(ctx context.Context) ([]ManagedEBookAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedEBookCategory collection
+func (r *ManagedEBookCategoriesCollectionRequest) Get(ctx context.Context) ([]ManagedEBookCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceInstallState collection
+func (r *ManagedEBookDeviceStatesCollectionRequest) Get(ctx context.Context) ([]DeviceInstallState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserInstallStateSummary collection
+func (r *ManagedEBookUserStateSummaryCollectionRequest) Get(ctx context.Context) ([]UserInstallStateSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedIOSLobAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedIOSLobAppModel.go
new file mode 100644
index 00000000..efc08398
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedIOSLobAppModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedIOSStoreAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedIOSStoreAppModel.go
new file mode 100644
index 00000000..83a5f9ec
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedIOSStoreAppModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileAppModel.go
new file mode 100644
index 00000000..b1e63219
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileAppModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileAppRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileAppRequest.go
new file mode 100644
index 00000000..ae65085f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileAppRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileLobAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileLobAppModel.go
new file mode 100644
index 00000000..db7f55b7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileLobAppModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ManagedMobileLobAppRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileLobAppRequest.go
new file mode 100644
index 00000000..f3def296
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileLobAppRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppContent collection
+func (r *ManagedMobileLobAppContentVersionsCollectionRequest) Get(ctx context.Context) ([]MobileAppContent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ManagementAgentTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementAgentTypeEnum.go
new file mode 100644
index 00000000..1adbaeb9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementAgentTypeEnum.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagementAgentType undocumented
+type ManagementAgentType int
+
+const (
+ // ManagementAgentTypeVEas undocumented
+ ManagementAgentTypeVEas ManagementAgentType = 1
+ // ManagementAgentTypeVMdm undocumented
+ ManagementAgentTypeVMdm ManagementAgentType = 2
+ // ManagementAgentTypeVEasMdm undocumented
+ ManagementAgentTypeVEasMdm ManagementAgentType = 3
+ // ManagementAgentTypeVIntuneClient undocumented
+ ManagementAgentTypeVIntuneClient ManagementAgentType = 4
+ // ManagementAgentTypeVEasIntuneClient undocumented
+ ManagementAgentTypeVEasIntuneClient ManagementAgentType = 5
+ // ManagementAgentTypeVConfigurationManagerClient undocumented
+ ManagementAgentTypeVConfigurationManagerClient ManagementAgentType = 8
+ // ManagementAgentTypeVConfigurationManagerClientMdm undocumented
+ ManagementAgentTypeVConfigurationManagerClientMdm ManagementAgentType = 10
+ // ManagementAgentTypeVConfigurationManagerClientMdmEas undocumented
+ ManagementAgentTypeVConfigurationManagerClientMdmEas ManagementAgentType = 11
+ // ManagementAgentTypeVUnknown undocumented
+ ManagementAgentTypeVUnknown ManagementAgentType = 16
+ // ManagementAgentTypeVJamf undocumented
+ ManagementAgentTypeVJamf ManagementAgentType = 32
+ // ManagementAgentTypeVGoogleCloudDevicePolicyController undocumented
+ ManagementAgentTypeVGoogleCloudDevicePolicyController ManagementAgentType = 64
+ // ManagementAgentTypeVMicrosoft365ManagedMdm undocumented
+ ManagementAgentTypeVMicrosoft365ManagedMdm ManagementAgentType = 258
+)
+
+// ManagementAgentTypePEas returns a pointer to ManagementAgentTypeVEas
+func ManagementAgentTypePEas() *ManagementAgentType {
+ v := ManagementAgentTypeVEas
+ return &v
+}
+
+// ManagementAgentTypePMdm returns a pointer to ManagementAgentTypeVMdm
+func ManagementAgentTypePMdm() *ManagementAgentType {
+ v := ManagementAgentTypeVMdm
+ return &v
+}
+
+// ManagementAgentTypePEasMdm returns a pointer to ManagementAgentTypeVEasMdm
+func ManagementAgentTypePEasMdm() *ManagementAgentType {
+ v := ManagementAgentTypeVEasMdm
+ return &v
+}
+
+// ManagementAgentTypePIntuneClient returns a pointer to ManagementAgentTypeVIntuneClient
+func ManagementAgentTypePIntuneClient() *ManagementAgentType {
+ v := ManagementAgentTypeVIntuneClient
+ return &v
+}
+
+// ManagementAgentTypePEasIntuneClient returns a pointer to ManagementAgentTypeVEasIntuneClient
+func ManagementAgentTypePEasIntuneClient() *ManagementAgentType {
+ v := ManagementAgentTypeVEasIntuneClient
+ return &v
+}
+
+// ManagementAgentTypePConfigurationManagerClient returns a pointer to ManagementAgentTypeVConfigurationManagerClient
+func ManagementAgentTypePConfigurationManagerClient() *ManagementAgentType {
+ v := ManagementAgentTypeVConfigurationManagerClient
+ return &v
+}
+
+// ManagementAgentTypePConfigurationManagerClientMdm returns a pointer to ManagementAgentTypeVConfigurationManagerClientMdm
+func ManagementAgentTypePConfigurationManagerClientMdm() *ManagementAgentType {
+ v := ManagementAgentTypeVConfigurationManagerClientMdm
+ return &v
+}
+
+// ManagementAgentTypePConfigurationManagerClientMdmEas returns a pointer to ManagementAgentTypeVConfigurationManagerClientMdmEas
+func ManagementAgentTypePConfigurationManagerClientMdmEas() *ManagementAgentType {
+ v := ManagementAgentTypeVConfigurationManagerClientMdmEas
+ return &v
+}
+
+// ManagementAgentTypePUnknown returns a pointer to ManagementAgentTypeVUnknown
+func ManagementAgentTypePUnknown() *ManagementAgentType {
+ v := ManagementAgentTypeVUnknown
+ return &v
+}
+
+// ManagementAgentTypePJamf returns a pointer to ManagementAgentTypeVJamf
+func ManagementAgentTypePJamf() *ManagementAgentType {
+ v := ManagementAgentTypeVJamf
+ return &v
+}
+
+// ManagementAgentTypePGoogleCloudDevicePolicyController returns a pointer to ManagementAgentTypeVGoogleCloudDevicePolicyController
+func ManagementAgentTypePGoogleCloudDevicePolicyController() *ManagementAgentType {
+ v := ManagementAgentTypeVGoogleCloudDevicePolicyController
+ return &v
+}
+
+// ManagementAgentTypePMicrosoft365ManagedMdm returns a pointer to ManagementAgentTypeVMicrosoft365ManagedMdm
+func ManagementAgentTypePMicrosoft365ManagedMdm() *ManagementAgentType {
+ v := ManagementAgentTypeVMicrosoft365ManagedMdm
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementCertificateWithThumbprintModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementCertificateWithThumbprintModel.go
new file mode 100644
index 00000000..c9ff838d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementCertificateWithThumbprintModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionModel.go
new file mode 100644
index 00000000..5e858b72
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagementConditionExpression undocumented
+type ManagementConditionExpression struct {
+ // Object is the base model of ManagementConditionExpression
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionModelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionModelModel.go
new file mode 100644
index 00000000..6021abe8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionModelModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagementConditionExpressionModel undocumented
+type ManagementConditionExpressionModel struct {
+ // ManagementConditionExpression is the base model of ManagementConditionExpressionModel
+ ManagementConditionExpression
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionStringModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionStringModel.go
new file mode 100644
index 00000000..064ca641
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionStringModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionModel.go
new file mode 100644
index 00000000..16ae23f6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionRequest.go
new file mode 100644
index 00000000..45056a7c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagementConditionStatement collection
+func (r *ManagementConditionManagementConditionStatementsCollectionRequest) Get(ctx context.Context) ([]ManagementConditionStatement, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionStatementModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionStatementModel.go
new file mode 100644
index 00000000..cf690943
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionStatementModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/ManagementConditionStatementRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionStatementRequest.go
new file mode 100644
index 00000000..82edde02
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionStatementRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagementCondition collection
+func (r *ManagementConditionStatementManagementConditionsCollectionRequest) Get(ctx context.Context) ([]ManagementCondition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ManagementStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementStateEnum.go
new file mode 100644
index 00000000..42424f8a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ManagementStateEnum.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagementState undocumented
+type ManagementState int
+
+const (
+ // ManagementStateVManaged undocumented
+ ManagementStateVManaged ManagementState = 0
+ // ManagementStateVRetirePending undocumented
+ ManagementStateVRetirePending ManagementState = 1
+ // ManagementStateVRetireFailed undocumented
+ ManagementStateVRetireFailed ManagementState = 2
+ // ManagementStateVWipePending undocumented
+ ManagementStateVWipePending ManagementState = 3
+ // ManagementStateVWipeFailed undocumented
+ ManagementStateVWipeFailed ManagementState = 4
+ // ManagementStateVUnhealthy undocumented
+ ManagementStateVUnhealthy ManagementState = 5
+ // ManagementStateVDeletePending undocumented
+ ManagementStateVDeletePending ManagementState = 6
+ // ManagementStateVRetireIssued undocumented
+ ManagementStateVRetireIssued ManagementState = 7
+ // ManagementStateVWipeIssued undocumented
+ ManagementStateVWipeIssued ManagementState = 8
+ // ManagementStateVWipeCanceled undocumented
+ ManagementStateVWipeCanceled ManagementState = 9
+ // ManagementStateVRetireCanceled undocumented
+ ManagementStateVRetireCanceled ManagementState = 10
+ // ManagementStateVDiscovered undocumented
+ ManagementStateVDiscovered ManagementState = 11
+)
+
+// ManagementStatePManaged returns a pointer to ManagementStateVManaged
+func ManagementStatePManaged() *ManagementState {
+ v := ManagementStateVManaged
+ return &v
+}
+
+// ManagementStatePRetirePending returns a pointer to ManagementStateVRetirePending
+func ManagementStatePRetirePending() *ManagementState {
+ v := ManagementStateVRetirePending
+ return &v
+}
+
+// ManagementStatePRetireFailed returns a pointer to ManagementStateVRetireFailed
+func ManagementStatePRetireFailed() *ManagementState {
+ v := ManagementStateVRetireFailed
+ return &v
+}
+
+// ManagementStatePWipePending returns a pointer to ManagementStateVWipePending
+func ManagementStatePWipePending() *ManagementState {
+ v := ManagementStateVWipePending
+ return &v
+}
+
+// ManagementStatePWipeFailed returns a pointer to ManagementStateVWipeFailed
+func ManagementStatePWipeFailed() *ManagementState {
+ v := ManagementStateVWipeFailed
+ return &v
+}
+
+// ManagementStatePUnhealthy returns a pointer to ManagementStateVUnhealthy
+func ManagementStatePUnhealthy() *ManagementState {
+ v := ManagementStateVUnhealthy
+ return &v
+}
+
+// ManagementStatePDeletePending returns a pointer to ManagementStateVDeletePending
+func ManagementStatePDeletePending() *ManagementState {
+ v := ManagementStateVDeletePending
+ return &v
+}
+
+// ManagementStatePRetireIssued returns a pointer to ManagementStateVRetireIssued
+func ManagementStatePRetireIssued() *ManagementState {
+ v := ManagementStateVRetireIssued
+ return &v
+}
+
+// ManagementStatePWipeIssued returns a pointer to ManagementStateVWipeIssued
+func ManagementStatePWipeIssued() *ManagementState {
+ v := ManagementStateVWipeIssued
+ return &v
+}
+
+// ManagementStatePWipeCanceled returns a pointer to ManagementStateVWipeCanceled
+func ManagementStatePWipeCanceled() *ManagementState {
+ v := ManagementStateVWipeCanceled
+ return &v
+}
+
+// ManagementStatePRetireCanceled returns a pointer to ManagementStateVRetireCanceled
+func ManagementStatePRetireCanceled() *ManagementState {
+ v := ManagementStateVRetireCanceled
+ return &v
+}
+
+// ManagementStatePDiscovered returns a pointer to ManagementStateVDiscovered
+func ManagementStatePDiscovered() *ManagementState {
+ v := ManagementStateVDiscovered
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MarkContentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MarkContentModel.go
new file mode 100644
index 00000000..52adcc86
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MarkContentModel.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/matterbridge/msgraph.go/beta/MatchLocationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MatchLocationModel.go
new file mode 100644
index 00000000..1399ee58
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MatchLocationModel.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/matterbridge/msgraph.go/beta/MatchingDlpRuleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MatchingDlpRuleModel.go
new file mode 100644
index 00000000..7f17dd43
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MatchingDlpRuleModel.go
@@ -0,0 +1,25 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MatchingLabelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MatchingLabelModel.go
new file mode 100644
index 00000000..b87362e0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MatchingLabelModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/MdmAppConfigKeyTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MdmAppConfigKeyTypeEnum.go
new file mode 100644
index 00000000..f26f202c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MdmAppConfigKeyTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MdmAppConfigKeyType undocumented
+type MdmAppConfigKeyType int
+
+const (
+ // MdmAppConfigKeyTypeVStringType undocumented
+ MdmAppConfigKeyTypeVStringType MdmAppConfigKeyType = 0
+ // MdmAppConfigKeyTypeVIntegerType undocumented
+ MdmAppConfigKeyTypeVIntegerType MdmAppConfigKeyType = 1
+ // MdmAppConfigKeyTypeVRealType undocumented
+ MdmAppConfigKeyTypeVRealType MdmAppConfigKeyType = 2
+ // MdmAppConfigKeyTypeVBooleanType undocumented
+ MdmAppConfigKeyTypeVBooleanType MdmAppConfigKeyType = 3
+ // MdmAppConfigKeyTypeVTokenType undocumented
+ MdmAppConfigKeyTypeVTokenType MdmAppConfigKeyType = 4
+)
+
+// MdmAppConfigKeyTypePStringType returns a pointer to MdmAppConfigKeyTypeVStringType
+func MdmAppConfigKeyTypePStringType() *MdmAppConfigKeyType {
+ v := MdmAppConfigKeyTypeVStringType
+ return &v
+}
+
+// MdmAppConfigKeyTypePIntegerType returns a pointer to MdmAppConfigKeyTypeVIntegerType
+func MdmAppConfigKeyTypePIntegerType() *MdmAppConfigKeyType {
+ v := MdmAppConfigKeyTypeVIntegerType
+ return &v
+}
+
+// MdmAppConfigKeyTypePRealType returns a pointer to MdmAppConfigKeyTypeVRealType
+func MdmAppConfigKeyTypePRealType() *MdmAppConfigKeyType {
+ v := MdmAppConfigKeyTypeVRealType
+ return &v
+}
+
+// MdmAppConfigKeyTypePBooleanType returns a pointer to MdmAppConfigKeyTypeVBooleanType
+func MdmAppConfigKeyTypePBooleanType() *MdmAppConfigKeyType {
+ v := MdmAppConfigKeyTypeVBooleanType
+ return &v
+}
+
+// MdmAppConfigKeyTypePTokenType returns a pointer to MdmAppConfigKeyTypeVTokenType
+func MdmAppConfigKeyTypePTokenType() *MdmAppConfigKeyType {
+ v := MdmAppConfigKeyTypeVTokenType
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MdmAuthorityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MdmAuthorityEnum.go
new file mode 100644
index 00000000..aca7d147
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MdmAuthorityEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MdmAuthority undocumented
+type MdmAuthority int
+
+const (
+ // MdmAuthorityVUnknown undocumented
+ MdmAuthorityVUnknown MdmAuthority = 0
+ // MdmAuthorityVIntune undocumented
+ MdmAuthorityVIntune MdmAuthority = 1
+ // MdmAuthorityVSccm undocumented
+ MdmAuthorityVSccm MdmAuthority = 2
+ // MdmAuthorityVOffice365 undocumented
+ MdmAuthorityVOffice365 MdmAuthority = 3
+)
+
+// MdmAuthorityPUnknown returns a pointer to MdmAuthorityVUnknown
+func MdmAuthorityPUnknown() *MdmAuthority {
+ v := MdmAuthorityVUnknown
+ return &v
+}
+
+// MdmAuthorityPIntune returns a pointer to MdmAuthorityVIntune
+func MdmAuthorityPIntune() *MdmAuthority {
+ v := MdmAuthorityVIntune
+ return &v
+}
+
+// MdmAuthorityPSccm returns a pointer to MdmAuthorityVSccm
+func MdmAuthorityPSccm() *MdmAuthority {
+ v := MdmAuthorityVSccm
+ return &v
+}
+
+// MdmAuthorityPOffice365 returns a pointer to MdmAuthorityVOffice365
+func MdmAuthorityPOffice365() *MdmAuthority {
+ v := MdmAuthorityVOffice365
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyAction.go
new file mode 100644
index 00000000..182fee32
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyAction.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// MdmWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestParameter undocumented
+type MdmWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyModel.go
new file mode 100644
index 00000000..ba7e213f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyModel.go
@@ -0,0 +1,9 @@
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyPolicySetItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyPolicySetItemModel.go
new file mode 100644
index 00000000..9c01deee
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyPolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyRequest.go
new file mode 100644
index 00000000..71a08ec6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MediaConfigModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MediaConfigModel.go
new file mode 100644
index 00000000..aa9c4057
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MediaConfigModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingAustraliaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingAustraliaModel.go
new file mode 100644
index 00000000..b10a87d4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingAustraliaModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingCanadaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingCanadaModel.go
new file mode 100644
index 00000000..db661dfc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingCanadaModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingFranceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingFranceModel.go
new file mode 100644
index 00000000..d6dc5629
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingFranceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingGermanyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingGermanyModel.go
new file mode 100644
index 00000000..5a90266f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingGermanyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingIrelandModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingIrelandModel.go
new file mode 100644
index 00000000..fdb504e2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingIrelandModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingJapanModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingJapanModel.go
new file mode 100644
index 00000000..f136dec7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingJapanModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingNewZealandModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingNewZealandModel.go
new file mode 100644
index 00000000..b2094488
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingNewZealandModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingUnitedKingdomModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingUnitedKingdomModel.go
new file mode 100644
index 00000000..b781a89d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingUnitedKingdomModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingUnitedStatesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingUnitedStatesModel.go
new file mode 100644
index 00000000..870fd089
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingUnitedStatesModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MediaDirectionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MediaDirectionEnum.go
new file mode 100644
index 00000000..79569acf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MediaDirectionEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaDirection undocumented
+type MediaDirection int
+
+const (
+ // MediaDirectionVInactive undocumented
+ MediaDirectionVInactive MediaDirection = 0
+ // MediaDirectionVSendOnly undocumented
+ MediaDirectionVSendOnly MediaDirection = 1
+ // MediaDirectionVReceiveOnly undocumented
+ MediaDirectionVReceiveOnly MediaDirection = 2
+ // MediaDirectionVSendReceive undocumented
+ MediaDirectionVSendReceive MediaDirection = 3
+)
+
+// MediaDirectionPInactive returns a pointer to MediaDirectionVInactive
+func MediaDirectionPInactive() *MediaDirection {
+ v := MediaDirectionVInactive
+ return &v
+}
+
+// MediaDirectionPSendOnly returns a pointer to MediaDirectionVSendOnly
+func MediaDirectionPSendOnly() *MediaDirection {
+ v := MediaDirectionVSendOnly
+ return &v
+}
+
+// MediaDirectionPReceiveOnly returns a pointer to MediaDirectionVReceiveOnly
+func MediaDirectionPReceiveOnly() *MediaDirection {
+ v := MediaDirectionVReceiveOnly
+ return &v
+}
+
+// MediaDirectionPSendReceive returns a pointer to MediaDirectionVSendReceive
+func MediaDirectionPSendReceive() *MediaDirection {
+ v := MediaDirectionVSendReceive
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MediaInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MediaInfoModel.go
new file mode 100644
index 00000000..c062bd6b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MediaInfoModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MediaPromptModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MediaPromptModel.go
new file mode 100644
index 00000000..2c3b3411
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MediaPromptModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MediaStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MediaStateEnum.go
new file mode 100644
index 00000000..d8251a21
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MediaStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaState undocumented
+type MediaState int
+
+const (
+ // MediaStateVActive undocumented
+ MediaStateVActive MediaState = 0
+ // MediaStateVInactive undocumented
+ MediaStateVInactive MediaState = 1
+ // MediaStateVUnknownFutureValue undocumented
+ MediaStateVUnknownFutureValue MediaState = 2
+)
+
+// MediaStatePActive returns a pointer to MediaStateVActive
+func MediaStatePActive() *MediaState {
+ v := MediaStateVActive
+ return &v
+}
+
+// MediaStatePInactive returns a pointer to MediaStateVInactive
+func MediaStatePInactive() *MediaState {
+ v := MediaStateVInactive
+ return &v
+}
+
+// MediaStatePUnknownFutureValue returns a pointer to MediaStateVUnknownFutureValue
+func MediaStatePUnknownFutureValue() *MediaState {
+ v := MediaStateVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MediaStreamModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MediaStreamModel.go
new file mode 100644
index 00000000..9a8a9da9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MediaStreamModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/MeetingActivityStatisticsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingActivityStatisticsModel.go
new file mode 100644
index 00000000..6954334a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingActivityStatisticsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MeetingActivityStatistics undocumented
+type MeetingActivityStatistics struct {
+ // ActivityStatistics is the base model of MeetingActivityStatistics
+ ActivityStatistics
+ // AfterHours undocumented
+ AfterHours *time.Duration `json:"afterHours,omitempty"`
+ // Organized undocumented
+ Organized *time.Duration `json:"organized,omitempty"`
+ // Recurring undocumented
+ Recurring *time.Duration `json:"recurring,omitempty"`
+ // Long undocumented
+ Long *time.Duration `json:"long,omitempty"`
+ // Conflicting undocumented
+ Conflicting *time.Duration `json:"conflicting,omitempty"`
+ // Multitasking undocumented
+ Multitasking *time.Duration `json:"multitasking,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingCapabilitiesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingCapabilitiesEnum.go
new file mode 100644
index 00000000..4fbc9bee
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingCapabilitiesEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeetingCapabilities undocumented
+type MeetingCapabilities int
+
+const (
+ // MeetingCapabilitiesVQuestionAndAnswer undocumented
+ MeetingCapabilitiesVQuestionAndAnswer MeetingCapabilities = 0
+ // MeetingCapabilitiesVUnknownFutureValue undocumented
+ MeetingCapabilitiesVUnknownFutureValue MeetingCapabilities = 1
+)
+
+// MeetingCapabilitiesPQuestionAndAnswer returns a pointer to MeetingCapabilitiesVQuestionAndAnswer
+func MeetingCapabilitiesPQuestionAndAnswer() *MeetingCapabilities {
+ v := MeetingCapabilitiesVQuestionAndAnswer
+ return &v
+}
+
+// MeetingCapabilitiesPUnknownFutureValue returns a pointer to MeetingCapabilitiesVUnknownFutureValue
+func MeetingCapabilitiesPUnknownFutureValue() *MeetingCapabilities {
+ v := MeetingCapabilitiesVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingCapabilityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingCapabilityModel.go
new file mode 100644
index 00000000..40950558
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingCapabilityModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingInfoModel.go
new file mode 100644
index 00000000..b08732e1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingInfoModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeetingInfo undocumented
+type MeetingInfo struct {
+ // Object is the base model of MeetingInfo
+ Object
+ // AllowConversationWithoutHost undocumented
+ AllowConversationWithoutHost *bool `json:"allowConversationWithoutHost,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingMessageTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingMessageTypeEnum.go
new file mode 100644
index 00000000..1ccc71dc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingMessageTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeetingMessageType undocumented
+type MeetingMessageType int
+
+const (
+ // MeetingMessageTypeVNone undocumented
+ MeetingMessageTypeVNone MeetingMessageType = 0
+ // MeetingMessageTypeVMeetingRequest undocumented
+ MeetingMessageTypeVMeetingRequest MeetingMessageType = 1
+ // MeetingMessageTypeVMeetingCancelled undocumented
+ MeetingMessageTypeVMeetingCancelled MeetingMessageType = 2
+ // MeetingMessageTypeVMeetingAccepted undocumented
+ MeetingMessageTypeVMeetingAccepted MeetingMessageType = 3
+ // MeetingMessageTypeVMeetingTentativelyAccepted undocumented
+ MeetingMessageTypeVMeetingTentativelyAccepted MeetingMessageType = 4
+ // MeetingMessageTypeVMeetingDeclined undocumented
+ MeetingMessageTypeVMeetingDeclined MeetingMessageType = 5
+)
+
+// MeetingMessageTypePNone returns a pointer to MeetingMessageTypeVNone
+func MeetingMessageTypePNone() *MeetingMessageType {
+ v := MeetingMessageTypeVNone
+ return &v
+}
+
+// MeetingMessageTypePMeetingRequest returns a pointer to MeetingMessageTypeVMeetingRequest
+func MeetingMessageTypePMeetingRequest() *MeetingMessageType {
+ v := MeetingMessageTypeVMeetingRequest
+ return &v
+}
+
+// MeetingMessageTypePMeetingCancelled returns a pointer to MeetingMessageTypeVMeetingCancelled
+func MeetingMessageTypePMeetingCancelled() *MeetingMessageType {
+ v := MeetingMessageTypeVMeetingCancelled
+ return &v
+}
+
+// MeetingMessageTypePMeetingAccepted returns a pointer to MeetingMessageTypeVMeetingAccepted
+func MeetingMessageTypePMeetingAccepted() *MeetingMessageType {
+ v := MeetingMessageTypeVMeetingAccepted
+ return &v
+}
+
+// MeetingMessageTypePMeetingTentativelyAccepted returns a pointer to MeetingMessageTypeVMeetingTentativelyAccepted
+func MeetingMessageTypePMeetingTentativelyAccepted() *MeetingMessageType {
+ v := MeetingMessageTypeVMeetingTentativelyAccepted
+ return &v
+}
+
+// MeetingMessageTypePMeetingDeclined returns a pointer to MeetingMessageTypeVMeetingDeclined
+func MeetingMessageTypePMeetingDeclined() *MeetingMessageType {
+ v := MeetingMessageTypeVMeetingDeclined
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingParticipantInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingParticipantInfoModel.go
new file mode 100644
index 00000000..8357e5cd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingParticipantInfoModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingParticipantsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingParticipantsModel.go
new file mode 100644
index 00000000..ef9698b5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingParticipantsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingTimeSuggestionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingTimeSuggestionModel.go
new file mode 100644
index 00000000..69a35a0c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingTimeSuggestionModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingTimeSuggestionsResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingTimeSuggestionsResultModel.go
new file mode 100644
index 00000000..acdc1791
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MeetingTimeSuggestionsResultModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/MembershipRuleEvaluationDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MembershipRuleEvaluationDetailsModel.go
new file mode 100644
index 00000000..dd67f2b9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MembershipRuleEvaluationDetailsModel.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/matterbridge/msgraph.go/beta/MentionActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MentionActionModel.go
new file mode 100644
index 00000000..f9936958
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MentionActionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/MentionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MentionModel.go
new file mode 100644
index 00000000..5089df3c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MentionModel.go
@@ -0,0 +1,27 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MentionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MentionRequest.go
new file mode 100644
index 00000000..c29b2084
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MentionRequest.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/matterbridge/msgraph.go/beta/MentionsPreviewModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MentionsPreviewModel.go
new file mode 100644
index 00000000..2e950ba1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MentionsPreviewModel.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/matterbridge/msgraph.go/beta/MessageAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/MessageAction.go
new file mode 100644
index 00000000..d3d12a39
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MessageAction.go
@@ -0,0 +1,342 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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 {
+}
+
+//
+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/matterbridge/msgraph.go/beta/MessageActionFlagEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MessageActionFlagEnum.go
new file mode 100644
index 00000000..3206d744
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MessageActionFlagEnum.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MessageActionFlag undocumented
+type MessageActionFlag int
+
+const (
+ // MessageActionFlagVAny undocumented
+ MessageActionFlagVAny MessageActionFlag = 0
+ // MessageActionFlagVCall undocumented
+ MessageActionFlagVCall MessageActionFlag = 1
+ // MessageActionFlagVDoNotForward undocumented
+ MessageActionFlagVDoNotForward MessageActionFlag = 2
+ // MessageActionFlagVFollowUp undocumented
+ MessageActionFlagVFollowUp MessageActionFlag = 3
+ // MessageActionFlagVFyi undocumented
+ MessageActionFlagVFyi MessageActionFlag = 4
+ // MessageActionFlagVForward undocumented
+ MessageActionFlagVForward MessageActionFlag = 5
+ // MessageActionFlagVNoResponseNecessary undocumented
+ MessageActionFlagVNoResponseNecessary MessageActionFlag = 6
+ // MessageActionFlagVRead undocumented
+ MessageActionFlagVRead MessageActionFlag = 7
+ // MessageActionFlagVReply undocumented
+ MessageActionFlagVReply MessageActionFlag = 8
+ // MessageActionFlagVReplyToAll undocumented
+ MessageActionFlagVReplyToAll MessageActionFlag = 9
+ // MessageActionFlagVReview undocumented
+ MessageActionFlagVReview MessageActionFlag = 10
+)
+
+// MessageActionFlagPAny returns a pointer to MessageActionFlagVAny
+func MessageActionFlagPAny() *MessageActionFlag {
+ v := MessageActionFlagVAny
+ return &v
+}
+
+// MessageActionFlagPCall returns a pointer to MessageActionFlagVCall
+func MessageActionFlagPCall() *MessageActionFlag {
+ v := MessageActionFlagVCall
+ return &v
+}
+
+// MessageActionFlagPDoNotForward returns a pointer to MessageActionFlagVDoNotForward
+func MessageActionFlagPDoNotForward() *MessageActionFlag {
+ v := MessageActionFlagVDoNotForward
+ return &v
+}
+
+// MessageActionFlagPFollowUp returns a pointer to MessageActionFlagVFollowUp
+func MessageActionFlagPFollowUp() *MessageActionFlag {
+ v := MessageActionFlagVFollowUp
+ return &v
+}
+
+// MessageActionFlagPFyi returns a pointer to MessageActionFlagVFyi
+func MessageActionFlagPFyi() *MessageActionFlag {
+ v := MessageActionFlagVFyi
+ return &v
+}
+
+// MessageActionFlagPForward returns a pointer to MessageActionFlagVForward
+func MessageActionFlagPForward() *MessageActionFlag {
+ v := MessageActionFlagVForward
+ return &v
+}
+
+// MessageActionFlagPNoResponseNecessary returns a pointer to MessageActionFlagVNoResponseNecessary
+func MessageActionFlagPNoResponseNecessary() *MessageActionFlag {
+ v := MessageActionFlagVNoResponseNecessary
+ return &v
+}
+
+// MessageActionFlagPRead returns a pointer to MessageActionFlagVRead
+func MessageActionFlagPRead() *MessageActionFlag {
+ v := MessageActionFlagVRead
+ return &v
+}
+
+// MessageActionFlagPReply returns a pointer to MessageActionFlagVReply
+func MessageActionFlagPReply() *MessageActionFlag {
+ v := MessageActionFlagVReply
+ return &v
+}
+
+// MessageActionFlagPReplyToAll returns a pointer to MessageActionFlagVReplyToAll
+func MessageActionFlagPReplyToAll() *MessageActionFlag {
+ v := MessageActionFlagVReplyToAll
+ return &v
+}
+
+// MessageActionFlagPReview returns a pointer to MessageActionFlagVReview
+func MessageActionFlagPReview() *MessageActionFlag {
+ v := MessageActionFlagVReview
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MessageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MessageModel.go
new file mode 100644
index 00000000..ac00292c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MessageModel.go
@@ -0,0 +1,79 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MessageRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MessageRequest.go
new file mode 100644
index 00000000..04b19678
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MessageRequest.go
@@ -0,0 +1,515 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Attachment collection
+func (r *MessageAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *MessageExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Mention collection
+func (r *MessageMentionsCollectionRequest) Get(ctx context.Context) ([]Mention, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *MessageMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *MessageSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/MessageRuleActionsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleActionsModel.go
new file mode 100644
index 00000000..150ce2b6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleActionsModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleModel.go
new file mode 100644
index 00000000..5392f037
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MessageRulePredicatesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MessageRulePredicatesModel.go
new file mode 100644
index 00000000..c5cae7b4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MessageRulePredicatesModel.go
@@ -0,0 +1,69 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/MessageRuleRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleRequest.go
new file mode 100644
index 00000000..f0f1066a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MetadataActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MetadataActionModel.go
new file mode 100644
index 00000000..36858178
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MetadataActionModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MetadataEntryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MetadataEntryModel.go
new file mode 100644
index 00000000..b6e80e0b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MetadataEntryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/MeteredConnectionLimitTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MeteredConnectionLimitTypeEnum.go
new file mode 100644
index 00000000..c0587e2b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MeteredConnectionLimitTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeteredConnectionLimitType undocumented
+type MeteredConnectionLimitType int
+
+const (
+ // MeteredConnectionLimitTypeVUnrestricted undocumented
+ MeteredConnectionLimitTypeVUnrestricted MeteredConnectionLimitType = 0
+ // MeteredConnectionLimitTypeVFixed undocumented
+ MeteredConnectionLimitTypeVFixed MeteredConnectionLimitType = 1
+ // MeteredConnectionLimitTypeVVariable undocumented
+ MeteredConnectionLimitTypeVVariable MeteredConnectionLimitType = 2
+)
+
+// MeteredConnectionLimitTypePUnrestricted returns a pointer to MeteredConnectionLimitTypeVUnrestricted
+func MeteredConnectionLimitTypePUnrestricted() *MeteredConnectionLimitType {
+ v := MeteredConnectionLimitTypeVUnrestricted
+ return &v
+}
+
+// MeteredConnectionLimitTypePFixed returns a pointer to MeteredConnectionLimitTypeVFixed
+func MeteredConnectionLimitTypePFixed() *MeteredConnectionLimitType {
+ v := MeteredConnectionLimitTypeVFixed
+ return &v
+}
+
+// MeteredConnectionLimitTypePVariable returns a pointer to MeteredConnectionLimitTypeVVariable
+func MeteredConnectionLimitTypePVariable() *MeteredConnectionLimitType {
+ v := MeteredConnectionLimitTypeVVariable
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MfaDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MfaDetailModel.go
new file mode 100644
index 00000000..12efcdc9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MfaDetailModel.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/matterbridge/msgraph.go/beta/MicrosoftEdgeChannelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftEdgeChannelEnum.go
new file mode 100644
index 00000000..5c46695f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftEdgeChannelEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MicrosoftEdgeChannel undocumented
+type MicrosoftEdgeChannel int
+
+const (
+ // MicrosoftEdgeChannelVDev undocumented
+ MicrosoftEdgeChannelVDev MicrosoftEdgeChannel = 0
+ // MicrosoftEdgeChannelVBeta undocumented
+ MicrosoftEdgeChannelVBeta MicrosoftEdgeChannel = 1
+ // MicrosoftEdgeChannelVStable undocumented
+ MicrosoftEdgeChannelVStable MicrosoftEdgeChannel = 2
+)
+
+// MicrosoftEdgeChannelPDev returns a pointer to MicrosoftEdgeChannelVDev
+func MicrosoftEdgeChannelPDev() *MicrosoftEdgeChannel {
+ v := MicrosoftEdgeChannelVDev
+ return &v
+}
+
+// MicrosoftEdgeChannelPBeta returns a pointer to MicrosoftEdgeChannelVBeta
+func MicrosoftEdgeChannelPBeta() *MicrosoftEdgeChannel {
+ v := MicrosoftEdgeChannelVBeta
+ return &v
+}
+
+// MicrosoftEdgeChannelPStable returns a pointer to MicrosoftEdgeChannelVStable
+func MicrosoftEdgeChannelPStable() *MicrosoftEdgeChannel {
+ v := MicrosoftEdgeChannelVStable
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppAssignmentSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..860eb4e6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppAssignmentSettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppModel.go
new file mode 100644
index 00000000..f3b2db9a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppModel.go
@@ -0,0 +1,23 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppRequest.go
new file mode 100644
index 00000000..14e63d37
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileContainedApp collection
+func (r *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest) Get(ctx context.Context) ([]MobileContainedApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessContainedAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessContainedAppModel.go
new file mode 100644
index 00000000..74faf3a9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessContainedAppModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessLicenseTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessLicenseTypeEnum.go
new file mode 100644
index 00000000..1920ad84
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessLicenseTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MicrosoftStoreForBusinessLicenseType undocumented
+type MicrosoftStoreForBusinessLicenseType int
+
+const (
+ // MicrosoftStoreForBusinessLicenseTypeVOffline undocumented
+ MicrosoftStoreForBusinessLicenseTypeVOffline MicrosoftStoreForBusinessLicenseType = 0
+ // MicrosoftStoreForBusinessLicenseTypeVOnline undocumented
+ MicrosoftStoreForBusinessLicenseTypeVOnline MicrosoftStoreForBusinessLicenseType = 1
+)
+
+// MicrosoftStoreForBusinessLicenseTypePOffline returns a pointer to MicrosoftStoreForBusinessLicenseTypeVOffline
+func MicrosoftStoreForBusinessLicenseTypePOffline() *MicrosoftStoreForBusinessLicenseType {
+ v := MicrosoftStoreForBusinessLicenseTypeVOffline
+ return &v
+}
+
+// MicrosoftStoreForBusinessLicenseTypePOnline returns a pointer to MicrosoftStoreForBusinessLicenseTypeVOnline
+func MicrosoftStoreForBusinessLicenseTypePOnline() *MicrosoftStoreForBusinessLicenseType {
+ v := MicrosoftStoreForBusinessLicenseTypeVOnline
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessPortalSelectionOptionsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessPortalSelectionOptionsEnum.go
new file mode 100644
index 00000000..c328c2d0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessPortalSelectionOptionsEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MicrosoftStoreForBusinessPortalSelectionOptions undocumented
+type MicrosoftStoreForBusinessPortalSelectionOptions int
+
+const (
+ // MicrosoftStoreForBusinessPortalSelectionOptionsVNone undocumented
+ MicrosoftStoreForBusinessPortalSelectionOptionsVNone MicrosoftStoreForBusinessPortalSelectionOptions = 0
+ // MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal undocumented
+ MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal MicrosoftStoreForBusinessPortalSelectionOptions = 1
+ // MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore undocumented
+ MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore MicrosoftStoreForBusinessPortalSelectionOptions = 2
+)
+
+// MicrosoftStoreForBusinessPortalSelectionOptionsPNone returns a pointer to MicrosoftStoreForBusinessPortalSelectionOptionsVNone
+func MicrosoftStoreForBusinessPortalSelectionOptionsPNone() *MicrosoftStoreForBusinessPortalSelectionOptions {
+ v := MicrosoftStoreForBusinessPortalSelectionOptionsVNone
+ return &v
+}
+
+// MicrosoftStoreForBusinessPortalSelectionOptionsPCompanyPortal returns a pointer to MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal
+func MicrosoftStoreForBusinessPortalSelectionOptionsPCompanyPortal() *MicrosoftStoreForBusinessPortalSelectionOptions {
+ v := MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal
+ return &v
+}
+
+// MicrosoftStoreForBusinessPortalSelectionOptionsPPrivateStore returns a pointer to MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore
+func MicrosoftStoreForBusinessPortalSelectionOptionsPPrivateStore() *MicrosoftStoreForBusinessPortalSelectionOptions {
+ v := MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MigrationStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MigrationStatusEnum.go
new file mode 100644
index 00000000..02b2a8a1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MigrationStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MigrationStatus undocumented
+type MigrationStatus int
+
+const (
+ // MigrationStatusVReady undocumented
+ MigrationStatusVReady MigrationStatus = 0
+ // MigrationStatusVNeedsReview undocumented
+ MigrationStatusVNeedsReview MigrationStatus = 1
+ // MigrationStatusVAdditionalStepsRequired undocumented
+ MigrationStatusVAdditionalStepsRequired MigrationStatus = 2
+ // MigrationStatusVUnknownFutureValue undocumented
+ MigrationStatusVUnknownFutureValue MigrationStatus = 3
+)
+
+// MigrationStatusPReady returns a pointer to MigrationStatusVReady
+func MigrationStatusPReady() *MigrationStatus {
+ v := MigrationStatusVReady
+ return &v
+}
+
+// MigrationStatusPNeedsReview returns a pointer to MigrationStatusVNeedsReview
+func MigrationStatusPNeedsReview() *MigrationStatus {
+ v := MigrationStatusVNeedsReview
+ return &v
+}
+
+// MigrationStatusPAdditionalStepsRequired returns a pointer to MigrationStatusVAdditionalStepsRequired
+func MigrationStatusPAdditionalStepsRequired() *MigrationStatus {
+ v := MigrationStatusVAdditionalStepsRequired
+ return &v
+}
+
+// MigrationStatusPUnknownFutureValue returns a pointer to MigrationStatusVUnknownFutureValue
+func MigrationStatusPUnknownFutureValue() *MigrationStatus {
+ v := MigrationStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MimeContentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MimeContentModel.go
new file mode 100644
index 00000000..3742495a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MimeContentModel.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/matterbridge/msgraph.go/beta/MiracastChannelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MiracastChannelEnum.go
new file mode 100644
index 00000000..04bc2286
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MiracastChannelEnum.go
@@ -0,0 +1,177 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MiracastChannel undocumented
+type MiracastChannel int
+
+const (
+ // MiracastChannelVUserDefined undocumented
+ MiracastChannelVUserDefined MiracastChannel = 0
+ // MiracastChannelVOne undocumented
+ MiracastChannelVOne MiracastChannel = 1
+ // MiracastChannelVTwo undocumented
+ MiracastChannelVTwo MiracastChannel = 2
+ // MiracastChannelVThree undocumented
+ MiracastChannelVThree MiracastChannel = 3
+ // MiracastChannelVFour undocumented
+ MiracastChannelVFour MiracastChannel = 4
+ // MiracastChannelVFive undocumented
+ MiracastChannelVFive MiracastChannel = 5
+ // MiracastChannelVSix undocumented
+ MiracastChannelVSix MiracastChannel = 6
+ // MiracastChannelVSeven undocumented
+ MiracastChannelVSeven MiracastChannel = 7
+ // MiracastChannelVEight undocumented
+ MiracastChannelVEight MiracastChannel = 8
+ // MiracastChannelVNine undocumented
+ MiracastChannelVNine MiracastChannel = 9
+ // MiracastChannelVTen undocumented
+ MiracastChannelVTen MiracastChannel = 10
+ // MiracastChannelVEleven undocumented
+ MiracastChannelVEleven MiracastChannel = 11
+ // MiracastChannelVThirtySix undocumented
+ MiracastChannelVThirtySix MiracastChannel = 36
+ // MiracastChannelVForty undocumented
+ MiracastChannelVForty MiracastChannel = 40
+ // MiracastChannelVFortyFour undocumented
+ MiracastChannelVFortyFour MiracastChannel = 44
+ // MiracastChannelVFortyEight undocumented
+ MiracastChannelVFortyEight MiracastChannel = 48
+ // MiracastChannelVOneHundredFortyNine undocumented
+ MiracastChannelVOneHundredFortyNine MiracastChannel = 149
+ // MiracastChannelVOneHundredFiftyThree undocumented
+ MiracastChannelVOneHundredFiftyThree MiracastChannel = 153
+ // MiracastChannelVOneHundredFiftySeven undocumented
+ MiracastChannelVOneHundredFiftySeven MiracastChannel = 157
+ // MiracastChannelVOneHundredSixtyOne undocumented
+ MiracastChannelVOneHundredSixtyOne MiracastChannel = 161
+ // MiracastChannelVOneHundredSixtyFive undocumented
+ MiracastChannelVOneHundredSixtyFive MiracastChannel = 165
+)
+
+// MiracastChannelPUserDefined returns a pointer to MiracastChannelVUserDefined
+func MiracastChannelPUserDefined() *MiracastChannel {
+ v := MiracastChannelVUserDefined
+ return &v
+}
+
+// MiracastChannelPOne returns a pointer to MiracastChannelVOne
+func MiracastChannelPOne() *MiracastChannel {
+ v := MiracastChannelVOne
+ return &v
+}
+
+// MiracastChannelPTwo returns a pointer to MiracastChannelVTwo
+func MiracastChannelPTwo() *MiracastChannel {
+ v := MiracastChannelVTwo
+ return &v
+}
+
+// MiracastChannelPThree returns a pointer to MiracastChannelVThree
+func MiracastChannelPThree() *MiracastChannel {
+ v := MiracastChannelVThree
+ return &v
+}
+
+// MiracastChannelPFour returns a pointer to MiracastChannelVFour
+func MiracastChannelPFour() *MiracastChannel {
+ v := MiracastChannelVFour
+ return &v
+}
+
+// MiracastChannelPFive returns a pointer to MiracastChannelVFive
+func MiracastChannelPFive() *MiracastChannel {
+ v := MiracastChannelVFive
+ return &v
+}
+
+// MiracastChannelPSix returns a pointer to MiracastChannelVSix
+func MiracastChannelPSix() *MiracastChannel {
+ v := MiracastChannelVSix
+ return &v
+}
+
+// MiracastChannelPSeven returns a pointer to MiracastChannelVSeven
+func MiracastChannelPSeven() *MiracastChannel {
+ v := MiracastChannelVSeven
+ return &v
+}
+
+// MiracastChannelPEight returns a pointer to MiracastChannelVEight
+func MiracastChannelPEight() *MiracastChannel {
+ v := MiracastChannelVEight
+ return &v
+}
+
+// MiracastChannelPNine returns a pointer to MiracastChannelVNine
+func MiracastChannelPNine() *MiracastChannel {
+ v := MiracastChannelVNine
+ return &v
+}
+
+// MiracastChannelPTen returns a pointer to MiracastChannelVTen
+func MiracastChannelPTen() *MiracastChannel {
+ v := MiracastChannelVTen
+ return &v
+}
+
+// MiracastChannelPEleven returns a pointer to MiracastChannelVEleven
+func MiracastChannelPEleven() *MiracastChannel {
+ v := MiracastChannelVEleven
+ return &v
+}
+
+// MiracastChannelPThirtySix returns a pointer to MiracastChannelVThirtySix
+func MiracastChannelPThirtySix() *MiracastChannel {
+ v := MiracastChannelVThirtySix
+ return &v
+}
+
+// MiracastChannelPForty returns a pointer to MiracastChannelVForty
+func MiracastChannelPForty() *MiracastChannel {
+ v := MiracastChannelVForty
+ return &v
+}
+
+// MiracastChannelPFortyFour returns a pointer to MiracastChannelVFortyFour
+func MiracastChannelPFortyFour() *MiracastChannel {
+ v := MiracastChannelVFortyFour
+ return &v
+}
+
+// MiracastChannelPFortyEight returns a pointer to MiracastChannelVFortyEight
+func MiracastChannelPFortyEight() *MiracastChannel {
+ v := MiracastChannelVFortyEight
+ return &v
+}
+
+// MiracastChannelPOneHundredFortyNine returns a pointer to MiracastChannelVOneHundredFortyNine
+func MiracastChannelPOneHundredFortyNine() *MiracastChannel {
+ v := MiracastChannelVOneHundredFortyNine
+ return &v
+}
+
+// MiracastChannelPOneHundredFiftyThree returns a pointer to MiracastChannelVOneHundredFiftyThree
+func MiracastChannelPOneHundredFiftyThree() *MiracastChannel {
+ v := MiracastChannelVOneHundredFiftyThree
+ return &v
+}
+
+// MiracastChannelPOneHundredFiftySeven returns a pointer to MiracastChannelVOneHundredFiftySeven
+func MiracastChannelPOneHundredFiftySeven() *MiracastChannel {
+ v := MiracastChannelVOneHundredFiftySeven
+ return &v
+}
+
+// MiracastChannelPOneHundredSixtyOne returns a pointer to MiracastChannelVOneHundredSixtyOne
+func MiracastChannelPOneHundredSixtyOne() *MiracastChannel {
+ v := MiracastChannelVOneHundredSixtyOne
+ return &v
+}
+
+// MiracastChannelPOneHundredSixtyFive returns a pointer to MiracastChannelVOneHundredSixtyFive
+func MiracastChannelPOneHundredSixtyFive() *MiracastChannel {
+ v := MiracastChannelVOneHundredSixtyFive
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAction.go
new file mode 100644
index 00000000..fe3fda41
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAction.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/matterbridge/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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppActionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppActionTypeEnum.go
new file mode 100644
index 00000000..03637b97
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppActionTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppActionType undocumented
+type MobileAppActionType int
+
+const (
+ // MobileAppActionTypeVUnknown undocumented
+ MobileAppActionTypeVUnknown MobileAppActionType = 0
+ // MobileAppActionTypeVInstallCommandSent undocumented
+ MobileAppActionTypeVInstallCommandSent MobileAppActionType = 1
+ // MobileAppActionTypeVInstalled undocumented
+ MobileAppActionTypeVInstalled MobileAppActionType = 3
+ // MobileAppActionTypeVUninstalled undocumented
+ MobileAppActionTypeVUninstalled MobileAppActionType = 4
+ // MobileAppActionTypeVUserRequestedInstall undocumented
+ MobileAppActionTypeVUserRequestedInstall MobileAppActionType = 5
+)
+
+// MobileAppActionTypePUnknown returns a pointer to MobileAppActionTypeVUnknown
+func MobileAppActionTypePUnknown() *MobileAppActionType {
+ v := MobileAppActionTypeVUnknown
+ return &v
+}
+
+// MobileAppActionTypePInstallCommandSent returns a pointer to MobileAppActionTypeVInstallCommandSent
+func MobileAppActionTypePInstallCommandSent() *MobileAppActionType {
+ v := MobileAppActionTypeVInstallCommandSent
+ return &v
+}
+
+// MobileAppActionTypePInstalled returns a pointer to MobileAppActionTypeVInstalled
+func MobileAppActionTypePInstalled() *MobileAppActionType {
+ v := MobileAppActionTypeVInstalled
+ return &v
+}
+
+// MobileAppActionTypePUninstalled returns a pointer to MobileAppActionTypeVUninstalled
+func MobileAppActionTypePUninstalled() *MobileAppActionType {
+ v := MobileAppActionTypeVUninstalled
+ return &v
+}
+
+// MobileAppActionTypePUserRequestedInstall returns a pointer to MobileAppActionTypeVUserRequestedInstall
+func MobileAppActionTypePUserRequestedInstall() *MobileAppActionType {
+ v := MobileAppActionTypeVUserRequestedInstall
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentModel.go
new file mode 100644
index 00000000..99823aca
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentRequest.go
new file mode 100644
index 00000000..64071c5a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..b6136a13
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentSettingsModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppAssignmentSettings undocumented
+type MobileAppAssignmentSettings struct {
+ // Object is the base model of MobileAppAssignmentSettings
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppCategoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppCategoryModel.go
new file mode 100644
index 00000000..df61056d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppCategoryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppCategoryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppCategoryRequest.go
new file mode 100644
index 00000000..e52d4d8a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppCategoryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileAction.go
new file mode 100644
index 00000000..a0e29592
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileAction.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MobileAppContentFileCommitRequestParameter undocumented
+type MobileAppContentFileCommitRequestParameter struct {
+ // FileEncryptionInfo undocumented
+ FileEncryptionInfo *FileEncryptionInfo `json:"fileEncryptionInfo,omitempty"`
+}
+
+// MobileAppContentFileRenewUploadRequestParameter undocumented
+type MobileAppContentFileRenewUploadRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/MobileAppContentFileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileModel.go
new file mode 100644
index 00000000..e1cb4fe4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileRequest.go
new file mode 100644
index 00000000..403b5edd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileUploadStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileUploadStateEnum.go
new file mode 100644
index 00000000..75828707
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileUploadStateEnum.go
@@ -0,0 +1,137 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppContentFileUploadState undocumented
+type MobileAppContentFileUploadState int
+
+const (
+ // MobileAppContentFileUploadStateVSuccess undocumented
+ MobileAppContentFileUploadStateVSuccess MobileAppContentFileUploadState = 0
+ // MobileAppContentFileUploadStateVTransientError undocumented
+ MobileAppContentFileUploadStateVTransientError MobileAppContentFileUploadState = 1
+ // MobileAppContentFileUploadStateVError undocumented
+ MobileAppContentFileUploadStateVError MobileAppContentFileUploadState = 2
+ // MobileAppContentFileUploadStateVUnknown undocumented
+ MobileAppContentFileUploadStateVUnknown MobileAppContentFileUploadState = 3
+ // MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess MobileAppContentFileUploadState = 100
+ // MobileAppContentFileUploadStateVAzureStorageURIRequestPending undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRequestPending MobileAppContentFileUploadState = 101
+ // MobileAppContentFileUploadStateVAzureStorageURIRequestFailed undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRequestFailed MobileAppContentFileUploadState = 102
+ // MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut MobileAppContentFileUploadState = 103
+ // MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess MobileAppContentFileUploadState = 200
+ // MobileAppContentFileUploadStateVAzureStorageURIRenewalPending undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRenewalPending MobileAppContentFileUploadState = 201
+ // MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed MobileAppContentFileUploadState = 202
+ // MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut MobileAppContentFileUploadState = 203
+ // MobileAppContentFileUploadStateVCommitFileSuccess undocumented
+ MobileAppContentFileUploadStateVCommitFileSuccess MobileAppContentFileUploadState = 300
+ // MobileAppContentFileUploadStateVCommitFilePending undocumented
+ MobileAppContentFileUploadStateVCommitFilePending MobileAppContentFileUploadState = 301
+ // MobileAppContentFileUploadStateVCommitFileFailed undocumented
+ MobileAppContentFileUploadStateVCommitFileFailed MobileAppContentFileUploadState = 302
+ // MobileAppContentFileUploadStateVCommitFileTimedOut undocumented
+ MobileAppContentFileUploadStateVCommitFileTimedOut MobileAppContentFileUploadState = 303
+)
+
+// MobileAppContentFileUploadStatePSuccess returns a pointer to MobileAppContentFileUploadStateVSuccess
+func MobileAppContentFileUploadStatePSuccess() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVSuccess
+ return &v
+}
+
+// MobileAppContentFileUploadStatePTransientError returns a pointer to MobileAppContentFileUploadStateVTransientError
+func MobileAppContentFileUploadStatePTransientError() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVTransientError
+ return &v
+}
+
+// MobileAppContentFileUploadStatePError returns a pointer to MobileAppContentFileUploadStateVError
+func MobileAppContentFileUploadStatePError() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVError
+ return &v
+}
+
+// MobileAppContentFileUploadStatePUnknown returns a pointer to MobileAppContentFileUploadStateVUnknown
+func MobileAppContentFileUploadStatePUnknown() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVUnknown
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRequestSuccess returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess
+func MobileAppContentFileUploadStatePAzureStorageURIRequestSuccess() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRequestPending returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestPending
+func MobileAppContentFileUploadStatePAzureStorageURIRequestPending() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRequestPending
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRequestFailed returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestFailed
+func MobileAppContentFileUploadStatePAzureStorageURIRequestFailed() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRequestFailed
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRequestTimedOut returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut
+func MobileAppContentFileUploadStatePAzureStorageURIRequestTimedOut() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRenewalSuccess returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess
+func MobileAppContentFileUploadStatePAzureStorageURIRenewalSuccess() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRenewalPending returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalPending
+func MobileAppContentFileUploadStatePAzureStorageURIRenewalPending() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRenewalPending
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRenewalFailed returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed
+func MobileAppContentFileUploadStatePAzureStorageURIRenewalFailed() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRenewalTimedOut returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut
+func MobileAppContentFileUploadStatePAzureStorageURIRenewalTimedOut() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut
+ return &v
+}
+
+// MobileAppContentFileUploadStatePCommitFileSuccess returns a pointer to MobileAppContentFileUploadStateVCommitFileSuccess
+func MobileAppContentFileUploadStatePCommitFileSuccess() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVCommitFileSuccess
+ return &v
+}
+
+// MobileAppContentFileUploadStatePCommitFilePending returns a pointer to MobileAppContentFileUploadStateVCommitFilePending
+func MobileAppContentFileUploadStatePCommitFilePending() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVCommitFilePending
+ return &v
+}
+
+// MobileAppContentFileUploadStatePCommitFileFailed returns a pointer to MobileAppContentFileUploadStateVCommitFileFailed
+func MobileAppContentFileUploadStatePCommitFileFailed() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVCommitFileFailed
+ return &v
+}
+
+// MobileAppContentFileUploadStatePCommitFileTimedOut returns a pointer to MobileAppContentFileUploadStateVCommitFileTimedOut
+func MobileAppContentFileUploadStatePCommitFileTimedOut() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVCommitFileTimedOut
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentModel.go
new file mode 100644
index 00000000..dfd26d0e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentRequest.go
new file mode 100644
index 00000000..972e7400
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileContainedApp collection
+func (r *MobileAppContentContainedAppsCollectionRequest) Get(ctx context.Context) ([]MobileContainedApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppContentFile collection
+func (r *MobileAppContentFilesCollectionRequest) Get(ctx context.Context) ([]MobileAppContentFile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppDependencyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppDependencyModel.go
new file mode 100644
index 00000000..62becc1d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppDependencyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppDependencyTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppDependencyTypeEnum.go
new file mode 100644
index 00000000..8edc8ea0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppDependencyTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppDependencyType undocumented
+type MobileAppDependencyType int
+
+const (
+ // MobileAppDependencyTypeVDetect undocumented
+ MobileAppDependencyTypeVDetect MobileAppDependencyType = 0
+ // MobileAppDependencyTypeVAutoInstall undocumented
+ MobileAppDependencyTypeVAutoInstall MobileAppDependencyType = 1
+)
+
+// MobileAppDependencyTypePDetect returns a pointer to MobileAppDependencyTypeVDetect
+func MobileAppDependencyTypePDetect() *MobileAppDependencyType {
+ v := MobileAppDependencyTypeVDetect
+ return &v
+}
+
+// MobileAppDependencyTypePAutoInstall returns a pointer to MobileAppDependencyTypeVAutoInstall
+func MobileAppDependencyTypePAutoInstall() *MobileAppDependencyType {
+ v := MobileAppDependencyTypeVAutoInstall
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIdentifierModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIdentifierModel.go
new file mode 100644
index 00000000..197486ca
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIdentifierModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppIdentifier undocumented
+type MobileAppIdentifier struct {
+ // Object is the base model of MobileAppIdentifier
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallStatusModel.go
new file mode 100644
index 00000000..295aa5b7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallStatusModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallStatusRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallStatusRequest.go
new file mode 100644
index 00000000..a9915de4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallStatusRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// App is navigation property
+func (b *MobileAppInstallStatusRequestBuilder) App() *MobileAppRequestBuilder {
+ bb := &MobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/app"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallSummaryModel.go
new file mode 100644
index 00000000..c3b7b319
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallSummaryModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallSummaryRequest.go
new file mode 100644
index 00000000..ea9b33f3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallTimeSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallTimeSettingsModel.go
new file mode 100644
index 00000000..9fd877ae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallTimeSettingsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateDetailModel.go
new file mode 100644
index 00000000..414167b1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateDetailModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateModel.go
new file mode 100644
index 00000000..6aa47356
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateRequest.go
new file mode 100644
index 00000000..b097833b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentEnum.go
new file mode 100644
index 00000000..27cc5e4b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppIntent undocumented
+type MobileAppIntent int
+
+const (
+ // MobileAppIntentVAvailable undocumented
+ MobileAppIntentVAvailable MobileAppIntent = 0
+ // MobileAppIntentVNotAvailable undocumented
+ MobileAppIntentVNotAvailable MobileAppIntent = 1
+ // MobileAppIntentVRequiredInstall undocumented
+ MobileAppIntentVRequiredInstall MobileAppIntent = 2
+ // MobileAppIntentVRequiredUninstall undocumented
+ MobileAppIntentVRequiredUninstall MobileAppIntent = 3
+ // MobileAppIntentVRequiredAndAvailableInstall undocumented
+ MobileAppIntentVRequiredAndAvailableInstall MobileAppIntent = 4
+ // MobileAppIntentVAvailableInstallWithoutEnrollment undocumented
+ MobileAppIntentVAvailableInstallWithoutEnrollment MobileAppIntent = 5
+ // MobileAppIntentVExclude undocumented
+ MobileAppIntentVExclude MobileAppIntent = 6
+)
+
+// MobileAppIntentPAvailable returns a pointer to MobileAppIntentVAvailable
+func MobileAppIntentPAvailable() *MobileAppIntent {
+ v := MobileAppIntentVAvailable
+ return &v
+}
+
+// MobileAppIntentPNotAvailable returns a pointer to MobileAppIntentVNotAvailable
+func MobileAppIntentPNotAvailable() *MobileAppIntent {
+ v := MobileAppIntentVNotAvailable
+ return &v
+}
+
+// MobileAppIntentPRequiredInstall returns a pointer to MobileAppIntentVRequiredInstall
+func MobileAppIntentPRequiredInstall() *MobileAppIntent {
+ v := MobileAppIntentVRequiredInstall
+ return &v
+}
+
+// MobileAppIntentPRequiredUninstall returns a pointer to MobileAppIntentVRequiredUninstall
+func MobileAppIntentPRequiredUninstall() *MobileAppIntent {
+ v := MobileAppIntentVRequiredUninstall
+ return &v
+}
+
+// MobileAppIntentPRequiredAndAvailableInstall returns a pointer to MobileAppIntentVRequiredAndAvailableInstall
+func MobileAppIntentPRequiredAndAvailableInstall() *MobileAppIntent {
+ v := MobileAppIntentVRequiredAndAvailableInstall
+ return &v
+}
+
+// MobileAppIntentPAvailableInstallWithoutEnrollment returns a pointer to MobileAppIntentVAvailableInstallWithoutEnrollment
+func MobileAppIntentPAvailableInstallWithoutEnrollment() *MobileAppIntent {
+ v := MobileAppIntentVAvailableInstallWithoutEnrollment
+ return &v
+}
+
+// MobileAppIntentPExclude returns a pointer to MobileAppIntentVExclude
+func MobileAppIntentPExclude() *MobileAppIntent {
+ v := MobileAppIntentVExclude
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppModel.go
new file mode 100644
index 00000000..88e267a9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppModel.go
@@ -0,0 +1,57 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppPolicySetItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppPolicySetItemModel.go
new file mode 100644
index 00000000..c1acb183
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppPolicySetItemModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentModel.go
new file mode 100644
index 00000000..e014fa9e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentRequest.go
new file mode 100644
index 00000000..ab3ec2eb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppPublishingStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppPublishingStateEnum.go
new file mode 100644
index 00000000..10dda2a5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppPublishingStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppPublishingState undocumented
+type MobileAppPublishingState int
+
+const (
+ // MobileAppPublishingStateVNotPublished undocumented
+ MobileAppPublishingStateVNotPublished MobileAppPublishingState = 0
+ // MobileAppPublishingStateVProcessing undocumented
+ MobileAppPublishingStateVProcessing MobileAppPublishingState = 1
+ // MobileAppPublishingStateVPublished undocumented
+ MobileAppPublishingStateVPublished MobileAppPublishingState = 2
+)
+
+// MobileAppPublishingStatePNotPublished returns a pointer to MobileAppPublishingStateVNotPublished
+func MobileAppPublishingStatePNotPublished() *MobileAppPublishingState {
+ v := MobileAppPublishingStateVNotPublished
+ return &v
+}
+
+// MobileAppPublishingStatePProcessing returns a pointer to MobileAppPublishingStateVProcessing
+func MobileAppPublishingStatePProcessing() *MobileAppPublishingState {
+ v := MobileAppPublishingStateVProcessing
+ return &v
+}
+
+// MobileAppPublishingStatePPublished returns a pointer to MobileAppPublishingStateVPublished
+func MobileAppPublishingStatePPublished() *MobileAppPublishingState {
+ v := MobileAppPublishingStateVPublished
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipModel.go
new file mode 100644
index 00000000..c1c5c4c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipRequest.go
new file mode 100644
index 00000000..9ca737bb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipStateModel.go
new file mode 100644
index 00000000..171cd83f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipStateModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRequest.go
new file mode 100644
index 00000000..da244238
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRequest.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/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppAssignment collection
+func (r *MobileAppAssignmentsCollectionRequest) Get(ctx context.Context) ([]MobileAppAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppCategory collection
+func (r *MobileAppCategoriesCollectionRequest) Get(ctx context.Context) ([]MobileAppCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppInstallStatus collection
+func (r *MobileAppDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]MobileAppInstallStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppRelationship collection
+func (r *MobileAppRelationshipsCollectionRequest) Get(ctx context.Context) ([]MobileAppRelationship, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserAppInstallStatus collection
+func (r *MobileAppUserStatusesCollectionRequest) Get(ctx context.Context) ([]UserAppInstallStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppSupportedDeviceTypeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppSupportedDeviceTypeModel.go
new file mode 100644
index 00000000..54e7e740
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppSupportedDeviceTypeModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppPolicyCreationHistoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppPolicyCreationHistoryModel.go
new file mode 100644
index 00000000..79aeb038
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppPolicyCreationHistoryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppStateHistoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppStateHistoryModel.go
new file mode 100644
index 00000000..673c1c0e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppStateHistoryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppTargetHistoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppTargetHistoryModel.go
new file mode 100644
index 00000000..2651534a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppTargetHistoryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppUpdateHistoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppUpdateHistoryModel.go
new file mode 100644
index 00000000..32f4933e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppUpdateHistoryModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppTroubleshootingAppUpdateHistory undocumented
+type MobileAppTroubleshootingAppUpdateHistory struct {
+ // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingAppUpdateHistory
+ MobileAppTroubleshootingHistoryItem
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingDeviceCheckinHistoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingDeviceCheckinHistoryModel.go
new file mode 100644
index 00000000..6aced494
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingDeviceCheckinHistoryModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppTroubleshootingDeviceCheckinHistory undocumented
+type MobileAppTroubleshootingDeviceCheckinHistory struct {
+ // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingDeviceCheckinHistory
+ MobileAppTroubleshootingHistoryItem
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingEventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingEventModel.go
new file mode 100644
index 00000000..954c97c8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingEventModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingEventRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingEventRequest.go
new file mode 100644
index 00000000..6ed09ca7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingEventRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppLogCollectionRequestObject collection
+func (r *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest) Get(ctx context.Context) ([]AppLogCollectionRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingHistoryItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingHistoryItemModel.go
new file mode 100644
index 00000000..54bb3b96
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingHistoryItemModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileContainedAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileContainedAppModel.go
new file mode 100644
index 00000000..b4576b33
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileContainedAppModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileContainedAppRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileContainedAppRequest.go
new file mode 100644
index 00000000..bb7b3c68
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileContainedAppRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileLobAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileLobAppModel.go
new file mode 100644
index 00000000..db3c45ea
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileLobAppModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileLobAppRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileLobAppRequest.go
new file mode 100644
index 00000000..378d21ac
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileLobAppRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppContent collection
+func (r *MobileLobAppContentVersionsCollectionRequest) Get(ctx context.Context) ([]MobileAppContent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/MobileThreatDefenseConnectorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatDefenseConnectorModel.go
new file mode 100644
index 00000000..e2adddb9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatDefenseConnectorModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/MobileThreatDefenseConnectorRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatDefenseConnectorRequest.go
new file mode 100644
index 00000000..3eb27afd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatDefenseConnectorRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatPartnerTenantStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatPartnerTenantStateEnum.go
new file mode 100644
index 00000000..3d2fcd27
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatPartnerTenantStateEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileThreatPartnerTenantState undocumented
+type MobileThreatPartnerTenantState int
+
+const (
+ // MobileThreatPartnerTenantStateVUnavailable undocumented
+ MobileThreatPartnerTenantStateVUnavailable MobileThreatPartnerTenantState = 0
+ // MobileThreatPartnerTenantStateVAvailable undocumented
+ MobileThreatPartnerTenantStateVAvailable MobileThreatPartnerTenantState = 1
+ // MobileThreatPartnerTenantStateVEnabled undocumented
+ MobileThreatPartnerTenantStateVEnabled MobileThreatPartnerTenantState = 2
+ // MobileThreatPartnerTenantStateVUnresponsive undocumented
+ MobileThreatPartnerTenantStateVUnresponsive MobileThreatPartnerTenantState = 3
+)
+
+// MobileThreatPartnerTenantStatePUnavailable returns a pointer to MobileThreatPartnerTenantStateVUnavailable
+func MobileThreatPartnerTenantStatePUnavailable() *MobileThreatPartnerTenantState {
+ v := MobileThreatPartnerTenantStateVUnavailable
+ return &v
+}
+
+// MobileThreatPartnerTenantStatePAvailable returns a pointer to MobileThreatPartnerTenantStateVAvailable
+func MobileThreatPartnerTenantStatePAvailable() *MobileThreatPartnerTenantState {
+ v := MobileThreatPartnerTenantStateVAvailable
+ return &v
+}
+
+// MobileThreatPartnerTenantStatePEnabled returns a pointer to MobileThreatPartnerTenantStateVEnabled
+func MobileThreatPartnerTenantStatePEnabled() *MobileThreatPartnerTenantState {
+ v := MobileThreatPartnerTenantStateVEnabled
+ return &v
+}
+
+// MobileThreatPartnerTenantStatePUnresponsive returns a pointer to MobileThreatPartnerTenantStateVUnresponsive
+func MobileThreatPartnerTenantStatePUnresponsive() *MobileThreatPartnerTenantState {
+ v := MobileThreatPartnerTenantStateVUnresponsive
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ModalityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ModalityEnum.go
new file mode 100644
index 00000000..0f900e25
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ModalityEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Modality undocumented
+type Modality int
+
+const (
+ // ModalityVUnknown undocumented
+ ModalityVUnknown Modality = 0
+ // ModalityVAudio undocumented
+ ModalityVAudio Modality = 1
+ // ModalityVVideo undocumented
+ ModalityVVideo Modality = 2
+ // ModalityVVideoBasedScreenSharing undocumented
+ ModalityVVideoBasedScreenSharing Modality = 3
+ // ModalityVData undocumented
+ ModalityVData Modality = 4
+ // ModalityVUnknownFutureValue undocumented
+ ModalityVUnknownFutureValue Modality = 5
+)
+
+// ModalityPUnknown returns a pointer to ModalityVUnknown
+func ModalityPUnknown() *Modality {
+ v := ModalityVUnknown
+ return &v
+}
+
+// ModalityPAudio returns a pointer to ModalityVAudio
+func ModalityPAudio() *Modality {
+ v := ModalityVAudio
+ return &v
+}
+
+// ModalityPVideo returns a pointer to ModalityVVideo
+func ModalityPVideo() *Modality {
+ v := ModalityVVideo
+ return &v
+}
+
+// ModalityPVideoBasedScreenSharing returns a pointer to ModalityVVideoBasedScreenSharing
+func ModalityPVideoBasedScreenSharing() *Modality {
+ v := ModalityVVideoBasedScreenSharing
+ return &v
+}
+
+// ModalityPData returns a pointer to ModalityVData
+func ModalityPData() *Modality {
+ v := ModalityVData
+ return &v
+}
+
+// ModalityPUnknownFutureValue returns a pointer to ModalityVUnknownFutureValue
+func ModalityPUnknownFutureValue() *Modality {
+ v := ModalityVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ModifiedPropertyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ModifiedPropertyModel.go
new file mode 100644
index 00000000..f99cedb8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ModifiedPropertyModel.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/matterbridge/msgraph.go/beta/MoveActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MoveActionModel.go
new file mode 100644
index 00000000..5ce40c03
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MoveActionModel.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/matterbridge/msgraph.go/beta/MultiValueLegacyExtendedPropertyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MultiValueLegacyExtendedPropertyModel.go
new file mode 100644
index 00000000..3e56ba05
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MultiValueLegacyExtendedPropertyModel.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/matterbridge/msgraph.go/beta/MultiValueLegacyExtendedPropertyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/MultiValueLegacyExtendedPropertyRequest.go
new file mode 100644
index 00000000..e5adca48
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MultiValueLegacyExtendedPropertyRequest.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/matterbridge/msgraph.go/beta/MutabilityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MutabilityEnum.go
new file mode 100644
index 00000000..0875fde0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MutabilityEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Mutability undocumented
+type Mutability int
+
+const (
+ // MutabilityVReadWrite undocumented
+ MutabilityVReadWrite Mutability = 0
+ // MutabilityVReadOnly undocumented
+ MutabilityVReadOnly Mutability = 1
+ // MutabilityVImmutable undocumented
+ MutabilityVImmutable Mutability = 2
+ // MutabilityVWriteOnly undocumented
+ MutabilityVWriteOnly Mutability = 3
+)
+
+// MutabilityPReadWrite returns a pointer to MutabilityVReadWrite
+func MutabilityPReadWrite() *Mutability {
+ v := MutabilityVReadWrite
+ return &v
+}
+
+// MutabilityPReadOnly returns a pointer to MutabilityVReadOnly
+func MutabilityPReadOnly() *Mutability {
+ v := MutabilityVReadOnly
+ return &v
+}
+
+// MutabilityPImmutable returns a pointer to MutabilityVImmutable
+func MutabilityPImmutable() *Mutability {
+ v := MutabilityVImmutable
+ return &v
+}
+
+// MutabilityPWriteOnly returns a pointer to MutabilityVWriteOnly
+func MutabilityPWriteOnly() *Mutability {
+ v := MutabilityVWriteOnly
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MuteParticipantOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MuteParticipantOperationModel.go
new file mode 100644
index 00000000..1448c723
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MuteParticipantOperationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MuteParticipantOperation undocumented
+type MuteParticipantOperation struct {
+ // CommsOperation is the base model of MuteParticipantOperation
+ CommsOperation
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MuteParticipantsOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MuteParticipantsOperationModel.go
new file mode 100644
index 00000000..8dc6677d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/MuteParticipantsOperationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/NamedLocationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NamedLocationModel.go
new file mode 100644
index 00000000..75c1f627
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NamedLocationModel.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/matterbridge/msgraph.go/beta/NamedLocationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/NamedLocationRequest.go
new file mode 100644
index 00000000..1028c430
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NamedLocationRequest.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/matterbridge/msgraph.go/beta/NdesConnectorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorModel.go
new file mode 100644
index 00000000..50ce1f3e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorModel.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/matterbridge/msgraph.go/beta/NdesConnectorRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorRequest.go
new file mode 100644
index 00000000..adee5745
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorRequest.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/matterbridge/msgraph.go/beta/NdesConnectorStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorStateEnum.go
new file mode 100644
index 00000000..dca41a2a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NdesConnectorState undocumented
+type NdesConnectorState int
+
+const (
+ // NdesConnectorStateVNone undocumented
+ NdesConnectorStateVNone NdesConnectorState = 0
+ // NdesConnectorStateVActive undocumented
+ NdesConnectorStateVActive NdesConnectorState = 1
+ // NdesConnectorStateVInactive undocumented
+ NdesConnectorStateVInactive NdesConnectorState = 2
+)
+
+// NdesConnectorStatePNone returns a pointer to NdesConnectorStateVNone
+func NdesConnectorStatePNone() *NdesConnectorState {
+ v := NdesConnectorStateVNone
+ return &v
+}
+
+// NdesConnectorStatePActive returns a pointer to NdesConnectorStateVActive
+func NdesConnectorStatePActive() *NdesConnectorState {
+ v := NdesConnectorStateVActive
+ return &v
+}
+
+// NdesConnectorStatePInactive returns a pointer to NdesConnectorStateVInactive
+func NdesConnectorStatePInactive() *NdesConnectorState {
+ v := NdesConnectorStateVInactive
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NetworkConnectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkConnectionModel.go
new file mode 100644
index 00000000..96f69349
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkConnectionModel.go
@@ -0,0 +1,47 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NetworkIPv4ConfigurationManagementConditionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkIPv4ConfigurationManagementConditionModel.go
new file mode 100644
index 00000000..2ff7d472
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkIPv4ConfigurationManagementConditionModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NetworkIPv6ConfigurationManagementConditionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkIPv6ConfigurationManagementConditionModel.go
new file mode 100644
index 00000000..19a63c9a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkIPv6ConfigurationManagementConditionModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NetworkInterfaceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkInterfaceModel.go
new file mode 100644
index 00000000..a583932a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkInterfaceModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NetworkLocationDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkLocationDetailModel.go
new file mode 100644
index 00000000..8348e6dd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkLocationDetailModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NetworkManagementConditionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkManagementConditionModel.go
new file mode 100644
index 00000000..f3012138
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkManagementConditionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/NetworkSingleSignOnTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkSingleSignOnTypeEnum.go
new file mode 100644
index 00000000..9de28fd7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkSingleSignOnTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NetworkSingleSignOnType undocumented
+type NetworkSingleSignOnType int
+
+const (
+ // NetworkSingleSignOnTypeVDisabled undocumented
+ NetworkSingleSignOnTypeVDisabled NetworkSingleSignOnType = 0
+ // NetworkSingleSignOnTypeVPrelogon undocumented
+ NetworkSingleSignOnTypeVPrelogon NetworkSingleSignOnType = 1
+ // NetworkSingleSignOnTypeVPostlogon undocumented
+ NetworkSingleSignOnTypeVPostlogon NetworkSingleSignOnType = 2
+)
+
+// NetworkSingleSignOnTypePDisabled returns a pointer to NetworkSingleSignOnTypeVDisabled
+func NetworkSingleSignOnTypePDisabled() *NetworkSingleSignOnType {
+ v := NetworkSingleSignOnTypeVDisabled
+ return &v
+}
+
+// NetworkSingleSignOnTypePPrelogon returns a pointer to NetworkSingleSignOnTypeVPrelogon
+func NetworkSingleSignOnTypePPrelogon() *NetworkSingleSignOnType {
+ v := NetworkSingleSignOnTypeVPrelogon
+ return &v
+}
+
+// NetworkSingleSignOnTypePPostlogon returns a pointer to NetworkSingleSignOnTypeVPostlogon
+func NetworkSingleSignOnTypePPostlogon() *NetworkSingleSignOnType {
+ v := NetworkSingleSignOnTypeVPostlogon
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NetworkTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkTypeEnum.go
new file mode 100644
index 00000000..0a37715b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NetworkTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NetworkType undocumented
+type NetworkType int
+
+const (
+ // NetworkTypeVIntranet undocumented
+ NetworkTypeVIntranet NetworkType = 0
+ // NetworkTypeVExtranet undocumented
+ NetworkTypeVExtranet NetworkType = 1
+ // NetworkTypeVNamedNetwork undocumented
+ NetworkTypeVNamedNetwork NetworkType = 2
+ // NetworkTypeVTrusted undocumented
+ NetworkTypeVTrusted NetworkType = 3
+ // NetworkTypeVUnknownFutureValue undocumented
+ NetworkTypeVUnknownFutureValue NetworkType = 4
+)
+
+// NetworkTypePIntranet returns a pointer to NetworkTypeVIntranet
+func NetworkTypePIntranet() *NetworkType {
+ v := NetworkTypeVIntranet
+ return &v
+}
+
+// NetworkTypePExtranet returns a pointer to NetworkTypeVExtranet
+func NetworkTypePExtranet() *NetworkType {
+ v := NetworkTypeVExtranet
+ return &v
+}
+
+// NetworkTypePNamedNetwork returns a pointer to NetworkTypeVNamedNetwork
+func NetworkTypePNamedNetwork() *NetworkType {
+ v := NetworkTypeVNamedNetwork
+ return &v
+}
+
+// NetworkTypePTrusted returns a pointer to NetworkTypeVTrusted
+func NetworkTypePTrusted() *NetworkType {
+ v := NetworkTypeVTrusted
+ return &v
+}
+
+// NetworkTypePUnknownFutureValue returns a pointer to NetworkTypeVUnknownFutureValue
+func NetworkTypePUnknownFutureValue() *NetworkType {
+ v := NetworkTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NonEapAuthenticationMethodForEapTtlsTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/NonEapAuthenticationMethodForEapTtlsTypeEnum.go
new file mode 100644
index 00000000..6cbdb43f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NonEapAuthenticationMethodForEapTtlsTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NonEapAuthenticationMethodForEapTtlsType undocumented
+type NonEapAuthenticationMethodForEapTtlsType int
+
+const (
+ // NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword undocumented
+ NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword NonEapAuthenticationMethodForEapTtlsType = 0
+ // NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol undocumented
+ NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol NonEapAuthenticationMethodForEapTtlsType = 1
+ // NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap undocumented
+ NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap NonEapAuthenticationMethodForEapTtlsType = 2
+ // NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo undocumented
+ NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo NonEapAuthenticationMethodForEapTtlsType = 3
+)
+
+// NonEapAuthenticationMethodForEapTtlsTypePUnencryptedPassword returns a pointer to NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword
+func NonEapAuthenticationMethodForEapTtlsTypePUnencryptedPassword() *NonEapAuthenticationMethodForEapTtlsType {
+ v := NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword
+ return &v
+}
+
+// NonEapAuthenticationMethodForEapTtlsTypePChallengeHandshakeAuthenticationProtocol returns a pointer to NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol
+func NonEapAuthenticationMethodForEapTtlsTypePChallengeHandshakeAuthenticationProtocol() *NonEapAuthenticationMethodForEapTtlsType {
+ v := NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol
+ return &v
+}
+
+// NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChap returns a pointer to NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap
+func NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChap() *NonEapAuthenticationMethodForEapTtlsType {
+ v := NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap
+ return &v
+}
+
+// NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChapVersionTwo returns a pointer to NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo
+func NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChapVersionTwo() *NonEapAuthenticationMethodForEapTtlsType {
+ v := NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NonEapAuthenticationMethodForPeapEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/NonEapAuthenticationMethodForPeapEnum.go
new file mode 100644
index 00000000..4ba6ab99
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NonEapAuthenticationMethodForPeapEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NonEapAuthenticationMethodForPeap undocumented
+type NonEapAuthenticationMethodForPeap int
+
+const (
+ // NonEapAuthenticationMethodForPeapVNone undocumented
+ NonEapAuthenticationMethodForPeapVNone NonEapAuthenticationMethodForPeap = 0
+ // NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo undocumented
+ NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo NonEapAuthenticationMethodForPeap = 1
+)
+
+// NonEapAuthenticationMethodForPeapPNone returns a pointer to NonEapAuthenticationMethodForPeapVNone
+func NonEapAuthenticationMethodForPeapPNone() *NonEapAuthenticationMethodForPeap {
+ v := NonEapAuthenticationMethodForPeapVNone
+ return &v
+}
+
+// NonEapAuthenticationMethodForPeapPMicrosoftChapVersionTwo returns a pointer to NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo
+func NonEapAuthenticationMethodForPeapPMicrosoftChapVersionTwo() *NonEapAuthenticationMethodForPeap {
+ v := NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NotebookAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/NotebookAction.go
new file mode 100644
index 00000000..9180ec2a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NotebookAction.go
@@ -0,0 +1,79 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/NotebookLinksModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NotebookLinksModel.go
new file mode 100644
index 00000000..8ede3482
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NotebookLinksModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/NotebookModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NotebookModel.go
new file mode 100644
index 00000000..22aabd6a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NotebookModel.go
@@ -0,0 +1,25 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NotebookRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/NotebookRequest.go
new file mode 100644
index 00000000..4234ade4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NotebookRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SectionGroup collection
+func (r *NotebookSectionGroupsCollectionRequest) Get(ctx context.Context) ([]SectionGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnenoteSection collection
+func (r *NotebookSectionsCollectionRequest) Get(ctx context.Context) ([]OnenoteSection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/NotificationMessageTemplateAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/NotificationMessageTemplateAction.go
new file mode 100644
index 00000000..639588cd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NotificationMessageTemplateAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// NotificationMessageTemplateSendTestMessageRequestParameter undocumented
+type NotificationMessageTemplateSendTestMessageRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/NotificationMessageTemplateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NotificationMessageTemplateModel.go
new file mode 100644
index 00000000..e2b4a374
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NotificationMessageTemplateModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/NotificationMessageTemplateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/NotificationMessageTemplateRequest.go
new file mode 100644
index 00000000..ae9a80ab
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NotificationMessageTemplateRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for LocalizedNotificationMessage collection
+func (r *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest) Get(ctx context.Context) ([]LocalizedNotificationMessage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/NotificationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NotificationModel.go
new file mode 100644
index 00000000..9166da7d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NotificationModel.go
@@ -0,0 +1,25 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NotificationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/NotificationRequest.go
new file mode 100644
index 00000000..cebf668f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NotificationRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NotificationTemplateBrandingOptionsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/NotificationTemplateBrandingOptionsEnum.go
new file mode 100644
index 00000000..1921d035
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NotificationTemplateBrandingOptionsEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NotificationTemplateBrandingOptions undocumented
+type NotificationTemplateBrandingOptions int
+
+const (
+ // NotificationTemplateBrandingOptionsVNone undocumented
+ NotificationTemplateBrandingOptionsVNone NotificationTemplateBrandingOptions = 0
+ // NotificationTemplateBrandingOptionsVIncludeCompanyLogo undocumented
+ NotificationTemplateBrandingOptionsVIncludeCompanyLogo NotificationTemplateBrandingOptions = 1
+ // NotificationTemplateBrandingOptionsVIncludeCompanyName undocumented
+ NotificationTemplateBrandingOptionsVIncludeCompanyName NotificationTemplateBrandingOptions = 2
+ // NotificationTemplateBrandingOptionsVIncludeContactInformation undocumented
+ NotificationTemplateBrandingOptionsVIncludeContactInformation NotificationTemplateBrandingOptions = 4
+)
+
+// NotificationTemplateBrandingOptionsPNone returns a pointer to NotificationTemplateBrandingOptionsVNone
+func NotificationTemplateBrandingOptionsPNone() *NotificationTemplateBrandingOptions {
+ v := NotificationTemplateBrandingOptionsVNone
+ return &v
+}
+
+// NotificationTemplateBrandingOptionsPIncludeCompanyLogo returns a pointer to NotificationTemplateBrandingOptionsVIncludeCompanyLogo
+func NotificationTemplateBrandingOptionsPIncludeCompanyLogo() *NotificationTemplateBrandingOptions {
+ v := NotificationTemplateBrandingOptionsVIncludeCompanyLogo
+ return &v
+}
+
+// NotificationTemplateBrandingOptionsPIncludeCompanyName returns a pointer to NotificationTemplateBrandingOptionsVIncludeCompanyName
+func NotificationTemplateBrandingOptionsPIncludeCompanyName() *NotificationTemplateBrandingOptions {
+ v := NotificationTemplateBrandingOptionsVIncludeCompanyName
+ return &v
+}
+
+// NotificationTemplateBrandingOptionsPIncludeContactInformation returns a pointer to NotificationTemplateBrandingOptionsVIncludeContactInformation
+func NotificationTemplateBrandingOptionsPIncludeContactInformation() *NotificationTemplateBrandingOptions {
+ v := NotificationTemplateBrandingOptionsVIncludeContactInformation
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NotifyUserActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NotifyUserActionModel.go
new file mode 100644
index 00000000..d64add7f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NotifyUserActionModel.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/matterbridge/msgraph.go/beta/NumberColumnModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NumberColumnModel.go
new file mode 100644
index 00000000..a7d4864b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NumberColumnModel.go
@@ -0,0 +1,17 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NumberRangeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NumberRangeModel.go
new file mode 100644
index 00000000..37d7c412
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/NumberRangeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/OAuth2PermissionGrantModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OAuth2PermissionGrantModel.go
new file mode 100644
index 00000000..aab9aaaf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OAuth2PermissionGrantModel.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/matterbridge/msgraph.go/beta/OAuth2PermissionGrantRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OAuth2PermissionGrantRequest.go
new file mode 100644
index 00000000..26aeaae2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OAuth2PermissionGrantRequest.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/matterbridge/msgraph.go/beta/OMASettingBase64Model.go b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingBase64Model.go
new file mode 100644
index 00000000..196562a7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingBase64Model.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingBooleanModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingBooleanModel.go
new file mode 100644
index 00000000..a54d6b10
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingBooleanModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OMASettingBoolean undocumented
+type OMASettingBoolean struct {
+ // OMASetting is the base model of OMASettingBoolean
+ OMASetting
+ // Value Value.
+ Value *bool `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingDateTimeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingDateTimeModel.go
new file mode 100644
index 00000000..69d5e171
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingDateTimeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OMASettingDateTime undocumented
+type OMASettingDateTime struct {
+ // OMASetting is the base model of OMASettingDateTime
+ OMASetting
+ // Value Value.
+ Value *time.Time `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingFloatingPointModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingFloatingPointModel.go
new file mode 100644
index 00000000..a90a8abe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingFloatingPointModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OMASettingFloatingPoint undocumented
+type OMASettingFloatingPoint struct {
+ // OMASetting is the base model of OMASettingFloatingPoint
+ OMASetting
+ // Value Value.
+ Value *float64 `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingIntegerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingIntegerModel.go
new file mode 100644
index 00000000..5fe6ef58
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingIntegerModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingModel.go
new file mode 100644
index 00000000..59ae0d25
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingStringModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingStringModel.go
new file mode 100644
index 00000000..03f929bc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingStringModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OMASettingString undocumented
+type OMASettingString struct {
+ // OMASetting is the base model of OMASettingString
+ OMASetting
+ // Value Value.
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingStringXMLModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingStringXMLModel.go
new file mode 100644
index 00000000..50b44465
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingStringXMLModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ObjectDefinitionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ObjectDefinitionModel.go
new file mode 100644
index 00000000..5a6bc8ec
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ObjectDefinitionModel.go
@@ -0,0 +1,17 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ObjectFlowTypesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ObjectFlowTypesEnum.go
new file mode 100644
index 00000000..ce1f0ed2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ObjectFlowTypesEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ObjectFlowTypes undocumented
+type ObjectFlowTypes int
+
+const (
+ // ObjectFlowTypesVNone undocumented
+ ObjectFlowTypesVNone ObjectFlowTypes = 0
+ // ObjectFlowTypesVAdd undocumented
+ ObjectFlowTypesVAdd ObjectFlowTypes = 1
+ // ObjectFlowTypesVUpdate undocumented
+ ObjectFlowTypesVUpdate ObjectFlowTypes = 2
+ // ObjectFlowTypesVDelete undocumented
+ ObjectFlowTypesVDelete ObjectFlowTypes = 4
+)
+
+// ObjectFlowTypesPNone returns a pointer to ObjectFlowTypesVNone
+func ObjectFlowTypesPNone() *ObjectFlowTypes {
+ v := ObjectFlowTypesVNone
+ return &v
+}
+
+// ObjectFlowTypesPAdd returns a pointer to ObjectFlowTypesVAdd
+func ObjectFlowTypesPAdd() *ObjectFlowTypes {
+ v := ObjectFlowTypesVAdd
+ return &v
+}
+
+// ObjectFlowTypesPUpdate returns a pointer to ObjectFlowTypesVUpdate
+func ObjectFlowTypesPUpdate() *ObjectFlowTypes {
+ v := ObjectFlowTypesVUpdate
+ return &v
+}
+
+// ObjectFlowTypesPDelete returns a pointer to ObjectFlowTypesVDelete
+func ObjectFlowTypesPDelete() *ObjectFlowTypes {
+ v := ObjectFlowTypesVDelete
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ObjectIdentityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ObjectIdentityModel.go
new file mode 100644
index 00000000..ef82a2e0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ObjectIdentityModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ObjectMappingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ObjectMappingModel.go
new file mode 100644
index 00000000..a24b831a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ObjectMappingModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/Office365ActivationCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationCountsModel.go
new file mode 100644
index 00000000..a7ec259a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationCountsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365ActivationCounts undocumented
+type Office365ActivationCounts struct {
+ // Entity is the base model of Office365ActivationCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationsUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationsUserCountsModel.go
new file mode 100644
index 00000000..60a1d0a4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationsUserCountsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365ActivationsUserCounts undocumented
+type Office365ActivationsUserCounts struct {
+ // Entity is the base model of Office365ActivationsUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationsUserDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationsUserDetailModel.go
new file mode 100644
index 00000000..ebf4b23c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationsUserDetailModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365ActivationsUserDetail undocumented
+type Office365ActivationsUserDetail struct {
+ // Entity is the base model of Office365ActivationsUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // UserActivationCounts undocumented
+ UserActivationCounts []UserActivationCounts `json:"userActivationCounts,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActiveUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActiveUserCountsModel.go
new file mode 100644
index 00000000..8d9a2a92
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActiveUserCountsModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365ActiveUserCounts undocumented
+type Office365ActiveUserCounts struct {
+ // Entity is the base model of Office365ActiveUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActiveUserDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActiveUserDetailModel.go
new file mode 100644
index 00000000..c8ed2238
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActiveUserDetailModel.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365ActiveUserDetail undocumented
+type Office365ActiveUserDetail struct {
+ // Entity is the base model of Office365ActiveUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `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 *time.Time `json:"exchangeLastActivityDate,omitempty"`
+ // OneDriveLastActivityDate undocumented
+ OneDriveLastActivityDate *time.Time `json:"oneDriveLastActivityDate,omitempty"`
+ // SharePointLastActivityDate undocumented
+ SharePointLastActivityDate *time.Time `json:"sharePointLastActivityDate,omitempty"`
+ // SkypeForBusinessLastActivityDate undocumented
+ SkypeForBusinessLastActivityDate *time.Time `json:"skypeForBusinessLastActivityDate,omitempty"`
+ // YammerLastActivityDate undocumented
+ YammerLastActivityDate *time.Time `json:"yammerLastActivityDate,omitempty"`
+ // TeamsLastActivityDate undocumented
+ TeamsLastActivityDate *time.Time `json:"teamsLastActivityDate,omitempty"`
+ // ExchangeLicenseAssignDate undocumented
+ ExchangeLicenseAssignDate *time.Time `json:"exchangeLicenseAssignDate,omitempty"`
+ // OneDriveLicenseAssignDate undocumented
+ OneDriveLicenseAssignDate *time.Time `json:"oneDriveLicenseAssignDate,omitempty"`
+ // SharePointLicenseAssignDate undocumented
+ SharePointLicenseAssignDate *time.Time `json:"sharePointLicenseAssignDate,omitempty"`
+ // SkypeForBusinessLicenseAssignDate undocumented
+ SkypeForBusinessLicenseAssignDate *time.Time `json:"skypeForBusinessLicenseAssignDate,omitempty"`
+ // YammerLicenseAssignDate undocumented
+ YammerLicenseAssignDate *time.Time `json:"yammerLicenseAssignDate,omitempty"`
+ // TeamsLicenseAssignDate undocumented
+ TeamsLicenseAssignDate *time.Time `json:"teamsLicenseAssignDate,omitempty"`
+ // AssignedProducts undocumented
+ AssignedProducts []string `json:"assignedProducts,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityCountsModel.go
new file mode 100644
index 00000000..ffd5dd0c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityCountsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365GroupsActivityCounts undocumented
+type Office365GroupsActivityCounts struct {
+ // Entity is the base model of Office365GroupsActivityCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityDetailModel.go
new file mode 100644
index 00000000..667682c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityDetailModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365GroupsActivityDetail undocumented
+type Office365GroupsActivityDetail struct {
+ // Entity is the base model of Office365GroupsActivityDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityFileCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityFileCountsModel.go
new file mode 100644
index 00000000..7993931f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityFileCountsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365GroupsActivityFileCounts undocumented
+type Office365GroupsActivityFileCounts struct {
+ // Entity is the base model of Office365GroupsActivityFileCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityGroupCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityGroupCountsModel.go
new file mode 100644
index 00000000..3178f6f3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityGroupCountsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365GroupsActivityGroupCounts undocumented
+type Office365GroupsActivityGroupCounts struct {
+ // Entity is the base model of Office365GroupsActivityGroupCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityStorageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityStorageModel.go
new file mode 100644
index 00000000..0d7c8c02
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityStorageModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365GroupsActivityStorage undocumented
+type Office365GroupsActivityStorage struct {
+ // Entity is the base model of Office365GroupsActivityStorage
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // MailboxStorageUsedInBytes undocumented
+ MailboxStorageUsedInBytes *int `json:"mailboxStorageUsedInBytes,omitempty"`
+ // SiteStorageUsedInBytes undocumented
+ SiteStorageUsedInBytes *int `json:"siteStorageUsedInBytes,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Office365ServicesUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Office365ServicesUserCountsModel.go
new file mode 100644
index 00000000..61094ea7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Office365ServicesUserCountsModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365ServicesUserCounts undocumented
+type Office365ServicesUserCounts struct {
+ // Entity is the base model of Office365ServicesUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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/matterbridge/msgraph.go/beta/OfficeClientCheckinStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientCheckinStatusModel.go
new file mode 100644
index 00000000..a1153529
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientCheckinStatusModel.go
@@ -0,0 +1,29 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAction.go
new file mode 100644
index 00000000..e1707c3c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAction.go
@@ -0,0 +1,134 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]OfficeClientConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAssignmentModel.go
new file mode 100644
index 00000000..61627d56
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeClientConfigurationAssignment undocumented
+type OfficeClientConfigurationAssignment struct {
+ // Entity is the base model of OfficeClientConfigurationAssignment
+ Entity
+ // Target undocumented
+ Target *OfficeConfigurationAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAssignmentRequest.go
new file mode 100644
index 00000000..543b10ba
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationModel.go
new file mode 100644
index 00000000..60bfc4f1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationRequest.go
new file mode 100644
index 00000000..c4b6f6d5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationRequest.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/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OfficeClientConfigurationAssignment collection
+func (r *OfficeClientConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]OfficeClientConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationAssignmentTargetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationAssignmentTargetModel.go
new file mode 100644
index 00000000..298d3705
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationAssignmentTargetModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeConfigurationAssignmentTarget undocumented
+type OfficeConfigurationAssignmentTarget struct {
+ // Object is the base model of OfficeConfigurationAssignmentTarget
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationGroupAssignmentTargetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationGroupAssignmentTargetModel.go
new file mode 100644
index 00000000..30c8b6e9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationGroupAssignmentTargetModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeConfigurationGroupAssignmentTarget undocumented
+type OfficeConfigurationGroupAssignmentTarget struct {
+ // OfficeConfigurationAssignmentTarget is the base model of OfficeConfigurationGroupAssignmentTarget
+ OfficeConfigurationAssignmentTarget
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationModel.go
new file mode 100644
index 00000000..0ad9e2f1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationRequest.go
new file mode 100644
index 00000000..cc6b5d4a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OfficeClientConfiguration collection
+func (r *OfficeConfigurationClientConfigurationsCollectionRequest) Get(ctx context.Context) ([]OfficeClientConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeGraphInsightsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeGraphInsightsModel.go
new file mode 100644
index 00000000..f6aa9491
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeGraphInsightsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeGraphInsightsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeGraphInsightsRequest.go
new file mode 100644
index 00000000..4363ad4a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeGraphInsightsRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SharedInsight collection
+func (r *OfficeGraphInsightsSharedCollectionRequest) Get(ctx context.Context) ([]SharedInsight, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Trending collection
+func (r *OfficeGraphInsightsTrendingCollectionRequest) Get(ctx context.Context) ([]Trending, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UsedInsight collection
+func (r *OfficeGraphInsightsUsedCollectionRequest) Get(ctx context.Context) ([]UsedInsight, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/OfficeProductIDEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeProductIDEnum.go
new file mode 100644
index 00000000..99110963
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeProductIDEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeProductID undocumented
+type OfficeProductID int
+
+const (
+ // OfficeProductIDVO365ProPlusRetail undocumented
+ OfficeProductIDVO365ProPlusRetail OfficeProductID = 0
+ // OfficeProductIDVO365BusinessRetail undocumented
+ OfficeProductIDVO365BusinessRetail OfficeProductID = 1
+ // OfficeProductIDVVisioProRetail undocumented
+ OfficeProductIDVVisioProRetail OfficeProductID = 2
+ // OfficeProductIDVProjectProRetail undocumented
+ OfficeProductIDVProjectProRetail OfficeProductID = 3
+)
+
+// OfficeProductIDPO365ProPlusRetail returns a pointer to OfficeProductIDVO365ProPlusRetail
+func OfficeProductIDPO365ProPlusRetail() *OfficeProductID {
+ v := OfficeProductIDVO365ProPlusRetail
+ return &v
+}
+
+// OfficeProductIDPO365BusinessRetail returns a pointer to OfficeProductIDVO365BusinessRetail
+func OfficeProductIDPO365BusinessRetail() *OfficeProductID {
+ v := OfficeProductIDVO365BusinessRetail
+ return &v
+}
+
+// OfficeProductIDPVisioProRetail returns a pointer to OfficeProductIDVVisioProRetail
+func OfficeProductIDPVisioProRetail() *OfficeProductID {
+ v := OfficeProductIDVVisioProRetail
+ return &v
+}
+
+// OfficeProductIDPProjectProRetail returns a pointer to OfficeProductIDVProjectProRetail
+func OfficeProductIDPProjectProRetail() *OfficeProductID {
+ v := OfficeProductIDVProjectProRetail
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeSuiteAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeSuiteAppModel.go
new file mode 100644
index 00000000..2c1899ba
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeSuiteAppModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeSuiteInstallProgressDisplayLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeSuiteInstallProgressDisplayLevelEnum.go
new file mode 100644
index 00000000..141caf32
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeSuiteInstallProgressDisplayLevelEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeSuiteInstallProgressDisplayLevel undocumented
+type OfficeSuiteInstallProgressDisplayLevel int
+
+const (
+ // OfficeSuiteInstallProgressDisplayLevelVNone undocumented
+ OfficeSuiteInstallProgressDisplayLevelVNone OfficeSuiteInstallProgressDisplayLevel = 0
+ // OfficeSuiteInstallProgressDisplayLevelVFull undocumented
+ OfficeSuiteInstallProgressDisplayLevelVFull OfficeSuiteInstallProgressDisplayLevel = 1
+)
+
+// OfficeSuiteInstallProgressDisplayLevelPNone returns a pointer to OfficeSuiteInstallProgressDisplayLevelVNone
+func OfficeSuiteInstallProgressDisplayLevelPNone() *OfficeSuiteInstallProgressDisplayLevel {
+ v := OfficeSuiteInstallProgressDisplayLevelVNone
+ return &v
+}
+
+// OfficeSuiteInstallProgressDisplayLevelPFull returns a pointer to OfficeSuiteInstallProgressDisplayLevelVFull
+func OfficeSuiteInstallProgressDisplayLevelPFull() *OfficeSuiteInstallProgressDisplayLevel {
+ v := OfficeSuiteInstallProgressDisplayLevelVFull
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeUpdateChannelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeUpdateChannelEnum.go
new file mode 100644
index 00000000..997e27e0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeUpdateChannelEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeUpdateChannel undocumented
+type OfficeUpdateChannel int
+
+const (
+ // OfficeUpdateChannelVNone undocumented
+ OfficeUpdateChannelVNone OfficeUpdateChannel = 0
+ // OfficeUpdateChannelVCurrent undocumented
+ OfficeUpdateChannelVCurrent OfficeUpdateChannel = 1
+ // OfficeUpdateChannelVDeferred undocumented
+ OfficeUpdateChannelVDeferred OfficeUpdateChannel = 2
+ // OfficeUpdateChannelVFirstReleaseCurrent undocumented
+ OfficeUpdateChannelVFirstReleaseCurrent OfficeUpdateChannel = 3
+ // OfficeUpdateChannelVFirstReleaseDeferred undocumented
+ OfficeUpdateChannelVFirstReleaseDeferred OfficeUpdateChannel = 4
+)
+
+// OfficeUpdateChannelPNone returns a pointer to OfficeUpdateChannelVNone
+func OfficeUpdateChannelPNone() *OfficeUpdateChannel {
+ v := OfficeUpdateChannelVNone
+ return &v
+}
+
+// OfficeUpdateChannelPCurrent returns a pointer to OfficeUpdateChannelVCurrent
+func OfficeUpdateChannelPCurrent() *OfficeUpdateChannel {
+ v := OfficeUpdateChannelVCurrent
+ return &v
+}
+
+// OfficeUpdateChannelPDeferred returns a pointer to OfficeUpdateChannelVDeferred
+func OfficeUpdateChannelPDeferred() *OfficeUpdateChannel {
+ v := OfficeUpdateChannelVDeferred
+ return &v
+}
+
+// OfficeUpdateChannelPFirstReleaseCurrent returns a pointer to OfficeUpdateChannelVFirstReleaseCurrent
+func OfficeUpdateChannelPFirstReleaseCurrent() *OfficeUpdateChannel {
+ v := OfficeUpdateChannelVFirstReleaseCurrent
+ return &v
+}
+
+// OfficeUpdateChannelPFirstReleaseDeferred returns a pointer to OfficeUpdateChannelVFirstReleaseDeferred
+func OfficeUpdateChannelPFirstReleaseDeferred() *OfficeUpdateChannel {
+ v := OfficeUpdateChannelVFirstReleaseDeferred
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeUserCheckinSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeUserCheckinSummaryModel.go
new file mode 100644
index 00000000..3d8b71e7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OfficeUserCheckinSummaryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/OnPremisesAgentGroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentGroupModel.go
new file mode 100644
index 00000000..d9b606f4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentGroupModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentGroupRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentGroupRequest.go
new file mode 100644
index 00000000..21455785
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentGroupRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnPremisesAgent collection
+func (r *OnPremisesAgentGroupAgentsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PublishedResource collection
+func (r *OnPremisesAgentGroupPublishedResourcesCollectionRequest) Get(ctx context.Context) ([]PublishedResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentModel.go
new file mode 100644
index 00000000..6831ec96
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentRequest.go
new file mode 100644
index 00000000..f2a67209
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnPremisesAgentGroup collection
+func (r *OnPremisesAgentAgentGroupsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgentGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesConditionalAccessSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesConditionalAccessSettingsModel.go
new file mode 100644
index 00000000..39879372
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesConditionalAccessSettingsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesConditionalAccessSettingsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesConditionalAccessSettingsRequest.go
new file mode 100644
index 00000000..b53c337a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesConditionalAccessSettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesExtensionAttributesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesExtensionAttributesModel.go
new file mode 100644
index 00000000..110b8f4c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesExtensionAttributesModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesProvisioningErrorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesProvisioningErrorModel.go
new file mode 100644
index 00000000..2cc609ea
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesProvisioningErrorModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingProfileModel.go
new file mode 100644
index 00000000..9bcde847
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingProfileModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/OnPremisesPublishingProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingProfileRequest.go
new file mode 100644
index 00000000..bbcb2b72
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingProfileRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnPremisesAgentGroup collection
+func (r *OnPremisesPublishingProfileAgentGroupsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgentGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnPremisesAgent collection
+func (r *OnPremisesPublishingProfileAgentsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PublishedResource collection
+func (r *OnPremisesPublishingProfilePublishedResourcesCollectionRequest) Get(ctx context.Context) ([]PublishedResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/OnPremisesPublishingTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingTypeEnum.go
new file mode 100644
index 00000000..c7705826
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnPremisesPublishingType undocumented
+type OnPremisesPublishingType int
+
+const (
+ // OnPremisesPublishingTypeVAppProxy undocumented
+ OnPremisesPublishingTypeVAppProxy OnPremisesPublishingType = 0
+ // OnPremisesPublishingTypeVExchangeOnline undocumented
+ OnPremisesPublishingTypeVExchangeOnline OnPremisesPublishingType = 1
+ // OnPremisesPublishingTypeVAuthentication undocumented
+ OnPremisesPublishingTypeVAuthentication OnPremisesPublishingType = 2
+ // OnPremisesPublishingTypeVProvisioning undocumented
+ OnPremisesPublishingTypeVProvisioning OnPremisesPublishingType = 3
+ // OnPremisesPublishingTypeVIntunePfx undocumented
+ OnPremisesPublishingTypeVIntunePfx OnPremisesPublishingType = 4
+ // OnPremisesPublishingTypeVOflineDomainJoin undocumented
+ OnPremisesPublishingTypeVOflineDomainJoin OnPremisesPublishingType = 5
+ // OnPremisesPublishingTypeVUnknownFutureValue undocumented
+ OnPremisesPublishingTypeVUnknownFutureValue OnPremisesPublishingType = 6
+)
+
+// OnPremisesPublishingTypePAppProxy returns a pointer to OnPremisesPublishingTypeVAppProxy
+func OnPremisesPublishingTypePAppProxy() *OnPremisesPublishingType {
+ v := OnPremisesPublishingTypeVAppProxy
+ return &v
+}
+
+// OnPremisesPublishingTypePExchangeOnline returns a pointer to OnPremisesPublishingTypeVExchangeOnline
+func OnPremisesPublishingTypePExchangeOnline() *OnPremisesPublishingType {
+ v := OnPremisesPublishingTypeVExchangeOnline
+ return &v
+}
+
+// OnPremisesPublishingTypePAuthentication returns a pointer to OnPremisesPublishingTypeVAuthentication
+func OnPremisesPublishingTypePAuthentication() *OnPremisesPublishingType {
+ v := OnPremisesPublishingTypeVAuthentication
+ return &v
+}
+
+// OnPremisesPublishingTypePProvisioning returns a pointer to OnPremisesPublishingTypeVProvisioning
+func OnPremisesPublishingTypePProvisioning() *OnPremisesPublishingType {
+ v := OnPremisesPublishingTypeVProvisioning
+ return &v
+}
+
+// OnPremisesPublishingTypePIntunePfx returns a pointer to OnPremisesPublishingTypeVIntunePfx
+func OnPremisesPublishingTypePIntunePfx() *OnPremisesPublishingType {
+ v := OnPremisesPublishingTypeVIntunePfx
+ return &v
+}
+
+// OnPremisesPublishingTypePOflineDomainJoin returns a pointer to OnPremisesPublishingTypeVOflineDomainJoin
+func OnPremisesPublishingTypePOflineDomainJoin() *OnPremisesPublishingType {
+ v := OnPremisesPublishingTypeVOflineDomainJoin
+ return &v
+}
+
+// OnPremisesPublishingTypePUnknownFutureValue returns a pointer to OnPremisesPublishingTypeVUnknownFutureValue
+func OnPremisesPublishingTypePUnknownFutureValue() *OnPremisesPublishingType {
+ v := OnPremisesPublishingTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveActivityUserDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveActivityUserDetailModel.go
new file mode 100644
index 00000000..2708a3c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveActivityUserDetailModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OneDriveActivityUserDetail undocumented
+type OneDriveActivityUserDetail struct {
+ // Entity is the base model of OneDriveActivityUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *time.Time `json:"deletedDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageAccountCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageAccountCountsModel.go
new file mode 100644
index 00000000..2effd899
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageAccountCountsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OneDriveUsageAccountCounts undocumented
+type OneDriveUsageAccountCounts struct {
+ // Entity is the base model of OneDriveUsageAccountCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageAccountDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageAccountDetailModel.go
new file mode 100644
index 00000000..9df759c4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageAccountDetailModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OneDriveUsageAccountDetail undocumented
+type OneDriveUsageAccountDetail struct {
+ // Entity is the base model of OneDriveUsageAccountDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageFileCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageFileCountsModel.go
new file mode 100644
index 00000000..267ff2c6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageFileCountsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OneDriveUsageFileCounts undocumented
+type OneDriveUsageFileCounts struct {
+ // Entity is the base model of OneDriveUsageFileCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntityBaseModelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntityBaseModelModel.go
new file mode 100644
index 00000000..14ec4e9e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntityBaseModelModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenoteEntityBaseModel undocumented
+type OnenoteEntityBaseModel struct {
+ // Entity is the base model of OnenoteEntityBaseModel
+ Entity
+ // Self undocumented
+ Self *string `json:"self,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntityHierarchyModelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntityHierarchyModelModel.go
new file mode 100644
index 00000000..a7757077
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntityHierarchyModelModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntitySchemaObjectModelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntitySchemaObjectModelModel.go
new file mode 100644
index 00000000..709f88e3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntitySchemaObjectModelModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OnenoteEntitySchemaObjectModel undocumented
+type OnenoteEntitySchemaObjectModel struct {
+ // OnenoteEntityBaseModel is the base model of OnenoteEntitySchemaObjectModel
+ OnenoteEntityBaseModel
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteModel.go
new file mode 100644
index 00000000..8a044979
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationErrorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationErrorModel.go
new file mode 100644
index 00000000..cf90c382
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationErrorModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationModel.go
new file mode 100644
index 00000000..c303c06d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationRequest.go
new file mode 100644
index 00000000..3d1ef286
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageAction.go
new file mode 100644
index 00000000..ff8a78a9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageAction.go
@@ -0,0 +1,76 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageModel.go
new file mode 100644
index 00000000..1e169e6b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePagePreviewLinksModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePagePreviewLinksModel.go
new file mode 100644
index 00000000..f5ad2e30
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePagePreviewLinksModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenotePagePreviewLinks undocumented
+type OnenotePagePreviewLinks struct {
+ // Object is the base model of OnenotePagePreviewLinks
+ Object
+ // PreviewImageURL undocumented
+ PreviewImageURL *ExternalLink `json:"previewImageUrl,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePagePreviewModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePagePreviewModel.go
new file mode 100644
index 00000000..8012f495
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePagePreviewModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageRequest.go
new file mode 100644
index 00000000..6157d771
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchActionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchActionTypeEnum.go
new file mode 100644
index 00000000..1e5b9253
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchActionTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenotePatchActionType undocumented
+type OnenotePatchActionType int
+
+const (
+ // OnenotePatchActionTypeVReplace undocumented
+ OnenotePatchActionTypeVReplace OnenotePatchActionType = 0
+ // OnenotePatchActionTypeVAppend undocumented
+ OnenotePatchActionTypeVAppend OnenotePatchActionType = 1
+ // OnenotePatchActionTypeVDelete undocumented
+ OnenotePatchActionTypeVDelete OnenotePatchActionType = 2
+ // OnenotePatchActionTypeVInsert undocumented
+ OnenotePatchActionTypeVInsert OnenotePatchActionType = 3
+ // OnenotePatchActionTypeVPrepend undocumented
+ OnenotePatchActionTypeVPrepend OnenotePatchActionType = 4
+)
+
+// OnenotePatchActionTypePReplace returns a pointer to OnenotePatchActionTypeVReplace
+func OnenotePatchActionTypePReplace() *OnenotePatchActionType {
+ v := OnenotePatchActionTypeVReplace
+ return &v
+}
+
+// OnenotePatchActionTypePAppend returns a pointer to OnenotePatchActionTypeVAppend
+func OnenotePatchActionTypePAppend() *OnenotePatchActionType {
+ v := OnenotePatchActionTypeVAppend
+ return &v
+}
+
+// OnenotePatchActionTypePDelete returns a pointer to OnenotePatchActionTypeVDelete
+func OnenotePatchActionTypePDelete() *OnenotePatchActionType {
+ v := OnenotePatchActionTypeVDelete
+ return &v
+}
+
+// OnenotePatchActionTypePInsert returns a pointer to OnenotePatchActionTypeVInsert
+func OnenotePatchActionTypePInsert() *OnenotePatchActionType {
+ v := OnenotePatchActionTypeVInsert
+ return &v
+}
+
+// OnenotePatchActionTypePPrepend returns a pointer to OnenotePatchActionTypeVPrepend
+func OnenotePatchActionTypePPrepend() *OnenotePatchActionType {
+ v := OnenotePatchActionTypeVPrepend
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchContentCommandModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchContentCommandModel.go
new file mode 100644
index 00000000..1adddd1a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchContentCommandModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchInsertPositionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchInsertPositionEnum.go
new file mode 100644
index 00000000..de5c3c08
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchInsertPositionEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenotePatchInsertPosition undocumented
+type OnenotePatchInsertPosition int
+
+const (
+ // OnenotePatchInsertPositionVAfter undocumented
+ OnenotePatchInsertPositionVAfter OnenotePatchInsertPosition = 0
+ // OnenotePatchInsertPositionVBefore undocumented
+ OnenotePatchInsertPositionVBefore OnenotePatchInsertPosition = 1
+)
+
+// OnenotePatchInsertPositionPAfter returns a pointer to OnenotePatchInsertPositionVAfter
+func OnenotePatchInsertPositionPAfter() *OnenotePatchInsertPosition {
+ v := OnenotePatchInsertPositionVAfter
+ return &v
+}
+
+// OnenotePatchInsertPositionPBefore returns a pointer to OnenotePatchInsertPositionVBefore
+func OnenotePatchInsertPositionPBefore() *OnenotePatchInsertPosition {
+ v := OnenotePatchInsertPositionVBefore
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteRequest.go
new file mode 100644
index 00000000..6fac4f8d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteRequest.go
@@ -0,0 +1,609 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Notebook collection
+func (r *OnenoteNotebooksCollectionRequest) Get(ctx context.Context) ([]Notebook, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnenoteOperation collection
+func (r *OnenoteOperationsCollectionRequest) Get(ctx context.Context) ([]OnenoteOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnenotePage collection
+func (r *OnenotePagesCollectionRequest) Get(ctx context.Context) ([]OnenotePage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnenoteResource collection
+func (r *OnenoteResourcesCollectionRequest) Get(ctx context.Context) ([]OnenoteResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SectionGroup collection
+func (r *OnenoteSectionGroupsCollectionRequest) Get(ctx context.Context) ([]SectionGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnenoteSection collection
+func (r *OnenoteSectionsCollectionRequest) Get(ctx context.Context) ([]OnenoteSection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteResourceModel.go
new file mode 100644
index 00000000..9d4f1cd8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteResourceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteResourceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteResourceRequest.go
new file mode 100644
index 00000000..613d19b3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteResourceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionAction.go
new file mode 100644
index 00000000..3e7237cf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionAction.go
@@ -0,0 +1,87 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/OnenoteSectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionModel.go
new file mode 100644
index 00000000..18faeb7e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/OnenoteSectionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionRequest.go
new file mode 100644
index 00000000..56838ad6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionRequest.go
@@ -0,0 +1,153 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnenotePage collection
+func (r *OnenoteSectionPagesCollectionRequest) Get(ctx context.Context) ([]OnenotePage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/OnenoteSourceServiceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSourceServiceEnum.go
new file mode 100644
index 00000000..accbaa26
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSourceServiceEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenoteSourceService undocumented
+type OnenoteSourceService int
+
+const (
+ // OnenoteSourceServiceVUnknown undocumented
+ OnenoteSourceServiceVUnknown OnenoteSourceService = 0
+ // OnenoteSourceServiceVOneDrive undocumented
+ OnenoteSourceServiceVOneDrive OnenoteSourceService = 1
+ // OnenoteSourceServiceVOneDriveForBusiness undocumented
+ OnenoteSourceServiceVOneDriveForBusiness OnenoteSourceService = 2
+ // OnenoteSourceServiceVOnPremOneDriveForBusiness undocumented
+ OnenoteSourceServiceVOnPremOneDriveForBusiness OnenoteSourceService = 3
+)
+
+// OnenoteSourceServicePUnknown returns a pointer to OnenoteSourceServiceVUnknown
+func OnenoteSourceServicePUnknown() *OnenoteSourceService {
+ v := OnenoteSourceServiceVUnknown
+ return &v
+}
+
+// OnenoteSourceServicePOneDrive returns a pointer to OnenoteSourceServiceVOneDrive
+func OnenoteSourceServicePOneDrive() *OnenoteSourceService {
+ v := OnenoteSourceServiceVOneDrive
+ return &v
+}
+
+// OnenoteSourceServicePOneDriveForBusiness returns a pointer to OnenoteSourceServiceVOneDriveForBusiness
+func OnenoteSourceServicePOneDriveForBusiness() *OnenoteSourceService {
+ v := OnenoteSourceServiceVOneDriveForBusiness
+ return &v
+}
+
+// OnenoteSourceServicePOnPremOneDriveForBusiness returns a pointer to OnenoteSourceServiceVOnPremOneDriveForBusiness
+func OnenoteSourceServicePOnPremOneDriveForBusiness() *OnenoteSourceService {
+ v := OnenoteSourceServiceVOnPremOneDriveForBusiness
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteUserRoleEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteUserRoleEnum.go
new file mode 100644
index 00000000..66fdde82
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteUserRoleEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenoteUserRole undocumented
+type OnenoteUserRole int
+
+const (
+ // OnenoteUserRoleVOwner undocumented
+ OnenoteUserRoleVOwner OnenoteUserRole = 0
+ // OnenoteUserRoleVContributor undocumented
+ OnenoteUserRoleVContributor OnenoteUserRole = 1
+ // OnenoteUserRoleVReader undocumented
+ OnenoteUserRoleVReader OnenoteUserRole = 2
+ // OnenoteUserRoleVNone undocumented
+ OnenoteUserRoleVNone OnenoteUserRole = -1
+)
+
+// OnenoteUserRolePOwner returns a pointer to OnenoteUserRoleVOwner
+func OnenoteUserRolePOwner() *OnenoteUserRole {
+ v := OnenoteUserRoleVOwner
+ return &v
+}
+
+// OnenoteUserRolePContributor returns a pointer to OnenoteUserRoleVContributor
+func OnenoteUserRolePContributor() *OnenoteUserRole {
+ v := OnenoteUserRoleVContributor
+ return &v
+}
+
+// OnenoteUserRolePReader returns a pointer to OnenoteUserRoleVReader
+func OnenoteUserRolePReader() *OnenoteUserRole {
+ v := OnenoteUserRoleVReader
+ return &v
+}
+
+// OnenoteUserRolePNone returns a pointer to OnenoteUserRoleVNone
+func OnenoteUserRolePNone() *OnenoteUserRole {
+ v := OnenoteUserRoleVNone
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingInfoModel.go
new file mode 100644
index 00000000..a5e41448
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingInfoModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/OnlineMeetingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingModel.go
new file mode 100644
index 00000000..09e0a0c8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingModel.go
@@ -0,0 +1,43 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingProviderTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingProviderTypeEnum.go
new file mode 100644
index 00000000..0736597d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingProviderTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnlineMeetingProviderType undocumented
+type OnlineMeetingProviderType int
+
+const (
+ // OnlineMeetingProviderTypeVUnknown undocumented
+ OnlineMeetingProviderTypeVUnknown OnlineMeetingProviderType = 0
+ // OnlineMeetingProviderTypeVSkypeForBusiness undocumented
+ OnlineMeetingProviderTypeVSkypeForBusiness OnlineMeetingProviderType = 1
+ // OnlineMeetingProviderTypeVSkypeForConsumer undocumented
+ OnlineMeetingProviderTypeVSkypeForConsumer OnlineMeetingProviderType = 2
+ // OnlineMeetingProviderTypeVTeamsForBusiness undocumented
+ OnlineMeetingProviderTypeVTeamsForBusiness OnlineMeetingProviderType = 3
+)
+
+// OnlineMeetingProviderTypePUnknown returns a pointer to OnlineMeetingProviderTypeVUnknown
+func OnlineMeetingProviderTypePUnknown() *OnlineMeetingProviderType {
+ v := OnlineMeetingProviderTypeVUnknown
+ return &v
+}
+
+// OnlineMeetingProviderTypePSkypeForBusiness returns a pointer to OnlineMeetingProviderTypeVSkypeForBusiness
+func OnlineMeetingProviderTypePSkypeForBusiness() *OnlineMeetingProviderType {
+ v := OnlineMeetingProviderTypeVSkypeForBusiness
+ return &v
+}
+
+// OnlineMeetingProviderTypePSkypeForConsumer returns a pointer to OnlineMeetingProviderTypeVSkypeForConsumer
+func OnlineMeetingProviderTypePSkypeForConsumer() *OnlineMeetingProviderType {
+ v := OnlineMeetingProviderTypeVSkypeForConsumer
+ return &v
+}
+
+// OnlineMeetingProviderTypePTeamsForBusiness returns a pointer to OnlineMeetingProviderTypeVTeamsForBusiness
+func OnlineMeetingProviderTypePTeamsForBusiness() *OnlineMeetingProviderType {
+ v := OnlineMeetingProviderTypeVTeamsForBusiness
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingRequest.go
new file mode 100644
index 00000000..badf6bff
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingRequest.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/matterbridge/msgraph.go/beta/OpenShiftChangeRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftChangeRequestObjectModel.go
new file mode 100644
index 00000000..895955b3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftChangeRequestObjectModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OpenShiftChangeRequestObject undocumented
+type OpenShiftChangeRequestObject struct {
+ // ScheduleChangeRequestObject is the base model of OpenShiftChangeRequestObject
+ ScheduleChangeRequestObject
+ // OpenShiftID undocumented
+ OpenShiftID *string `json:"openShiftId,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftChangeRequestObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftChangeRequestObjectRequest.go
new file mode 100644
index 00000000..1cd46c63
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftChangeRequestObjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/OpenShiftItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftItemModel.go
new file mode 100644
index 00000000..8af612c4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftItemModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OpenShiftItem undocumented
+type OpenShiftItem struct {
+ // ShiftItem is the base model of OpenShiftItem
+ ShiftItem
+ // OpenSlotCount undocumented
+ OpenSlotCount *int `json:"openSlotCount,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftModel.go
new file mode 100644
index 00000000..458f061a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftModel.go
@@ -0,0 +1,15 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftRequest.go
new file mode 100644
index 00000000..e926c5d8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OpenTypeExtensionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OpenTypeExtensionModel.go
new file mode 100644
index 00000000..5c765c03
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OpenTypeExtensionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/OpeningHoursSpecificationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OpeningHoursSpecificationModel.go
new file mode 100644
index 00000000..e04a623c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OpeningHoursSpecificationModel.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/matterbridge/msgraph.go/beta/OperatingSystemVersionRangeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OperatingSystemVersionRangeModel.go
new file mode 100644
index 00000000..5d4a77eb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OperatingSystemVersionRangeModel.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/matterbridge/msgraph.go/beta/OperationErrorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OperationErrorModel.go
new file mode 100644
index 00000000..37b79fc0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OperationErrorModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/OperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OperationModel.go
new file mode 100644
index 00000000..56282904
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OperationModel.go
@@ -0,0 +1,17 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OperationResultEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/OperationResultEnum.go
new file mode 100644
index 00000000..650a35a5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OperationResultEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OperationResult undocumented
+type OperationResult int
+
+const (
+ // OperationResultVSuccess undocumented
+ OperationResultVSuccess OperationResult = 0
+ // OperationResultVFailure undocumented
+ OperationResultVFailure OperationResult = 1
+ // OperationResultVTimeout undocumented
+ OperationResultVTimeout OperationResult = 2
+ // OperationResultVUnknownFutureValue undocumented
+ OperationResultVUnknownFutureValue OperationResult = 3
+)
+
+// OperationResultPSuccess returns a pointer to OperationResultVSuccess
+func OperationResultPSuccess() *OperationResult {
+ v := OperationResultVSuccess
+ return &v
+}
+
+// OperationResultPFailure returns a pointer to OperationResultVFailure
+func OperationResultPFailure() *OperationResult {
+ v := OperationResultVFailure
+ return &v
+}
+
+// OperationResultPTimeout returns a pointer to OperationResultVTimeout
+func OperationResultPTimeout() *OperationResult {
+ v := OperationResultVTimeout
+ return &v
+}
+
+// OperationResultPUnknownFutureValue returns a pointer to OperationResultVUnknownFutureValue
+func OperationResultPUnknownFutureValue() *OperationResult {
+ v := OperationResultVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OperationStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/OperationStatusEnum.go
new file mode 100644
index 00000000..aa48d31c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OperationStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OperationStatus undocumented
+type OperationStatus int
+
+const (
+ // OperationStatusVNotStarted undocumented
+ OperationStatusVNotStarted OperationStatus = 0
+ // OperationStatusVRunning undocumented
+ OperationStatusVRunning OperationStatus = 1
+ // OperationStatusVCompleted undocumented
+ OperationStatusVCompleted OperationStatus = 2
+ // OperationStatusVFailed undocumented
+ OperationStatusVFailed OperationStatus = 3
+)
+
+// OperationStatusPNotStarted returns a pointer to OperationStatusVNotStarted
+func OperationStatusPNotStarted() *OperationStatus {
+ v := OperationStatusVNotStarted
+ return &v
+}
+
+// OperationStatusPRunning returns a pointer to OperationStatusVRunning
+func OperationStatusPRunning() *OperationStatus {
+ v := OperationStatusVRunning
+ return &v
+}
+
+// OperationStatusPCompleted returns a pointer to OperationStatusVCompleted
+func OperationStatusPCompleted() *OperationStatus {
+ v := OperationStatusVCompleted
+ return &v
+}
+
+// OperationStatusPFailed returns a pointer to OperationStatusVFailed
+func OperationStatusPFailed() *OperationStatus {
+ v := OperationStatusVFailed
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OptionalClaimModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OptionalClaimModel.go
new file mode 100644
index 00000000..732e45bf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OptionalClaimModel.go
@@ -0,0 +1,17 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OptionalClaimsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OptionalClaimsModel.go
new file mode 100644
index 00000000..da1c7c92
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OptionalClaimsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/OrgContactModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OrgContactModel.go
new file mode 100644
index 00000000..4229b653
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OrgContactModel.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/matterbridge/msgraph.go/beta/OrgContactRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OrgContactRequest.go
new file mode 100644
index 00000000..2f1f40f9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OrgContactRequest.go
@@ -0,0 +1,334 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *OrgContactDirectReportsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *OrgContactMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *OrgContactTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/OrganizationAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/OrganizationAction.go
new file mode 100644
index 00000000..956e56a0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OrganizationAction.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OrganizationSetMobileDeviceManagementAuthorityRequestParameter undocumented
+type OrganizationSetMobileDeviceManagementAuthorityRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/OrganizationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OrganizationModel.go
new file mode 100644
index 00000000..b3ee988a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OrganizationModel.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/matterbridge/msgraph.go/beta/OrganizationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OrganizationRequest.go
new file mode 100644
index 00000000..bdac6b2d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OrganizationRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OrganizationalBranding collection
+func (r *OrganizationBrandingsCollectionRequest) Get(ctx context.Context) ([]OrganizationalBranding, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CertificateBasedAuthConfiguration collection
+func (r *OrganizationCertificateBasedAuthConfigurationCollectionRequest) Get(ctx context.Context) ([]CertificateBasedAuthConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *OrganizationExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/OrganizationalBrandingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OrganizationalBrandingModel.go
new file mode 100644
index 00000000..3e2465c4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OrganizationalBrandingModel.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/matterbridge/msgraph.go/beta/OrganizationalBrandingRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OrganizationalBrandingRequest.go
new file mode 100644
index 00000000..640fc926
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OrganizationalBrandingRequest.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/matterbridge/msgraph.go/beta/OrganizerMeetingInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OrganizerMeetingInfoModel.go
new file mode 100644
index 00000000..5d375fc8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OrganizerMeetingInfoModel.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/matterbridge/msgraph.go/beta/OsVersionCountModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OsVersionCountModel.go
new file mode 100644
index 00000000..ddf69c89
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OsVersionCountModel.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/matterbridge/msgraph.go/beta/OutOfBoxExperienceSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutOfBoxExperienceSettingsModel.go
new file mode 100644
index 00000000..61d5785c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutOfBoxExperienceSettingsModel.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/matterbridge/msgraph.go/beta/OutgoingCallOptionsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutgoingCallOptionsModel.go
new file mode 100644
index 00000000..bda17fc7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutgoingCallOptionsModel.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/matterbridge/msgraph.go/beta/OutlookCategoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookCategoryModel.go
new file mode 100644
index 00000000..914b71bb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookCategoryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookCategoryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookCategoryRequest.go
new file mode 100644
index 00000000..a1686b7f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookCategoryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookGeoCoordinatesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookGeoCoordinatesModel.go
new file mode 100644
index 00000000..c015db70
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookGeoCoordinatesModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookItemModel.go
new file mode 100644
index 00000000..121b9842
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookItemModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookItemRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookItemRequest.go
new file mode 100644
index 00000000..0332d379
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookItemRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskAction.go
new file mode 100644
index 00000000..e55b650b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskAction.go
@@ -0,0 +1,98 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// OutlookTaskCompleteRequestParameter undocumented
+type OutlookTaskCompleteRequestParameter struct {
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]OutlookTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskFolderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskFolderModel.go
new file mode 100644
index 00000000..c6188504
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskFolderModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskFolderRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskFolderRequest.go
new file mode 100644
index 00000000..c8211077
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskFolderRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OutlookTask collection
+func (r *OutlookTaskFolderTasksCollectionRequest) Get(ctx context.Context) ([]OutlookTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskGroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskGroupModel.go
new file mode 100644
index 00000000..c279ea99
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskGroupModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskGroupRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskGroupRequest.go
new file mode 100644
index 00000000..64eff5b2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskGroupRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OutlookTaskFolder collection
+func (r *OutlookTaskGroupTaskFoldersCollectionRequest) Get(ctx context.Context) ([]OutlookTaskFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskModel.go
new file mode 100644
index 00000000..c76ef6b4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskRequest.go
new file mode 100644
index 00000000..9386f415
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Attachment collection
+func (r *OutlookTaskAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *OutlookTaskMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *OutlookTaskSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookUserModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookUserModel.go
new file mode 100644
index 00000000..eb6f6726
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookUserModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/OutlookUserRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookUserRequest.go
new file mode 100644
index 00000000..755c6755
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookUserRequest.go
@@ -0,0 +1,421 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OutlookCategory collection
+func (r *OutlookUserMasterCategoriesCollectionRequest) Get(ctx context.Context) ([]OutlookCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OutlookTaskFolder collection
+func (r *OutlookUserTaskFoldersCollectionRequest) Get(ctx context.Context) ([]OutlookTaskFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OutlookTaskGroup collection
+func (r *OutlookUserTaskGroupsCollectionRequest) Get(ctx context.Context) ([]OutlookTaskGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OutlookTask collection
+func (r *OutlookUserTasksCollectionRequest) Get(ctx context.Context) ([]OutlookTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/OverrideOptionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/OverrideOptionEnum.go
new file mode 100644
index 00000000..8ad214d9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OverrideOptionEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OverrideOption undocumented
+type OverrideOption int
+
+const (
+ // OverrideOptionVNotAllowed undocumented
+ OverrideOptionVNotAllowed OverrideOption = 0
+ // OverrideOptionVAllowFalsePositiveOverride undocumented
+ OverrideOptionVAllowFalsePositiveOverride OverrideOption = 1
+ // OverrideOptionVAllowWithJustification undocumented
+ OverrideOptionVAllowWithJustification OverrideOption = 2
+ // OverrideOptionVAllowWithoutJustification undocumented
+ OverrideOptionVAllowWithoutJustification OverrideOption = 4
+)
+
+// OverrideOptionPNotAllowed returns a pointer to OverrideOptionVNotAllowed
+func OverrideOptionPNotAllowed() *OverrideOption {
+ v := OverrideOptionVNotAllowed
+ return &v
+}
+
+// OverrideOptionPAllowFalsePositiveOverride returns a pointer to OverrideOptionVAllowFalsePositiveOverride
+func OverrideOptionPAllowFalsePositiveOverride() *OverrideOption {
+ v := OverrideOptionVAllowFalsePositiveOverride
+ return &v
+}
+
+// OverrideOptionPAllowWithJustification returns a pointer to OverrideOptionVAllowWithJustification
+func OverrideOptionPAllowWithJustification() *OverrideOption {
+ v := OverrideOptionVAllowWithJustification
+ return &v
+}
+
+// OverrideOptionPAllowWithoutJustification returns a pointer to OverrideOptionVAllowWithoutJustification
+func OverrideOptionPAllowWithoutJustification() *OverrideOption {
+ v := OverrideOptionVAllowWithoutJustification
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OwnerTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/OwnerTypeEnum.go
new file mode 100644
index 00000000..ddd7639c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/OwnerTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OwnerType undocumented
+type OwnerType int
+
+const (
+ // OwnerTypeVUnknown undocumented
+ OwnerTypeVUnknown OwnerType = 0
+ // OwnerTypeVCompany undocumented
+ OwnerTypeVCompany OwnerType = 1
+ // OwnerTypeVPersonal undocumented
+ OwnerTypeVPersonal OwnerType = 2
+)
+
+// OwnerTypePUnknown returns a pointer to OwnerTypeVUnknown
+func OwnerTypePUnknown() *OwnerType {
+ v := OwnerTypeVUnknown
+ return &v
+}
+
+// OwnerTypePCompany returns a pointer to OwnerTypeVCompany
+func OwnerTypePCompany() *OwnerType {
+ v := OwnerTypeVCompany
+ return &v
+}
+
+// OwnerTypePPersonal returns a pointer to OwnerTypeVPersonal
+func OwnerTypePPersonal() *OwnerType {
+ v := OwnerTypeVPersonal
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PackageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PackageModel.go
new file mode 100644
index 00000000..3b57e1c4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PackageModel.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/matterbridge/msgraph.go/beta/PageLinksModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PageLinksModel.go
new file mode 100644
index 00000000..ad243183
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PageLinksModel.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/matterbridge/msgraph.go/beta/PageOrientationEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PageOrientationEnum.go
new file mode 100644
index 00000000..b5a15aa0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PageOrientationEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PageOrientation undocumented
+type PageOrientation int
+
+const (
+ // PageOrientationVHorizontal undocumented
+ PageOrientationVHorizontal PageOrientation = 0
+ // PageOrientationVDiagonal undocumented
+ PageOrientationVDiagonal PageOrientation = 1
+)
+
+// PageOrientationPHorizontal returns a pointer to PageOrientationVHorizontal
+func PageOrientationPHorizontal() *PageOrientation {
+ v := PageOrientationVHorizontal
+ return &v
+}
+
+// PageOrientationPDiagonal returns a pointer to PageOrientationVDiagonal
+func PageOrientationPDiagonal() *PageOrientation {
+ v := PageOrientationVDiagonal
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ParentalControlSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ParentalControlSettingsModel.go
new file mode 100644
index 00000000..8fc0e60b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ParentalControlSettingsModel.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/matterbridge/msgraph.go/beta/ParseExpressionResponseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ParseExpressionResponseModel.go
new file mode 100644
index 00000000..cad8b8b2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ParseExpressionResponseModel.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/matterbridge/msgraph.go/beta/ParticipantAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ParticipantAction.go
new file mode 100644
index 00000000..95eae611
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ParticipantAction.go
@@ -0,0 +1,108 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/ParticipantInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ParticipantInfoModel.go
new file mode 100644
index 00000000..37648f4f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ParticipantInfoModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ParticipantModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ParticipantModel.go
new file mode 100644
index 00000000..35bf6ca7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ParticipantModel.go
@@ -0,0 +1,21 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ParticipantRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ParticipantRequest.go
new file mode 100644
index 00000000..79f47844
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ParticipantRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PasswordCredentialModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PasswordCredentialModel.go
new file mode 100644
index 00000000..afc69f01
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PasswordCredentialModel.go
@@ -0,0 +1,25 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PasswordProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PasswordProfileModel.go
new file mode 100644
index 00000000..e585397f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PasswordProfileModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PasswordSingleSignOnCredentialSetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PasswordSingleSignOnCredentialSetModel.go
new file mode 100644
index 00000000..42f52d95
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PasswordSingleSignOnCredentialSetModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/PatternedRecurrenceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PatternedRecurrenceModel.go
new file mode 100644
index 00000000..796403ed
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PatternedRecurrenceModel.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/matterbridge/msgraph.go/beta/PayloadRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PayloadRequestObjectModel.go
new file mode 100644
index 00000000..b6720106
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PayloadRequestObjectModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PayloadRequestObject undocumented
+type PayloadRequestObject struct {
+ // Object is the base model of PayloadRequestObject
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PayloadResponseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PayloadResponseModel.go
new file mode 100644
index 00000000..95115624
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PayloadResponseModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PayloadResponse undocumented
+type PayloadResponse struct {
+ // Entity is the base model of PayloadResponse
+ Entity
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PayloadResponseRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PayloadResponseRequest.go
new file mode 100644
index 00000000..e31fbddd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PayloadResponseRequest.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/matterbridge/msgraph.go/beta/PayloadTypesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PayloadTypesModel.go
new file mode 100644
index 00000000..9ed23d9b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PayloadTypesModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/PaymentMethodModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PaymentMethodModel.go
new file mode 100644
index 00000000..b6f587e0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PaymentMethodModel.go
@@ -0,0 +1,17 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PaymentMethodRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PaymentMethodRequest.go
new file mode 100644
index 00000000..f2a3c658
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PaymentMethodRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PaymentTermModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PaymentTermModel.go
new file mode 100644
index 00000000..d3fd3af6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PaymentTermModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/PaymentTermRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PaymentTermRequest.go
new file mode 100644
index 00000000..c3e8b4eb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PaymentTermRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/PendingContentUpdateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PendingContentUpdateModel.go
new file mode 100644
index 00000000..ee9f6f35
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PendingContentUpdateModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PendingOperationsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PendingOperationsModel.go
new file mode 100644
index 00000000..850315ee
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PendingOperationsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/PermissionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/PermissionAction.go
new file mode 100644
index 00000000..f0f383c2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PermissionAction.go
@@ -0,0 +1,102 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// PermissionGrantRequestParameter undocumented
+type PermissionGrantRequestParameter struct {
+ // Roles undocumented
+ Roles []string `json:"roles,omitempty"`
+ // Recipients undocumented
+ Recipients []DriveRecipient `json:"recipients,omitempty"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]Permission, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PermissionClassificationTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PermissionClassificationTypeEnum.go
new file mode 100644
index 00000000..bdcc8600
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PermissionClassificationTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PermissionClassificationType undocumented
+type PermissionClassificationType int
+
+const (
+ // PermissionClassificationTypeVLow undocumented
+ PermissionClassificationTypeVLow PermissionClassificationType = 1
+ // PermissionClassificationTypeVMedium undocumented
+ PermissionClassificationTypeVMedium PermissionClassificationType = 2
+ // PermissionClassificationTypeVHigh undocumented
+ PermissionClassificationTypeVHigh PermissionClassificationType = 3
+ // PermissionClassificationTypeVUnknownFutureValue undocumented
+ PermissionClassificationTypeVUnknownFutureValue PermissionClassificationType = 4
+)
+
+// PermissionClassificationTypePLow returns a pointer to PermissionClassificationTypeVLow
+func PermissionClassificationTypePLow() *PermissionClassificationType {
+ v := PermissionClassificationTypeVLow
+ return &v
+}
+
+// PermissionClassificationTypePMedium returns a pointer to PermissionClassificationTypeVMedium
+func PermissionClassificationTypePMedium() *PermissionClassificationType {
+ v := PermissionClassificationTypeVMedium
+ return &v
+}
+
+// PermissionClassificationTypePHigh returns a pointer to PermissionClassificationTypeVHigh
+func PermissionClassificationTypePHigh() *PermissionClassificationType {
+ v := PermissionClassificationTypeVHigh
+ return &v
+}
+
+// PermissionClassificationTypePUnknownFutureValue returns a pointer to PermissionClassificationTypeVUnknownFutureValue
+func PermissionClassificationTypePUnknownFutureValue() *PermissionClassificationType {
+ v := PermissionClassificationTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PermissionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PermissionModel.go
new file mode 100644
index 00000000..47b12ed6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PermissionModel.go
@@ -0,0 +1,29 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PermissionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PermissionRequest.go
new file mode 100644
index 00000000..38cba0fc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PermissionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PermissionScopeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PermissionScopeModel.go
new file mode 100644
index 00000000..6d7eb2af
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PermissionScopeModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/PersistentBrowserSessionControlModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersistentBrowserSessionControlModel.go
new file mode 100644
index 00000000..47ad1b7c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PersistentBrowserSessionControlModel.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/matterbridge/msgraph.go/beta/PersistentBrowserSessionModeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersistentBrowserSessionModeEnum.go
new file mode 100644
index 00000000..a05f1613
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PersistentBrowserSessionModeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PersistentBrowserSessionMode undocumented
+type PersistentBrowserSessionMode int
+
+const (
+ // PersistentBrowserSessionModeVAlways undocumented
+ PersistentBrowserSessionModeVAlways PersistentBrowserSessionMode = 0
+ // PersistentBrowserSessionModeVNever undocumented
+ PersistentBrowserSessionModeVNever PersistentBrowserSessionMode = 1
+)
+
+// PersistentBrowserSessionModePAlways returns a pointer to PersistentBrowserSessionModeVAlways
+func PersistentBrowserSessionModePAlways() *PersistentBrowserSessionMode {
+ v := PersistentBrowserSessionModeVAlways
+ return &v
+}
+
+// PersistentBrowserSessionModePNever returns a pointer to PersistentBrowserSessionModeVNever
+func PersistentBrowserSessionModePNever() *PersistentBrowserSessionMode {
+ v := PersistentBrowserSessionModeVNever
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PersonAnniversaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersonAnniversaryModel.go
new file mode 100644
index 00000000..ff48dd8c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PersonAnniversaryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PersonAnniversary undocumented
+type PersonAnniversary struct {
+ // ItemFacet is the base model of PersonAnniversary
+ ItemFacet
+ // Type undocumented
+ Type *AnniversaryType `json:"type,omitempty"`
+ // Date undocumented
+ Date *time.Time `json:"date,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PersonAnniversaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersonAnniversaryRequest.go
new file mode 100644
index 00000000..4595aa01
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PersonAnniversaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PersonDataSourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersonDataSourceModel.go
new file mode 100644
index 00000000..1a8a40c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PersonDataSourceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PersonDataSource undocumented
+type PersonDataSource struct {
+ // Object is the base model of PersonDataSource
+ Object
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PersonInterestModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersonInterestModel.go
new file mode 100644
index 00000000..1f7c2ca9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PersonInterestModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PersonInterestRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersonInterestRequest.go
new file mode 100644
index 00000000..38b68cf5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PersonInterestRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PersonModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersonModel.go
new file mode 100644
index 00000000..9ecbc81f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PersonModel.go
@@ -0,0 +1,49 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PersonNameModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersonNameModel.go
new file mode 100644
index 00000000..7af3a9e2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PersonNameModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PersonNameRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersonNameRequest.go
new file mode 100644
index 00000000..8300540f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PersonNameRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PersonOrGroupColumnModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersonOrGroupColumnModel.go
new file mode 100644
index 00000000..44243448
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PersonOrGroupColumnModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PersonRelationshipEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersonRelationshipEnum.go
new file mode 100644
index 00000000..d3a2cbc7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PersonRelationshipEnum.go
@@ -0,0 +1,137 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PersonRelationship undocumented
+type PersonRelationship int
+
+const (
+ // PersonRelationshipVManager undocumented
+ PersonRelationshipVManager PersonRelationship = 0
+ // PersonRelationshipVColleague undocumented
+ PersonRelationshipVColleague PersonRelationship = 1
+ // PersonRelationshipVDirectReport undocumented
+ PersonRelationshipVDirectReport PersonRelationship = 2
+ // PersonRelationshipVDotLineReport undocumented
+ PersonRelationshipVDotLineReport PersonRelationship = 3
+ // PersonRelationshipVAssistant undocumented
+ PersonRelationshipVAssistant PersonRelationship = 4
+ // PersonRelationshipVDotLineManager undocumented
+ PersonRelationshipVDotLineManager PersonRelationship = 5
+ // PersonRelationshipVAlternateContact undocumented
+ PersonRelationshipVAlternateContact PersonRelationship = 6
+ // PersonRelationshipVFriend undocumented
+ PersonRelationshipVFriend PersonRelationship = 7
+ // PersonRelationshipVSpouse undocumented
+ PersonRelationshipVSpouse PersonRelationship = 8
+ // PersonRelationshipVSibling undocumented
+ PersonRelationshipVSibling PersonRelationship = 9
+ // PersonRelationshipVChild undocumented
+ PersonRelationshipVChild PersonRelationship = 10
+ // PersonRelationshipVParent undocumented
+ PersonRelationshipVParent PersonRelationship = 11
+ // PersonRelationshipVSponsor undocumented
+ PersonRelationshipVSponsor PersonRelationship = 12
+ // PersonRelationshipVEmergencyContact undocumented
+ PersonRelationshipVEmergencyContact PersonRelationship = 13
+ // PersonRelationshipVOther undocumented
+ PersonRelationshipVOther PersonRelationship = 14
+ // PersonRelationshipVUnknownFutureValue undocumented
+ PersonRelationshipVUnknownFutureValue PersonRelationship = 15
+)
+
+// PersonRelationshipPManager returns a pointer to PersonRelationshipVManager
+func PersonRelationshipPManager() *PersonRelationship {
+ v := PersonRelationshipVManager
+ return &v
+}
+
+// PersonRelationshipPColleague returns a pointer to PersonRelationshipVColleague
+func PersonRelationshipPColleague() *PersonRelationship {
+ v := PersonRelationshipVColleague
+ return &v
+}
+
+// PersonRelationshipPDirectReport returns a pointer to PersonRelationshipVDirectReport
+func PersonRelationshipPDirectReport() *PersonRelationship {
+ v := PersonRelationshipVDirectReport
+ return &v
+}
+
+// PersonRelationshipPDotLineReport returns a pointer to PersonRelationshipVDotLineReport
+func PersonRelationshipPDotLineReport() *PersonRelationship {
+ v := PersonRelationshipVDotLineReport
+ return &v
+}
+
+// PersonRelationshipPAssistant returns a pointer to PersonRelationshipVAssistant
+func PersonRelationshipPAssistant() *PersonRelationship {
+ v := PersonRelationshipVAssistant
+ return &v
+}
+
+// PersonRelationshipPDotLineManager returns a pointer to PersonRelationshipVDotLineManager
+func PersonRelationshipPDotLineManager() *PersonRelationship {
+ v := PersonRelationshipVDotLineManager
+ return &v
+}
+
+// PersonRelationshipPAlternateContact returns a pointer to PersonRelationshipVAlternateContact
+func PersonRelationshipPAlternateContact() *PersonRelationship {
+ v := PersonRelationshipVAlternateContact
+ return &v
+}
+
+// PersonRelationshipPFriend returns a pointer to PersonRelationshipVFriend
+func PersonRelationshipPFriend() *PersonRelationship {
+ v := PersonRelationshipVFriend
+ return &v
+}
+
+// PersonRelationshipPSpouse returns a pointer to PersonRelationshipVSpouse
+func PersonRelationshipPSpouse() *PersonRelationship {
+ v := PersonRelationshipVSpouse
+ return &v
+}
+
+// PersonRelationshipPSibling returns a pointer to PersonRelationshipVSibling
+func PersonRelationshipPSibling() *PersonRelationship {
+ v := PersonRelationshipVSibling
+ return &v
+}
+
+// PersonRelationshipPChild returns a pointer to PersonRelationshipVChild
+func PersonRelationshipPChild() *PersonRelationship {
+ v := PersonRelationshipVChild
+ return &v
+}
+
+// PersonRelationshipPParent returns a pointer to PersonRelationshipVParent
+func PersonRelationshipPParent() *PersonRelationship {
+ v := PersonRelationshipVParent
+ return &v
+}
+
+// PersonRelationshipPSponsor returns a pointer to PersonRelationshipVSponsor
+func PersonRelationshipPSponsor() *PersonRelationship {
+ v := PersonRelationshipVSponsor
+ return &v
+}
+
+// PersonRelationshipPEmergencyContact returns a pointer to PersonRelationshipVEmergencyContact
+func PersonRelationshipPEmergencyContact() *PersonRelationship {
+ v := PersonRelationshipVEmergencyContact
+ return &v
+}
+
+// PersonRelationshipPOther returns a pointer to PersonRelationshipVOther
+func PersonRelationshipPOther() *PersonRelationship {
+ v := PersonRelationshipVOther
+ return &v
+}
+
+// PersonRelationshipPUnknownFutureValue returns a pointer to PersonRelationshipVUnknownFutureValue
+func PersonRelationshipPUnknownFutureValue() *PersonRelationship {
+ v := PersonRelationshipVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PersonRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersonRequest.go
new file mode 100644
index 00000000..3125ebc7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PersonRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PersonWebsiteModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersonWebsiteModel.go
new file mode 100644
index 00000000..b4493640
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PersonWebsiteModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/PersonWebsiteRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersonWebsiteRequest.go
new file mode 100644
index 00000000..e081ad3e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PersonWebsiteRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/PhoneModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PhoneModel.go
new file mode 100644
index 00000000..eee02a65
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PhoneModel.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/matterbridge/msgraph.go/beta/PhoneTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PhoneTypeEnum.go
new file mode 100644
index 00000000..735dbf38
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PhoneTypeEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PhoneType undocumented
+type PhoneType int
+
+const (
+ // PhoneTypeVHome undocumented
+ PhoneTypeVHome PhoneType = 0
+ // PhoneTypeVBusiness undocumented
+ PhoneTypeVBusiness PhoneType = 1
+ // PhoneTypeVMobile undocumented
+ PhoneTypeVMobile PhoneType = 2
+ // PhoneTypeVOther undocumented
+ PhoneTypeVOther PhoneType = 3
+ // PhoneTypeVAssistant undocumented
+ PhoneTypeVAssistant PhoneType = 4
+ // PhoneTypeVHomeFax undocumented
+ PhoneTypeVHomeFax PhoneType = 5
+ // PhoneTypeVBusinessFax undocumented
+ PhoneTypeVBusinessFax PhoneType = 6
+ // PhoneTypeVOtherFax undocumented
+ PhoneTypeVOtherFax PhoneType = 7
+ // PhoneTypeVPager undocumented
+ PhoneTypeVPager PhoneType = 8
+ // PhoneTypeVRadio undocumented
+ PhoneTypeVRadio PhoneType = 9
+)
+
+// PhoneTypePHome returns a pointer to PhoneTypeVHome
+func PhoneTypePHome() *PhoneType {
+ v := PhoneTypeVHome
+ return &v
+}
+
+// PhoneTypePBusiness returns a pointer to PhoneTypeVBusiness
+func PhoneTypePBusiness() *PhoneType {
+ v := PhoneTypeVBusiness
+ return &v
+}
+
+// PhoneTypePMobile returns a pointer to PhoneTypeVMobile
+func PhoneTypePMobile() *PhoneType {
+ v := PhoneTypeVMobile
+ return &v
+}
+
+// PhoneTypePOther returns a pointer to PhoneTypeVOther
+func PhoneTypePOther() *PhoneType {
+ v := PhoneTypeVOther
+ return &v
+}
+
+// PhoneTypePAssistant returns a pointer to PhoneTypeVAssistant
+func PhoneTypePAssistant() *PhoneType {
+ v := PhoneTypeVAssistant
+ return &v
+}
+
+// PhoneTypePHomeFax returns a pointer to PhoneTypeVHomeFax
+func PhoneTypePHomeFax() *PhoneType {
+ v := PhoneTypeVHomeFax
+ return &v
+}
+
+// PhoneTypePBusinessFax returns a pointer to PhoneTypeVBusinessFax
+func PhoneTypePBusinessFax() *PhoneType {
+ v := PhoneTypeVBusinessFax
+ return &v
+}
+
+// PhoneTypePOtherFax returns a pointer to PhoneTypeVOtherFax
+func PhoneTypePOtherFax() *PhoneType {
+ v := PhoneTypeVOtherFax
+ return &v
+}
+
+// PhoneTypePPager returns a pointer to PhoneTypeVPager
+func PhoneTypePPager() *PhoneType {
+ v := PhoneTypeVPager
+ return &v
+}
+
+// PhoneTypePRadio returns a pointer to PhoneTypeVRadio
+func PhoneTypePRadio() *PhoneType {
+ v := PhoneTypeVRadio
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PhotoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PhotoModel.go
new file mode 100644
index 00000000..3c9c6efe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PhotoModel.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/matterbridge/msgraph.go/beta/PhysicalAddressModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PhysicalAddressModel.go
new file mode 100644
index 00000000..a19e5276
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PhysicalAddressModel.go
@@ -0,0 +1,23 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PhysicalAddressTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PhysicalAddressTypeEnum.go
new file mode 100644
index 00000000..7da1b037
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PhysicalAddressTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PhysicalAddressType undocumented
+type PhysicalAddressType int
+
+const (
+ // PhysicalAddressTypeVUnknown undocumented
+ PhysicalAddressTypeVUnknown PhysicalAddressType = 0
+ // PhysicalAddressTypeVHome undocumented
+ PhysicalAddressTypeVHome PhysicalAddressType = 1
+ // PhysicalAddressTypeVBusiness undocumented
+ PhysicalAddressTypeVBusiness PhysicalAddressType = 2
+ // PhysicalAddressTypeVOther undocumented
+ PhysicalAddressTypeVOther PhysicalAddressType = 3
+)
+
+// PhysicalAddressTypePUnknown returns a pointer to PhysicalAddressTypeVUnknown
+func PhysicalAddressTypePUnknown() *PhysicalAddressType {
+ v := PhysicalAddressTypeVUnknown
+ return &v
+}
+
+// PhysicalAddressTypePHome returns a pointer to PhysicalAddressTypeVHome
+func PhysicalAddressTypePHome() *PhysicalAddressType {
+ v := PhysicalAddressTypeVHome
+ return &v
+}
+
+// PhysicalAddressTypePBusiness returns a pointer to PhysicalAddressTypeVBusiness
+func PhysicalAddressTypePBusiness() *PhysicalAddressType {
+ v := PhysicalAddressTypeVBusiness
+ return &v
+}
+
+// PhysicalAddressTypePOther returns a pointer to PhysicalAddressTypeVOther
+func PhysicalAddressTypePOther() *PhysicalAddressType {
+ v := PhysicalAddressTypeVOther
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PhysicalOfficeAddressModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PhysicalOfficeAddressModel.go
new file mode 100644
index 00000000..88f745da
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PhysicalOfficeAddressModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/PictureModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PictureModel.go
new file mode 100644
index 00000000..b8a534b0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PictureModel.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/matterbridge/msgraph.go/beta/PictureRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PictureRequest.go
new file mode 100644
index 00000000..c26f120f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PictureRequest.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/matterbridge/msgraph.go/beta/PlaceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlaceModel.go
new file mode 100644
index 00000000..7bc69643
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlaceModel.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/matterbridge/msgraph.go/beta/PlaceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlaceRequest.go
new file mode 100644
index 00000000..b69def77
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlaceRequest.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/matterbridge/msgraph.go/beta/PlaceTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlaceTypeEnum.go
new file mode 100644
index 00000000..9ab1c196
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlaceTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlaceType undocumented
+type PlaceType int
+
+const (
+ // PlaceTypeVUnknown undocumented
+ PlaceTypeVUnknown PlaceType = 0
+ // PlaceTypeVRoom undocumented
+ PlaceTypeVRoom PlaceType = 1
+ // PlaceTypeVRoomList undocumented
+ PlaceTypeVRoomList PlaceType = 2
+ // PlaceTypeVPublicPlace undocumented
+ PlaceTypeVPublicPlace PlaceType = 3
+ // PlaceTypeVPersonalPlace undocumented
+ PlaceTypeVPersonalPlace PlaceType = 4
+)
+
+// PlaceTypePUnknown returns a pointer to PlaceTypeVUnknown
+func PlaceTypePUnknown() *PlaceType {
+ v := PlaceTypeVUnknown
+ return &v
+}
+
+// PlaceTypePRoom returns a pointer to PlaceTypeVRoom
+func PlaceTypePRoom() *PlaceType {
+ v := PlaceTypeVRoom
+ return &v
+}
+
+// PlaceTypePRoomList returns a pointer to PlaceTypeVRoomList
+func PlaceTypePRoomList() *PlaceType {
+ v := PlaceTypeVRoomList
+ return &v
+}
+
+// PlaceTypePPublicPlace returns a pointer to PlaceTypeVPublicPlace
+func PlaceTypePPublicPlace() *PlaceType {
+ v := PlaceTypeVPublicPlace
+ return &v
+}
+
+// PlaceTypePPersonalPlace returns a pointer to PlaceTypeVPersonalPlace
+func PlaceTypePPersonalPlace() *PlaceType {
+ v := PlaceTypeVPersonalPlace
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAppliedCategoriesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAppliedCategoriesModel.go
new file mode 100644
index 00000000..ce466bd8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAppliedCategoriesModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerAppliedCategories undocumented
+type PlannerAppliedCategories struct {
+ // Object is the base model of PlannerAppliedCategories
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatModel.go
new file mode 100644
index 00000000..0d5e3c5f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatRequest.go
new file mode 100644
index 00000000..9b13b0cf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignmentModel.go
new file mode 100644
index 00000000..bc991c39
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignmentModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignmentsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignmentsModel.go
new file mode 100644
index 00000000..a8d80044
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignmentsModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerAssignments undocumented
+type PlannerAssignments struct {
+ // Object is the base model of PlannerAssignments
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketModel.go
new file mode 100644
index 00000000..66e099cf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketRequest.go
new file mode 100644
index 00000000..2ad2e3d7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerTask collection
+func (r *PlannerBucketTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatModel.go
new file mode 100644
index 00000000..6b4f46ff
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerBucketTaskBoardTaskFormat undocumented
+type PlannerBucketTaskBoardTaskFormat struct {
+ // PlannerDelta is the base model of PlannerBucketTaskBoardTaskFormat
+ PlannerDelta
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatRequest.go
new file mode 100644
index 00000000..497a3433
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerCategoryDescriptionsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerCategoryDescriptionsModel.go
new file mode 100644
index 00000000..bcef060c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerCategoryDescriptionsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerChecklistItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerChecklistItemModel.go
new file mode 100644
index 00000000..6f371bc9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerChecklistItemModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerChecklistItemsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerChecklistItemsModel.go
new file mode 100644
index 00000000..fbdbb0d1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerChecklistItemsModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerChecklistItems undocumented
+type PlannerChecklistItems struct {
+ // Object is the base model of PlannerChecklistItems
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerDeltaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerDeltaModel.go
new file mode 100644
index 00000000..f038c164
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerDeltaModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerDelta undocumented
+type PlannerDelta struct {
+ // Entity is the base model of PlannerDelta
+ Entity
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerDeltaRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerDeltaRequest.go
new file mode 100644
index 00000000..e8a6b764
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerDeltaRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerExternalReferenceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerExternalReferenceModel.go
new file mode 100644
index 00000000..4bcf51a2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerExternalReferenceModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerExternalReferencesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerExternalReferencesModel.go
new file mode 100644
index 00000000..b61417fb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerExternalReferencesModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerExternalReferences undocumented
+type PlannerExternalReferences struct {
+ // Object is the base model of PlannerExternalReferences
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerFavoritePlanReferenceCollectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerFavoritePlanReferenceCollectionModel.go
new file mode 100644
index 00000000..92c682b4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerFavoritePlanReferenceCollectionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerFavoritePlanReferenceCollection undocumented
+type PlannerFavoritePlanReferenceCollection struct {
+ // Object is the base model of PlannerFavoritePlanReferenceCollection
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerFavoritePlanReferenceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerFavoritePlanReferenceModel.go
new file mode 100644
index 00000000..3e1d40c7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerFavoritePlanReferenceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerGroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerGroupModel.go
new file mode 100644
index 00000000..408bb577
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerGroupModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerGroup undocumented
+type PlannerGroup struct {
+ // Entity is the base model of PlannerGroup
+ Entity
+ // Plans undocumented
+ Plans []PlannerPlan `json:"plans,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerGroupRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerGroupRequest.go
new file mode 100644
index 00000000..6b26f8e2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerGroupRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerPlan collection
+func (r *PlannerGroupPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerModel.go
new file mode 100644
index 00000000..7e751989
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerOrderHintsByAssigneeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerOrderHintsByAssigneeModel.go
new file mode 100644
index 00000000..9b389e97
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerOrderHintsByAssigneeModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerOrderHintsByAssignee undocumented
+type PlannerOrderHintsByAssignee struct {
+ // Object is the base model of PlannerOrderHintsByAssignee
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextCollectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextCollectionModel.go
new file mode 100644
index 00000000..a30ddcd0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextCollectionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerPlanContextCollection undocumented
+type PlannerPlanContextCollection struct {
+ // Object is the base model of PlannerPlanContextCollection
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextDetailsCollectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextDetailsCollectionModel.go
new file mode 100644
index 00000000..bde4cfed
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextDetailsCollectionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerPlanContextDetailsCollection undocumented
+type PlannerPlanContextDetailsCollection struct {
+ // Object is the base model of PlannerPlanContextDetailsCollection
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextDetailsModel.go
new file mode 100644
index 00000000..f3601cb8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextDetailsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerPlanContextDetails undocumented
+type PlannerPlanContextDetails struct {
+ // Object is the base model of PlannerPlanContextDetails
+ Object
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextModel.go
new file mode 100644
index 00000000..5fc6e1a0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanDetailsModel.go
new file mode 100644
index 00000000..25d5936f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanDetailsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanDetailsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanDetailsRequest.go
new file mode 100644
index 00000000..f68bf289
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanDetailsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanModel.go
new file mode 100644
index 00000000..9d1328da
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanRequest.go
new file mode 100644
index 00000000..8a0d52a1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerBucket collection
+func (r *PlannerPlanBucketsCollectionRequest) Get(ctx context.Context) ([]PlannerBucket, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerTask collection
+func (r *PlannerPlanTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPreviewTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPreviewTypeEnum.go
new file mode 100644
index 00000000..4782c785
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPreviewTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerPreviewType undocumented
+type PlannerPreviewType int
+
+const (
+ // PlannerPreviewTypeVAutomatic undocumented
+ PlannerPreviewTypeVAutomatic PlannerPreviewType = 0
+ // PlannerPreviewTypeVNoPreview undocumented
+ PlannerPreviewTypeVNoPreview PlannerPreviewType = 1
+ // PlannerPreviewTypeVChecklist undocumented
+ PlannerPreviewTypeVChecklist PlannerPreviewType = 2
+ // PlannerPreviewTypeVDescription undocumented
+ PlannerPreviewTypeVDescription PlannerPreviewType = 3
+ // PlannerPreviewTypeVReference undocumented
+ PlannerPreviewTypeVReference PlannerPreviewType = 4
+)
+
+// PlannerPreviewTypePAutomatic returns a pointer to PlannerPreviewTypeVAutomatic
+func PlannerPreviewTypePAutomatic() *PlannerPreviewType {
+ v := PlannerPreviewTypeVAutomatic
+ return &v
+}
+
+// PlannerPreviewTypePNoPreview returns a pointer to PlannerPreviewTypeVNoPreview
+func PlannerPreviewTypePNoPreview() *PlannerPreviewType {
+ v := PlannerPreviewTypeVNoPreview
+ return &v
+}
+
+// PlannerPreviewTypePChecklist returns a pointer to PlannerPreviewTypeVChecklist
+func PlannerPreviewTypePChecklist() *PlannerPreviewType {
+ v := PlannerPreviewTypeVChecklist
+ return &v
+}
+
+// PlannerPreviewTypePDescription returns a pointer to PlannerPreviewTypeVDescription
+func PlannerPreviewTypePDescription() *PlannerPreviewType {
+ v := PlannerPreviewTypeVDescription
+ return &v
+}
+
+// PlannerPreviewTypePReference returns a pointer to PlannerPreviewTypeVReference
+func PlannerPreviewTypePReference() *PlannerPreviewType {
+ v := PlannerPreviewTypeVReference
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatModel.go
new file mode 100644
index 00000000..254cfbd2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerProgressTaskBoardTaskFormat undocumented
+type PlannerProgressTaskBoardTaskFormat struct {
+ // PlannerDelta is the base model of PlannerProgressTaskBoardTaskFormat
+ PlannerDelta
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatRequest.go
new file mode 100644
index 00000000..2f9b99a0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerRecentPlanReferenceCollectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerRecentPlanReferenceCollectionModel.go
new file mode 100644
index 00000000..6ee5a020
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerRecentPlanReferenceCollectionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerRecentPlanReferenceCollection undocumented
+type PlannerRecentPlanReferenceCollection struct {
+ // Object is the base model of PlannerRecentPlanReferenceCollection
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerRecentPlanReferenceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerRecentPlanReferenceModel.go
new file mode 100644
index 00000000..bf35ed91
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerRecentPlanReferenceModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerRequest.go
new file mode 100644
index 00000000..1d666b2f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerBucket collection
+func (r *PlannerBucketsCollectionRequest) Get(ctx context.Context) ([]PlannerBucket, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerPlan collection
+func (r *PlannerPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerTask collection
+func (r *PlannerTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskDetailsModel.go
new file mode 100644
index 00000000..bb8f8142
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskDetailsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskDetailsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskDetailsRequest.go
new file mode 100644
index 00000000..0999a42f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskDetailsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskModel.go
new file mode 100644
index 00000000..9fc16b19
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskModel.go
@@ -0,0 +1,61 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskRequest.go
new file mode 100644
index 00000000..fed430e8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskRequest.go
@@ -0,0 +1,66 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserIDsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserIDsModel.go
new file mode 100644
index 00000000..1853ce12
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserIDsModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerUserIDs undocumented
+type PlannerUserIDs struct {
+ // Object is the base model of PlannerUserIDs
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserModel.go
new file mode 100644
index 00000000..0d7d79ac
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserRequest.go
new file mode 100644
index 00000000..17a765a9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserRequest.go
@@ -0,0 +1,515 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerDelta collection
+func (r *PlannerUserAllCollectionRequest) Get(ctx context.Context) ([]PlannerDelta, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerPlan collection
+func (r *PlannerUserFavoritePlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerPlan collection
+func (r *PlannerUserPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerPlan collection
+func (r *PlannerUserRecentPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerTask collection
+func (r *PlannerUserTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/PlatformEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlatformEnum.go
new file mode 100644
index 00000000..72d725e2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlatformEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Platform undocumented
+type Platform int
+
+const (
+ // PlatformVUnknown undocumented
+ PlatformVUnknown Platform = 0
+ // PlatformVIOS undocumented
+ PlatformVIOS Platform = 1
+ // PlatformVAndroid undocumented
+ PlatformVAndroid Platform = 2
+ // PlatformVWindows undocumented
+ PlatformVWindows Platform = 3
+ // PlatformVWindowsMobile undocumented
+ PlatformVWindowsMobile Platform = 4
+ // PlatformVMacOS undocumented
+ PlatformVMacOS Platform = 5
+)
+
+// PlatformPUnknown returns a pointer to PlatformVUnknown
+func PlatformPUnknown() *Platform {
+ v := PlatformVUnknown
+ return &v
+}
+
+// PlatformPIOS returns a pointer to PlatformVIOS
+func PlatformPIOS() *Platform {
+ v := PlatformVIOS
+ return &v
+}
+
+// PlatformPAndroid returns a pointer to PlatformVAndroid
+func PlatformPAndroid() *Platform {
+ v := PlatformVAndroid
+ return &v
+}
+
+// PlatformPWindows returns a pointer to PlatformVWindows
+func PlatformPWindows() *Platform {
+ v := PlatformVWindows
+ return &v
+}
+
+// PlatformPWindowsMobile returns a pointer to PlatformVWindowsMobile
+func PlatformPWindowsMobile() *Platform {
+ v := PlatformVWindowsMobile
+ return &v
+}
+
+// PlatformPMacOS returns a pointer to PlatformVMacOS
+func PlatformPMacOS() *Platform {
+ v := PlatformVMacOS
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlayPromptCompletionReasonEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlayPromptCompletionReasonEnum.go
new file mode 100644
index 00000000..13762fe9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlayPromptCompletionReasonEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlayPromptCompletionReason undocumented
+type PlayPromptCompletionReason int
+
+const (
+ // PlayPromptCompletionReasonVUnknown undocumented
+ PlayPromptCompletionReasonVUnknown PlayPromptCompletionReason = 0
+ // PlayPromptCompletionReasonVCompletedSuccessfully undocumented
+ PlayPromptCompletionReasonVCompletedSuccessfully PlayPromptCompletionReason = 1
+ // PlayPromptCompletionReasonVMediaOperationCanceled undocumented
+ PlayPromptCompletionReasonVMediaOperationCanceled PlayPromptCompletionReason = 2
+ // PlayPromptCompletionReasonVUnknownFutureValue undocumented
+ PlayPromptCompletionReasonVUnknownFutureValue PlayPromptCompletionReason = 3
+)
+
+// PlayPromptCompletionReasonPUnknown returns a pointer to PlayPromptCompletionReasonVUnknown
+func PlayPromptCompletionReasonPUnknown() *PlayPromptCompletionReason {
+ v := PlayPromptCompletionReasonVUnknown
+ return &v
+}
+
+// PlayPromptCompletionReasonPCompletedSuccessfully returns a pointer to PlayPromptCompletionReasonVCompletedSuccessfully
+func PlayPromptCompletionReasonPCompletedSuccessfully() *PlayPromptCompletionReason {
+ v := PlayPromptCompletionReasonVCompletedSuccessfully
+ return &v
+}
+
+// PlayPromptCompletionReasonPMediaOperationCanceled returns a pointer to PlayPromptCompletionReasonVMediaOperationCanceled
+func PlayPromptCompletionReasonPMediaOperationCanceled() *PlayPromptCompletionReason {
+ v := PlayPromptCompletionReasonVMediaOperationCanceled
+ return &v
+}
+
+// PlayPromptCompletionReasonPUnknownFutureValue returns a pointer to PlayPromptCompletionReasonVUnknownFutureValue
+func PlayPromptCompletionReasonPUnknownFutureValue() *PlayPromptCompletionReason {
+ v := PlayPromptCompletionReasonVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlayPromptOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlayPromptOperationModel.go
new file mode 100644
index 00000000..146be3eb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PlayPromptOperationModel.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/matterbridge/msgraph.go/beta/PolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PolicyModel.go
new file mode 100644
index 00000000..ff972708
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PolicyModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PolicyPlatformTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PolicyPlatformTypeEnum.go
new file mode 100644
index 00000000..b5fde1bc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PolicyPlatformTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PolicyPlatformType undocumented
+type PolicyPlatformType int
+
+const (
+ // PolicyPlatformTypeVAndroid undocumented
+ PolicyPlatformTypeVAndroid PolicyPlatformType = 0
+ // PolicyPlatformTypeVAndroidForWork undocumented
+ PolicyPlatformTypeVAndroidForWork PolicyPlatformType = 1
+ // PolicyPlatformTypeVIOS undocumented
+ PolicyPlatformTypeVIOS PolicyPlatformType = 2
+ // PolicyPlatformTypeVMacOS undocumented
+ PolicyPlatformTypeVMacOS PolicyPlatformType = 3
+ // PolicyPlatformTypeVWindowsPhone81 undocumented
+ PolicyPlatformTypeVWindowsPhone81 PolicyPlatformType = 4
+ // PolicyPlatformTypeVWindows81AndLater undocumented
+ PolicyPlatformTypeVWindows81AndLater PolicyPlatformType = 5
+ // PolicyPlatformTypeVWindows10AndLater undocumented
+ PolicyPlatformTypeVWindows10AndLater PolicyPlatformType = 6
+ // PolicyPlatformTypeVAndroidWorkProfile undocumented
+ PolicyPlatformTypeVAndroidWorkProfile PolicyPlatformType = 7
+ // PolicyPlatformTypeVAll undocumented
+ PolicyPlatformTypeVAll PolicyPlatformType = 100
+)
+
+// PolicyPlatformTypePAndroid returns a pointer to PolicyPlatformTypeVAndroid
+func PolicyPlatformTypePAndroid() *PolicyPlatformType {
+ v := PolicyPlatformTypeVAndroid
+ return &v
+}
+
+// PolicyPlatformTypePAndroidForWork returns a pointer to PolicyPlatformTypeVAndroidForWork
+func PolicyPlatformTypePAndroidForWork() *PolicyPlatformType {
+ v := PolicyPlatformTypeVAndroidForWork
+ return &v
+}
+
+// PolicyPlatformTypePIOS returns a pointer to PolicyPlatformTypeVIOS
+func PolicyPlatformTypePIOS() *PolicyPlatformType {
+ v := PolicyPlatformTypeVIOS
+ return &v
+}
+
+// PolicyPlatformTypePMacOS returns a pointer to PolicyPlatformTypeVMacOS
+func PolicyPlatformTypePMacOS() *PolicyPlatformType {
+ v := PolicyPlatformTypeVMacOS
+ return &v
+}
+
+// PolicyPlatformTypePWindowsPhone81 returns a pointer to PolicyPlatformTypeVWindowsPhone81
+func PolicyPlatformTypePWindowsPhone81() *PolicyPlatformType {
+ v := PolicyPlatformTypeVWindowsPhone81
+ return &v
+}
+
+// PolicyPlatformTypePWindows81AndLater returns a pointer to PolicyPlatformTypeVWindows81AndLater
+func PolicyPlatformTypePWindows81AndLater() *PolicyPlatformType {
+ v := PolicyPlatformTypeVWindows81AndLater
+ return &v
+}
+
+// PolicyPlatformTypePWindows10AndLater returns a pointer to PolicyPlatformTypeVWindows10AndLater
+func PolicyPlatformTypePWindows10AndLater() *PolicyPlatformType {
+ v := PolicyPlatformTypeVWindows10AndLater
+ return &v
+}
+
+// PolicyPlatformTypePAndroidWorkProfile returns a pointer to PolicyPlatformTypeVAndroidWorkProfile
+func PolicyPlatformTypePAndroidWorkProfile() *PolicyPlatformType {
+ v := PolicyPlatformTypeVAndroidWorkProfile
+ return &v
+}
+
+// PolicyPlatformTypePAll returns a pointer to PolicyPlatformTypeVAll
+func PolicyPlatformTypePAll() *PolicyPlatformType {
+ v := PolicyPlatformTypeVAll
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PolicyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PolicyRequest.go
new file mode 100644
index 00000000..fe336da7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PolicyRequest.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/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *PolicyAppliesToCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAction.go
new file mode 100644
index 00000000..8f0e9145
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAction.go
@@ -0,0 +1,138 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]PolicySet, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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/matterbridge/msgraph.go/beta/PolicySetAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAssignmentModel.go
new file mode 100644
index 00000000..f3b19e58
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAssignmentRequest.go
new file mode 100644
index 00000000..dcc5577a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetItemModel.go
new file mode 100644
index 00000000..c818df15
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetItemModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/PolicySetItemRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetItemRequest.go
new file mode 100644
index 00000000..2704a8e2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetItemRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetModel.go
new file mode 100644
index 00000000..82ec4a69
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetRequest.go
new file mode 100644
index 00000000..d4f9adc9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PolicySetAssignment collection
+func (r *PolicySetAssignmentsCollectionRequest) Get(ctx context.Context) ([]PolicySetAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PolicySetItem collection
+func (r *PolicySetItemsCollectionRequest) Get(ctx context.Context) ([]PolicySetItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/PolicySetStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetStatusEnum.go
new file mode 100644
index 00000000..02651e68
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PolicySetStatus undocumented
+type PolicySetStatus int
+
+const (
+ // PolicySetStatusVUnknown undocumented
+ PolicySetStatusVUnknown PolicySetStatus = 0
+ // PolicySetStatusVValidating undocumented
+ PolicySetStatusVValidating PolicySetStatus = 1
+ // PolicySetStatusVPartialSuccess undocumented
+ PolicySetStatusVPartialSuccess PolicySetStatus = 2
+ // PolicySetStatusVSuccess undocumented
+ PolicySetStatusVSuccess PolicySetStatus = 3
+ // PolicySetStatusVError undocumented
+ PolicySetStatusVError PolicySetStatus = 4
+ // PolicySetStatusVNotAssigned undocumented
+ PolicySetStatusVNotAssigned PolicySetStatus = 5
+)
+
+// PolicySetStatusPUnknown returns a pointer to PolicySetStatusVUnknown
+func PolicySetStatusPUnknown() *PolicySetStatus {
+ v := PolicySetStatusVUnknown
+ return &v
+}
+
+// PolicySetStatusPValidating returns a pointer to PolicySetStatusVValidating
+func PolicySetStatusPValidating() *PolicySetStatus {
+ v := PolicySetStatusVValidating
+ return &v
+}
+
+// PolicySetStatusPPartialSuccess returns a pointer to PolicySetStatusVPartialSuccess
+func PolicySetStatusPPartialSuccess() *PolicySetStatus {
+ v := PolicySetStatusVPartialSuccess
+ return &v
+}
+
+// PolicySetStatusPSuccess returns a pointer to PolicySetStatusVSuccess
+func PolicySetStatusPSuccess() *PolicySetStatus {
+ v := PolicySetStatusVSuccess
+ return &v
+}
+
+// PolicySetStatusPError returns a pointer to PolicySetStatusVError
+func PolicySetStatusPError() *PolicySetStatus {
+ v := PolicySetStatusVError
+ return &v
+}
+
+// PolicySetStatusPNotAssigned returns a pointer to PolicySetStatusVNotAssigned
+func PolicySetStatusPNotAssigned() *PolicySetStatus {
+ v := PolicySetStatusVNotAssigned
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PositionDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PositionDetailModel.go
new file mode 100644
index 00000000..589658f7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PositionDetailModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"endMonthYear,omitempty"`
+ // JobTitle undocumented
+ JobTitle *string `json:"jobTitle,omitempty"`
+ // Role undocumented
+ Role *string `json:"role,omitempty"`
+ // StartMonthYear undocumented
+ StartMonthYear *time.Time `json:"startMonthYear,omitempty"`
+ // Summary undocumented
+ Summary *string `json:"summary,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PostAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/PostAction.go
new file mode 100644
index 00000000..125be755
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PostAction.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/PostModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PostModel.go
new file mode 100644
index 00000000..b8910473
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PostModel.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/matterbridge/msgraph.go/beta/PostRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PostRequest.go
new file mode 100644
index 00000000..b2de3455
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PostRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Attachment collection
+func (r *PostAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *PostExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Mention collection
+func (r *PostMentionsCollectionRequest) Get(ctx context.Context) ([]Mention, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *PostMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *PostSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/PostalAddressTypeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PostalAddressTypeModel.go
new file mode 100644
index 00000000..984c6aec
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PostalAddressTypeModel.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/matterbridge/msgraph.go/beta/PowerActionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PowerActionTypeEnum.go
new file mode 100644
index 00000000..388fe658
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PowerActionTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PowerActionType undocumented
+type PowerActionType int
+
+const (
+ // PowerActionTypeVNotConfigured undocumented
+ PowerActionTypeVNotConfigured PowerActionType = 0
+ // PowerActionTypeVNoAction undocumented
+ PowerActionTypeVNoAction PowerActionType = 1
+ // PowerActionTypeVSleep undocumented
+ PowerActionTypeVSleep PowerActionType = 2
+ // PowerActionTypeVHibernate undocumented
+ PowerActionTypeVHibernate PowerActionType = 3
+ // PowerActionTypeVShutdown undocumented
+ PowerActionTypeVShutdown PowerActionType = 4
+)
+
+// PowerActionTypePNotConfigured returns a pointer to PowerActionTypeVNotConfigured
+func PowerActionTypePNotConfigured() *PowerActionType {
+ v := PowerActionTypeVNotConfigured
+ return &v
+}
+
+// PowerActionTypePNoAction returns a pointer to PowerActionTypeVNoAction
+func PowerActionTypePNoAction() *PowerActionType {
+ v := PowerActionTypeVNoAction
+ return &v
+}
+
+// PowerActionTypePSleep returns a pointer to PowerActionTypeVSleep
+func PowerActionTypePSleep() *PowerActionType {
+ v := PowerActionTypeVSleep
+ return &v
+}
+
+// PowerActionTypePHibernate returns a pointer to PowerActionTypeVHibernate
+func PowerActionTypePHibernate() *PowerActionType {
+ v := PowerActionTypeVHibernate
+ return &v
+}
+
+// PowerActionTypePShutdown returns a pointer to PowerActionTypeVShutdown
+func PowerActionTypePShutdown() *PowerActionType {
+ v := PowerActionTypeVShutdown
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PreAuthorizedApplicationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PreAuthorizedApplicationModel.go
new file mode 100644
index 00000000..57bfb8e4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PreAuthorizedApplicationModel.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/matterbridge/msgraph.go/beta/PrereleaseFeaturesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrereleaseFeaturesEnum.go
new file mode 100644
index 00000000..6f6baaae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrereleaseFeaturesEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PrereleaseFeatures undocumented
+type PrereleaseFeatures int
+
+const (
+ // PrereleaseFeaturesVUserDefined undocumented
+ PrereleaseFeaturesVUserDefined PrereleaseFeatures = 0
+ // PrereleaseFeaturesVSettingsOnly undocumented
+ PrereleaseFeaturesVSettingsOnly PrereleaseFeatures = 1
+ // PrereleaseFeaturesVSettingsAndExperimentations undocumented
+ PrereleaseFeaturesVSettingsAndExperimentations PrereleaseFeatures = 2
+ // PrereleaseFeaturesVNotAllowed undocumented
+ PrereleaseFeaturesVNotAllowed PrereleaseFeatures = 3
+)
+
+// PrereleaseFeaturesPUserDefined returns a pointer to PrereleaseFeaturesVUserDefined
+func PrereleaseFeaturesPUserDefined() *PrereleaseFeatures {
+ v := PrereleaseFeaturesVUserDefined
+ return &v
+}
+
+// PrereleaseFeaturesPSettingsOnly returns a pointer to PrereleaseFeaturesVSettingsOnly
+func PrereleaseFeaturesPSettingsOnly() *PrereleaseFeatures {
+ v := PrereleaseFeaturesVSettingsOnly
+ return &v
+}
+
+// PrereleaseFeaturesPSettingsAndExperimentations returns a pointer to PrereleaseFeaturesVSettingsAndExperimentations
+func PrereleaseFeaturesPSettingsAndExperimentations() *PrereleaseFeatures {
+ v := PrereleaseFeaturesVSettingsAndExperimentations
+ return &v
+}
+
+// PrereleaseFeaturesPNotAllowed returns a pointer to PrereleaseFeaturesVNotAllowed
+func PrereleaseFeaturesPNotAllowed() *PrereleaseFeatures {
+ v := PrereleaseFeaturesVNotAllowed
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PresenceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PresenceModel.go
new file mode 100644
index 00000000..1d39d651
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PresenceModel.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/matterbridge/msgraph.go/beta/PresenceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PresenceRequest.go
new file mode 100644
index 00000000..5363317c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PresenceRequest.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/matterbridge/msgraph.go/beta/PriorityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PriorityEnum.go
new file mode 100644
index 00000000..5c323c9a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PriorityEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Priority undocumented
+type Priority int
+
+const (
+ // PriorityVNone undocumented
+ PriorityVNone Priority = 0
+ // PriorityVHigh undocumented
+ PriorityVHigh Priority = 1
+ // PriorityVLow undocumented
+ PriorityVLow Priority = 2
+)
+
+// PriorityPNone returns a pointer to PriorityVNone
+func PriorityPNone() *Priority {
+ v := PriorityVNone
+ return &v
+}
+
+// PriorityPHigh returns a pointer to PriorityVHigh
+func PriorityPHigh() *Priority {
+ v := PriorityVHigh
+ return &v
+}
+
+// PriorityPLow returns a pointer to PriorityVLow
+func PriorityPLow() *Priority {
+ v := PriorityVLow
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivacyProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivacyProfileModel.go
new file mode 100644
index 00000000..8450ffbd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivacyProfileModel.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/matterbridge/msgraph.go/beta/PrivilegedAccessModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedAccessModel.go
new file mode 100644
index 00000000..e82537ab
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedAccessModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedAccessRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedAccessRequest.go
new file mode 100644
index 00000000..cdea628c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedAccessRequest.go
@@ -0,0 +1,515 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceResource collection
+func (r *PrivilegedAccessResourcesCollectionRequest) Get(ctx context.Context) ([]GovernanceResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleAssignmentRequestObject collection
+func (r *PrivilegedAccessRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleAssignment collection
+func (r *PrivilegedAccessRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleDefinition collection
+func (r *PrivilegedAccessRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleSetting collection
+func (r *PrivilegedAccessRoleSettingsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleSetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedApprovalModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedApprovalModel.go
new file mode 100644
index 00000000..adc1038a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedApprovalModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedApprovalRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedApprovalRequest.go
new file mode 100644
index 00000000..2a03bf1d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedApprovalRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedOperationEventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedOperationEventModel.go
new file mode 100644
index 00000000..c4a80273
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedOperationEventModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedOperationEventRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedOperationEventRequest.go
new file mode 100644
index 00000000..2ff8fbbc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedOperationEventRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAction.go
new file mode 100644
index 00000000..c5c745fa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAction.go
@@ -0,0 +1,75 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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 {
+}
+
+//
+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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentAction.go
new file mode 100644
index 00000000..662851b1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentAction.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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 {
+}
+
+//
+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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentModel.go
new file mode 100644
index 00000000..a151a71d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequest.go
new file mode 100644
index 00000000..a52f9513
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// RoleInfo is navigation property
+func (b *PrivilegedRoleAssignmentRequestBuilder) RoleInfo() *PrivilegedRoleRequestBuilder {
+ bb := &PrivilegedRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleInfo"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectAction.go
new file mode 100644
index 00000000..c639566a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectAction.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PrivilegedRoleAssignmentRequestObjectCancelRequestParameter undocumented
+type PrivilegedRoleAssignmentRequestObjectCancelRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectModel.go
new file mode 100644
index 00000000..523be52b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectRequest.go
new file mode 100644
index 00000000..5d27da07
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/PrivilegedRoleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleModel.go
new file mode 100644
index 00000000..fd66f0bd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleRequest.go
new file mode 100644
index 00000000..51fe960f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleRequest.go
@@ -0,0 +1,153 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedRoleAssignment collection
+func (r *PrivilegedRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]PrivilegedRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSettingsModel.go
new file mode 100644
index 00000000..07aefeca
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSettingsModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PrivilegedRoleSettings undocumented
+type PrivilegedRoleSettings struct {
+ // Entity is the base model of PrivilegedRoleSettings
+ Entity
+ // ApproverIDs undocumented
+ ApproverIDs []string `json:"approverIds,omitempty"`
+ // MinElevationDuration undocumented
+ MinElevationDuration *time.Duration `json:"minElevationDuration,omitempty"`
+ // MaxElavationDuration undocumented
+ MaxElavationDuration *time.Duration `json:"maxElavationDuration,omitempty"`
+ // ElevationDuration undocumented
+ ElevationDuration *time.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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSettingsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSettingsRequest.go
new file mode 100644
index 00000000..a7f94aa1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSummaryModel.go
new file mode 100644
index 00000000..ea68d4ad
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSummaryModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSummaryRequest.go
new file mode 100644
index 00000000..bec977bc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusAction.go
new file mode 100644
index 00000000..fa98ee35
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusAction.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PrivilegedSignupStatusCollectionSignUpRequestParameter undocumented
+type PrivilegedSignupStatusCollectionSignUpRequestParameter struct {
+}
+
+// PrivilegedSignupStatusCollectionCompleteSetupRequestParameter undocumented
+type PrivilegedSignupStatusCollectionCompleteSetupRequestParameter struct {
+ // TenantSetupInfo undocumented
+ TenantSetupInfo *TenantSetupInfo `json:"tenantSetupInfo,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusModel.go
new file mode 100644
index 00000000..476b1e06
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/PrivilegedSignupStatusRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusRequest.go
new file mode 100644
index 00000000..a5b283ee
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProcessIntegrityLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProcessIntegrityLevelEnum.go
new file mode 100644
index 00000000..a5aa8ba5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProcessIntegrityLevelEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProcessIntegrityLevel undocumented
+type ProcessIntegrityLevel int
+
+const (
+ // ProcessIntegrityLevelVUnknown undocumented
+ ProcessIntegrityLevelVUnknown ProcessIntegrityLevel = 0
+ // ProcessIntegrityLevelVUntrusted undocumented
+ ProcessIntegrityLevelVUntrusted ProcessIntegrityLevel = 1
+ // ProcessIntegrityLevelVLow undocumented
+ ProcessIntegrityLevelVLow ProcessIntegrityLevel = 2
+ // ProcessIntegrityLevelVMedium undocumented
+ ProcessIntegrityLevelVMedium ProcessIntegrityLevel = 3
+ // ProcessIntegrityLevelVHigh undocumented
+ ProcessIntegrityLevelVHigh ProcessIntegrityLevel = 4
+ // ProcessIntegrityLevelVSystem undocumented
+ ProcessIntegrityLevelVSystem ProcessIntegrityLevel = 5
+ // ProcessIntegrityLevelVUnknownFutureValue undocumented
+ ProcessIntegrityLevelVUnknownFutureValue ProcessIntegrityLevel = 127
+)
+
+// ProcessIntegrityLevelPUnknown returns a pointer to ProcessIntegrityLevelVUnknown
+func ProcessIntegrityLevelPUnknown() *ProcessIntegrityLevel {
+ v := ProcessIntegrityLevelVUnknown
+ return &v
+}
+
+// ProcessIntegrityLevelPUntrusted returns a pointer to ProcessIntegrityLevelVUntrusted
+func ProcessIntegrityLevelPUntrusted() *ProcessIntegrityLevel {
+ v := ProcessIntegrityLevelVUntrusted
+ return &v
+}
+
+// ProcessIntegrityLevelPLow returns a pointer to ProcessIntegrityLevelVLow
+func ProcessIntegrityLevelPLow() *ProcessIntegrityLevel {
+ v := ProcessIntegrityLevelVLow
+ return &v
+}
+
+// ProcessIntegrityLevelPMedium returns a pointer to ProcessIntegrityLevelVMedium
+func ProcessIntegrityLevelPMedium() *ProcessIntegrityLevel {
+ v := ProcessIntegrityLevelVMedium
+ return &v
+}
+
+// ProcessIntegrityLevelPHigh returns a pointer to ProcessIntegrityLevelVHigh
+func ProcessIntegrityLevelPHigh() *ProcessIntegrityLevel {
+ v := ProcessIntegrityLevelVHigh
+ return &v
+}
+
+// ProcessIntegrityLevelPSystem returns a pointer to ProcessIntegrityLevelVSystem
+func ProcessIntegrityLevelPSystem() *ProcessIntegrityLevel {
+ v := ProcessIntegrityLevelVSystem
+ return &v
+}
+
+// ProcessIntegrityLevelPUnknownFutureValue returns a pointer to ProcessIntegrityLevelVUnknownFutureValue
+func ProcessIntegrityLevelPUnknownFutureValue() *ProcessIntegrityLevel {
+ v := ProcessIntegrityLevelVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProcessModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProcessModel.go
new file mode 100644
index 00000000..9ce88c9d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProcessModel.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/matterbridge/msgraph.go/beta/ProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProfileModel.go
new file mode 100644
index 00000000..b621d95e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProfileModel.go
@@ -0,0 +1,35 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProfilePhotoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProfilePhotoModel.go
new file mode 100644
index 00000000..df22c7f5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProfilePhotoModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ProfilePhotoRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProfilePhotoRequest.go
new file mode 100644
index 00000000..1ea4be6d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProfilePhotoRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/ProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProfileRequest.go
new file mode 100644
index 00000000..ee6e8e85
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProfileRequest.go
@@ -0,0 +1,1267 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserAccountInformation collection
+func (r *ProfileAccountCollectionRequest) Get(ctx context.Context) ([]UserAccountInformation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PersonAnniversary collection
+func (r *ProfileAnniversariesCollectionRequest) Get(ctx context.Context) ([]PersonAnniversary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationalActivity collection
+func (r *ProfileEducationalActivitiesCollectionRequest) Get(ctx context.Context) ([]EducationalActivity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemEmail collection
+func (r *ProfileEmailsCollectionRequest) Get(ctx context.Context) ([]ItemEmail, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PersonInterest collection
+func (r *ProfileInterestsCollectionRequest) Get(ctx context.Context) ([]PersonInterest, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for LanguageProficiency collection
+func (r *ProfileLanguagesCollectionRequest) Get(ctx context.Context) ([]LanguageProficiency, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PersonName collection
+func (r *ProfileNamesCollectionRequest) Get(ctx context.Context) ([]PersonName, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemPhone collection
+func (r *ProfilePhonesCollectionRequest) Get(ctx context.Context) ([]ItemPhone, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkPosition collection
+func (r *ProfilePositionsCollectionRequest) Get(ctx context.Context) ([]WorkPosition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProjectParticipation collection
+func (r *ProfileProjectsCollectionRequest) Get(ctx context.Context) ([]ProjectParticipation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SkillProficiency collection
+func (r *ProfileSkillsCollectionRequest) Get(ctx context.Context) ([]SkillProficiency, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WebAccount collection
+func (r *ProfileWebAccountsCollectionRequest) Get(ctx context.Context) ([]WebAccount, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PersonWebsite collection
+func (r *ProfileWebsitesCollectionRequest) Get(ctx context.Context) ([]PersonWebsite, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ProgramControlModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlModel.go
new file mode 100644
index 00000000..d94bda89
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlRequest.go
new file mode 100644
index 00000000..a6683bbc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/ProgramControlTypeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlTypeModel.go
new file mode 100644
index 00000000..bfec5517
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlTypeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlTypeRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlTypeRequest.go
new file mode 100644
index 00000000..a7c2704a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlTypeRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/ProgramModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProgramModel.go
new file mode 100644
index 00000000..bfc6f75c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProgramModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProgramRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProgramRequest.go
new file mode 100644
index 00000000..2ebd9fd6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProgramRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProgramControl collection
+func (r *ProgramControlsCollectionRequest) Get(ctx context.Context) ([]ProgramControl, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProgramResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProgramResourceModel.go
new file mode 100644
index 00000000..f7948705
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProgramResourceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ProjectParticipationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProjectParticipationModel.go
new file mode 100644
index 00000000..1bf4f4ff
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProjectParticipationModel.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/matterbridge/msgraph.go/beta/ProjectParticipationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProjectParticipationRequest.go
new file mode 100644
index 00000000..ab6911bc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProjectParticipationRequest.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/matterbridge/msgraph.go/beta/PromptModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PromptModel.go
new file mode 100644
index 00000000..6a6e9440
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PromptModel.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/matterbridge/msgraph.go/beta/PropertiesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PropertiesModel.go
new file mode 100644
index 00000000..3d6e6c6e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PropertiesModel.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/matterbridge/msgraph.go/beta/PropertyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PropertyModel.go
new file mode 100644
index 00000000..d4ae2730
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PropertyModel.go
@@ -0,0 +1,19 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PropertyToEvaluateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PropertyToEvaluateModel.go
new file mode 100644
index 00000000..f8906dca
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PropertyToEvaluateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/PropertyTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PropertyTypeEnum.go
new file mode 100644
index 00000000..2707b260
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PropertyTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PropertyType undocumented
+type PropertyType int
+
+const (
+ // PropertyTypeVString undocumented
+ PropertyTypeVString PropertyType = 0
+ // PropertyTypeVInt64 undocumented
+ PropertyTypeVInt64 PropertyType = 1
+ // PropertyTypeVDouble undocumented
+ PropertyTypeVDouble PropertyType = 2
+ // PropertyTypeVDateTime undocumented
+ PropertyTypeVDateTime PropertyType = 3
+ // PropertyTypeVBoolean undocumented
+ PropertyTypeVBoolean PropertyType = 4
+ // PropertyTypeVStringCollection undocumented
+ PropertyTypeVStringCollection PropertyType = 5
+ // PropertyTypeVInt64Collection undocumented
+ PropertyTypeVInt64Collection PropertyType = 6
+ // PropertyTypeVDoubleCollection undocumented
+ PropertyTypeVDoubleCollection PropertyType = 7
+ // PropertyTypeVDateTimeCollection undocumented
+ PropertyTypeVDateTimeCollection PropertyType = 8
+)
+
+// PropertyTypePString returns a pointer to PropertyTypeVString
+func PropertyTypePString() *PropertyType {
+ v := PropertyTypeVString
+ return &v
+}
+
+// PropertyTypePInt64 returns a pointer to PropertyTypeVInt64
+func PropertyTypePInt64() *PropertyType {
+ v := PropertyTypeVInt64
+ return &v
+}
+
+// PropertyTypePDouble returns a pointer to PropertyTypeVDouble
+func PropertyTypePDouble() *PropertyType {
+ v := PropertyTypeVDouble
+ return &v
+}
+
+// PropertyTypePDateTime returns a pointer to PropertyTypeVDateTime
+func PropertyTypePDateTime() *PropertyType {
+ v := PropertyTypeVDateTime
+ return &v
+}
+
+// PropertyTypePBoolean returns a pointer to PropertyTypeVBoolean
+func PropertyTypePBoolean() *PropertyType {
+ v := PropertyTypeVBoolean
+ return &v
+}
+
+// PropertyTypePStringCollection returns a pointer to PropertyTypeVStringCollection
+func PropertyTypePStringCollection() *PropertyType {
+ v := PropertyTypeVStringCollection
+ return &v
+}
+
+// PropertyTypePInt64Collection returns a pointer to PropertyTypeVInt64Collection
+func PropertyTypePInt64Collection() *PropertyType {
+ v := PropertyTypeVInt64Collection
+ return &v
+}
+
+// PropertyTypePDoubleCollection returns a pointer to PropertyTypeVDoubleCollection
+func PropertyTypePDoubleCollection() *PropertyType {
+ v := PropertyTypeVDoubleCollection
+ return &v
+}
+
+// PropertyTypePDateTimeCollection returns a pointer to PropertyTypeVDateTimeCollection
+func PropertyTypePDateTimeCollection() *PropertyType {
+ v := PropertyTypeVDateTimeCollection
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProtectAdhocActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProtectAdhocActionModel.go
new file mode 100644
index 00000000..bfc90339
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProtectAdhocActionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProtectAdhocAction undocumented
+type ProtectAdhocAction struct {
+ // InformationProtectionAction is the base model of ProtectAdhocAction
+ InformationProtectionAction
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProtectByTemplateActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProtectByTemplateActionModel.go
new file mode 100644
index 00000000..0299a417
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProtectByTemplateActionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProtectByTemplateAction undocumented
+type ProtectByTemplateAction struct {
+ // InformationProtectionAction is the base model of ProtectByTemplateAction
+ InformationProtectionAction
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProtectDoNotForwardActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProtectDoNotForwardActionModel.go
new file mode 100644
index 00000000..f94f4057
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProtectDoNotForwardActionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProtectDoNotForwardAction undocumented
+type ProtectDoNotForwardAction struct {
+ // InformationProtectionAction is the base model of ProtectDoNotForwardAction
+ InformationProtectionAction
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProtectGroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProtectGroupModel.go
new file mode 100644
index 00000000..c4c7cb14
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProtectGroupModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProtectSiteModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProtectSiteModel.go
new file mode 100644
index 00000000..42fd96b2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProtectSiteModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ProviderTenantSettingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProviderTenantSettingModel.go
new file mode 100644
index 00000000..45e2d21c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProviderTenantSettingModel.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/matterbridge/msgraph.go/beta/ProviderTenantSettingRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProviderTenantSettingRequest.go
new file mode 100644
index 00000000..0425dcbb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProviderTenantSettingRequest.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/matterbridge/msgraph.go/beta/ProvisionedIdentityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisionedIdentityModel.go
new file mode 100644
index 00000000..dc97ccb8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisionedIdentityModel.go
@@ -0,0 +1,17 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProvisionedPlanModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisionedPlanModel.go
new file mode 100644
index 00000000..0faa7144
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisionedPlanModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ProvisioningObjectSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningObjectSummaryModel.go
new file mode 100644
index 00000000..ffb46326
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningObjectSummaryModel.go
@@ -0,0 +1,41 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningObjectSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningObjectSummaryRequest.go
new file mode 100644
index 00000000..e5bb5bde
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningObjectSummaryRequest.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/matterbridge/msgraph.go/beta/ProvisioningResultEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningResultEnum.go
new file mode 100644
index 00000000..4a5be3c2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningResultEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProvisioningResult undocumented
+type ProvisioningResult int
+
+const (
+ // ProvisioningResultVSuccess undocumented
+ ProvisioningResultVSuccess ProvisioningResult = 0
+ // ProvisioningResultVFailure undocumented
+ ProvisioningResultVFailure ProvisioningResult = 1
+ // ProvisioningResultVSkipped undocumented
+ ProvisioningResultVSkipped ProvisioningResult = 2
+ // ProvisioningResultVUnknownFutureValue undocumented
+ ProvisioningResultVUnknownFutureValue ProvisioningResult = 3
+)
+
+// ProvisioningResultPSuccess returns a pointer to ProvisioningResultVSuccess
+func ProvisioningResultPSuccess() *ProvisioningResult {
+ v := ProvisioningResultVSuccess
+ return &v
+}
+
+// ProvisioningResultPFailure returns a pointer to ProvisioningResultVFailure
+func ProvisioningResultPFailure() *ProvisioningResult {
+ v := ProvisioningResultVFailure
+ return &v
+}
+
+// ProvisioningResultPSkipped returns a pointer to ProvisioningResultVSkipped
+func ProvisioningResultPSkipped() *ProvisioningResult {
+ v := ProvisioningResultVSkipped
+ return &v
+}
+
+// ProvisioningResultPUnknownFutureValue returns a pointer to ProvisioningResultVUnknownFutureValue
+func ProvisioningResultPUnknownFutureValue() *ProvisioningResult {
+ v := ProvisioningResultVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningStepModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningStepModel.go
new file mode 100644
index 00000000..1cc0429f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningStepModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningStepTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningStepTypeEnum.go
new file mode 100644
index 00000000..2d6f7106
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningStepTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProvisioningStepType undocumented
+type ProvisioningStepType int
+
+const (
+ // ProvisioningStepTypeVImport undocumented
+ ProvisioningStepTypeVImport ProvisioningStepType = 0
+ // ProvisioningStepTypeVScoping undocumented
+ ProvisioningStepTypeVScoping ProvisioningStepType = 1
+ // ProvisioningStepTypeVMatching undocumented
+ ProvisioningStepTypeVMatching ProvisioningStepType = 2
+ // ProvisioningStepTypeVProcessing undocumented
+ ProvisioningStepTypeVProcessing ProvisioningStepType = 3
+ // ProvisioningStepTypeVReferenceResolution undocumented
+ ProvisioningStepTypeVReferenceResolution ProvisioningStepType = 4
+ // ProvisioningStepTypeVExport undocumented
+ ProvisioningStepTypeVExport ProvisioningStepType = 5
+ // ProvisioningStepTypeVUnknownFutureValue undocumented
+ ProvisioningStepTypeVUnknownFutureValue ProvisioningStepType = 6
+)
+
+// ProvisioningStepTypePImport returns a pointer to ProvisioningStepTypeVImport
+func ProvisioningStepTypePImport() *ProvisioningStepType {
+ v := ProvisioningStepTypeVImport
+ return &v
+}
+
+// ProvisioningStepTypePScoping returns a pointer to ProvisioningStepTypeVScoping
+func ProvisioningStepTypePScoping() *ProvisioningStepType {
+ v := ProvisioningStepTypeVScoping
+ return &v
+}
+
+// ProvisioningStepTypePMatching returns a pointer to ProvisioningStepTypeVMatching
+func ProvisioningStepTypePMatching() *ProvisioningStepType {
+ v := ProvisioningStepTypeVMatching
+ return &v
+}
+
+// ProvisioningStepTypePProcessing returns a pointer to ProvisioningStepTypeVProcessing
+func ProvisioningStepTypePProcessing() *ProvisioningStepType {
+ v := ProvisioningStepTypeVProcessing
+ return &v
+}
+
+// ProvisioningStepTypePReferenceResolution returns a pointer to ProvisioningStepTypeVReferenceResolution
+func ProvisioningStepTypePReferenceResolution() *ProvisioningStepType {
+ v := ProvisioningStepTypeVReferenceResolution
+ return &v
+}
+
+// ProvisioningStepTypePExport returns a pointer to ProvisioningStepTypeVExport
+func ProvisioningStepTypePExport() *ProvisioningStepType {
+ v := ProvisioningStepTypeVExport
+ return &v
+}
+
+// ProvisioningStepTypePUnknownFutureValue returns a pointer to ProvisioningStepTypeVUnknownFutureValue
+func ProvisioningStepTypePUnknownFutureValue() *ProvisioningStepType {
+ v := ProvisioningStepTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningSystemDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningSystemDetailsModel.go
new file mode 100644
index 00000000..4eb67341
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningSystemDetailsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ProxiedDomainModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProxiedDomainModel.go
new file mode 100644
index 00000000..77b6eaa1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ProxiedDomainModel.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/matterbridge/msgraph.go/beta/PublicClientApplicationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PublicClientApplicationModel.go
new file mode 100644
index 00000000..6bd8a9ce
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PublicClientApplicationModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorDetailModel.go
new file mode 100644
index 00000000..8923c930
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorDetailModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorModel.go
new file mode 100644
index 00000000..9262b433
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorResponseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorResponseModel.go
new file mode 100644
index 00000000..b7bd5c23
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorResponseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PublicErrorResponse undocumented
+type PublicErrorResponse struct {
+ // Object is the base model of PublicErrorResponse
+ Object
+ // Error undocumented
+ Error *PublicError `json:"error,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PublicInnerErrorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PublicInnerErrorModel.go
new file mode 100644
index 00000000..16bce035
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PublicInnerErrorModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/PublicationFacetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PublicationFacetModel.go
new file mode 100644
index 00000000..706baf5e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PublicationFacetModel.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/matterbridge/msgraph.go/beta/PublishedResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PublishedResourceModel.go
new file mode 100644
index 00000000..50c36732
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PublishedResourceModel.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/matterbridge/msgraph.go/beta/PublishedResourceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PublishedResourceRequest.go
new file mode 100644
index 00000000..43723a60
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PublishedResourceRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnPremisesAgentGroup collection
+func (r *PublishedResourceAgentGroupsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgentGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/PurchaseInvoiceAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceAction.go
new file mode 100644
index 00000000..d1a67162
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PurchaseInvoicePostRequestParameter undocumented
+type PurchaseInvoicePostRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/PurchaseInvoiceLineModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceLineModel.go
new file mode 100644
index 00000000..d989cfab
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceLineModel.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"expectedReceiptDate,omitempty"`
+ // Item undocumented
+ Item *Item `json:"item,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceLineRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceLineRequest.go
new file mode 100644
index 00000000..1b9002e4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceLineRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/PurchaseInvoiceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceModel.go
new file mode 100644
index 00000000..9293da66
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceModel.go
@@ -0,0 +1,69 @@
+// 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 *time.Time `json:"invoiceDate,omitempty"`
+ // DueDate undocumented
+ DueDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceRequest.go
new file mode 100644
index 00000000..3c21bb3a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceRequest.go
@@ -0,0 +1,153 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PurchaseInvoiceLine collection
+func (r *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]PurchaseInvoiceLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/QuarantineReasonEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/QuarantineReasonEnum.go
new file mode 100644
index 00000000..da581a9c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/QuarantineReasonEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// QuarantineReason undocumented
+type QuarantineReason int
+
+const (
+ // QuarantineReasonVEncounteredBaseEscrowThreshold undocumented
+ QuarantineReasonVEncounteredBaseEscrowThreshold QuarantineReason = 0
+ // QuarantineReasonVEncounteredTotalEscrowThreshold undocumented
+ QuarantineReasonVEncounteredTotalEscrowThreshold QuarantineReason = 1
+ // QuarantineReasonVEncounteredEscrowProportionThreshold undocumented
+ QuarantineReasonVEncounteredEscrowProportionThreshold QuarantineReason = 2
+ // QuarantineReasonVEncounteredQuarantineException undocumented
+ QuarantineReasonVEncounteredQuarantineException QuarantineReason = 4
+ // QuarantineReasonVUnknown undocumented
+ QuarantineReasonVUnknown QuarantineReason = 8
+ // QuarantineReasonVQuarantinedOnDemand undocumented
+ QuarantineReasonVQuarantinedOnDemand QuarantineReason = 16
+ // QuarantineReasonVTooManyDeletes undocumented
+ QuarantineReasonVTooManyDeletes QuarantineReason = 32
+)
+
+// QuarantineReasonPEncounteredBaseEscrowThreshold returns a pointer to QuarantineReasonVEncounteredBaseEscrowThreshold
+func QuarantineReasonPEncounteredBaseEscrowThreshold() *QuarantineReason {
+ v := QuarantineReasonVEncounteredBaseEscrowThreshold
+ return &v
+}
+
+// QuarantineReasonPEncounteredTotalEscrowThreshold returns a pointer to QuarantineReasonVEncounteredTotalEscrowThreshold
+func QuarantineReasonPEncounteredTotalEscrowThreshold() *QuarantineReason {
+ v := QuarantineReasonVEncounteredTotalEscrowThreshold
+ return &v
+}
+
+// QuarantineReasonPEncounteredEscrowProportionThreshold returns a pointer to QuarantineReasonVEncounteredEscrowProportionThreshold
+func QuarantineReasonPEncounteredEscrowProportionThreshold() *QuarantineReason {
+ v := QuarantineReasonVEncounteredEscrowProportionThreshold
+ return &v
+}
+
+// QuarantineReasonPEncounteredQuarantineException returns a pointer to QuarantineReasonVEncounteredQuarantineException
+func QuarantineReasonPEncounteredQuarantineException() *QuarantineReason {
+ v := QuarantineReasonVEncounteredQuarantineException
+ return &v
+}
+
+// QuarantineReasonPUnknown returns a pointer to QuarantineReasonVUnknown
+func QuarantineReasonPUnknown() *QuarantineReason {
+ v := QuarantineReasonVUnknown
+ return &v
+}
+
+// QuarantineReasonPQuarantinedOnDemand returns a pointer to QuarantineReasonVQuarantinedOnDemand
+func QuarantineReasonPQuarantinedOnDemand() *QuarantineReason {
+ v := QuarantineReasonVQuarantinedOnDemand
+ return &v
+}
+
+// QuarantineReasonPTooManyDeletes returns a pointer to QuarantineReasonVTooManyDeletes
+func QuarantineReasonPTooManyDeletes() *QuarantineReason {
+ v := QuarantineReasonVTooManyDeletes
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/QuotaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/QuotaModel.go
new file mode 100644
index 00000000..a9f5c006
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/QuotaModel.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/matterbridge/msgraph.go/beta/RankedEmailAddressModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RankedEmailAddressModel.go
new file mode 100644
index 00000000..624afb6b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RankedEmailAddressModel.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/matterbridge/msgraph.go/beta/RatingAppsTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingAppsTypeEnum.go
new file mode 100644
index 00000000..b70954f8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingAppsTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingAppsType undocumented
+type RatingAppsType int
+
+const (
+ // RatingAppsTypeVAllAllowed undocumented
+ RatingAppsTypeVAllAllowed RatingAppsType = 0
+ // RatingAppsTypeVAllBlocked undocumented
+ RatingAppsTypeVAllBlocked RatingAppsType = 1
+ // RatingAppsTypeVAgesAbove4 undocumented
+ RatingAppsTypeVAgesAbove4 RatingAppsType = 2
+ // RatingAppsTypeVAgesAbove9 undocumented
+ RatingAppsTypeVAgesAbove9 RatingAppsType = 3
+ // RatingAppsTypeVAgesAbove12 undocumented
+ RatingAppsTypeVAgesAbove12 RatingAppsType = 4
+ // RatingAppsTypeVAgesAbove17 undocumented
+ RatingAppsTypeVAgesAbove17 RatingAppsType = 5
+)
+
+// RatingAppsTypePAllAllowed returns a pointer to RatingAppsTypeVAllAllowed
+func RatingAppsTypePAllAllowed() *RatingAppsType {
+ v := RatingAppsTypeVAllAllowed
+ return &v
+}
+
+// RatingAppsTypePAllBlocked returns a pointer to RatingAppsTypeVAllBlocked
+func RatingAppsTypePAllBlocked() *RatingAppsType {
+ v := RatingAppsTypeVAllBlocked
+ return &v
+}
+
+// RatingAppsTypePAgesAbove4 returns a pointer to RatingAppsTypeVAgesAbove4
+func RatingAppsTypePAgesAbove4() *RatingAppsType {
+ v := RatingAppsTypeVAgesAbove4
+ return &v
+}
+
+// RatingAppsTypePAgesAbove9 returns a pointer to RatingAppsTypeVAgesAbove9
+func RatingAppsTypePAgesAbove9() *RatingAppsType {
+ v := RatingAppsTypeVAgesAbove9
+ return &v
+}
+
+// RatingAppsTypePAgesAbove12 returns a pointer to RatingAppsTypeVAgesAbove12
+func RatingAppsTypePAgesAbove12() *RatingAppsType {
+ v := RatingAppsTypeVAgesAbove12
+ return &v
+}
+
+// RatingAppsTypePAgesAbove17 returns a pointer to RatingAppsTypeVAgesAbove17
+func RatingAppsTypePAgesAbove17() *RatingAppsType {
+ v := RatingAppsTypeVAgesAbove17
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingAustraliaMoviesTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingAustraliaMoviesTypeEnum.go
new file mode 100644
index 00000000..a7e39fb0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingAustraliaMoviesTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingAustraliaMoviesType undocumented
+type RatingAustraliaMoviesType int
+
+const (
+ // RatingAustraliaMoviesTypeVAllAllowed undocumented
+ RatingAustraliaMoviesTypeVAllAllowed RatingAustraliaMoviesType = 0
+ // RatingAustraliaMoviesTypeVAllBlocked undocumented
+ RatingAustraliaMoviesTypeVAllBlocked RatingAustraliaMoviesType = 1
+ // RatingAustraliaMoviesTypeVGeneral undocumented
+ RatingAustraliaMoviesTypeVGeneral RatingAustraliaMoviesType = 2
+ // RatingAustraliaMoviesTypeVParentalGuidance undocumented
+ RatingAustraliaMoviesTypeVParentalGuidance RatingAustraliaMoviesType = 3
+ // RatingAustraliaMoviesTypeVMature undocumented
+ RatingAustraliaMoviesTypeVMature RatingAustraliaMoviesType = 4
+ // RatingAustraliaMoviesTypeVAgesAbove15 undocumented
+ RatingAustraliaMoviesTypeVAgesAbove15 RatingAustraliaMoviesType = 5
+ // RatingAustraliaMoviesTypeVAgesAbove18 undocumented
+ RatingAustraliaMoviesTypeVAgesAbove18 RatingAustraliaMoviesType = 6
+)
+
+// RatingAustraliaMoviesTypePAllAllowed returns a pointer to RatingAustraliaMoviesTypeVAllAllowed
+func RatingAustraliaMoviesTypePAllAllowed() *RatingAustraliaMoviesType {
+ v := RatingAustraliaMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingAustraliaMoviesTypePAllBlocked returns a pointer to RatingAustraliaMoviesTypeVAllBlocked
+func RatingAustraliaMoviesTypePAllBlocked() *RatingAustraliaMoviesType {
+ v := RatingAustraliaMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingAustraliaMoviesTypePGeneral returns a pointer to RatingAustraliaMoviesTypeVGeneral
+func RatingAustraliaMoviesTypePGeneral() *RatingAustraliaMoviesType {
+ v := RatingAustraliaMoviesTypeVGeneral
+ return &v
+}
+
+// RatingAustraliaMoviesTypePParentalGuidance returns a pointer to RatingAustraliaMoviesTypeVParentalGuidance
+func RatingAustraliaMoviesTypePParentalGuidance() *RatingAustraliaMoviesType {
+ v := RatingAustraliaMoviesTypeVParentalGuidance
+ return &v
+}
+
+// RatingAustraliaMoviesTypePMature returns a pointer to RatingAustraliaMoviesTypeVMature
+func RatingAustraliaMoviesTypePMature() *RatingAustraliaMoviesType {
+ v := RatingAustraliaMoviesTypeVMature
+ return &v
+}
+
+// RatingAustraliaMoviesTypePAgesAbove15 returns a pointer to RatingAustraliaMoviesTypeVAgesAbove15
+func RatingAustraliaMoviesTypePAgesAbove15() *RatingAustraliaMoviesType {
+ v := RatingAustraliaMoviesTypeVAgesAbove15
+ return &v
+}
+
+// RatingAustraliaMoviesTypePAgesAbove18 returns a pointer to RatingAustraliaMoviesTypeVAgesAbove18
+func RatingAustraliaMoviesTypePAgesAbove18() *RatingAustraliaMoviesType {
+ v := RatingAustraliaMoviesTypeVAgesAbove18
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingAustraliaTelevisionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingAustraliaTelevisionTypeEnum.go
new file mode 100644
index 00000000..2823071a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingAustraliaTelevisionTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingAustraliaTelevisionType undocumented
+type RatingAustraliaTelevisionType int
+
+const (
+ // RatingAustraliaTelevisionTypeVAllAllowed undocumented
+ RatingAustraliaTelevisionTypeVAllAllowed RatingAustraliaTelevisionType = 0
+ // RatingAustraliaTelevisionTypeVAllBlocked undocumented
+ RatingAustraliaTelevisionTypeVAllBlocked RatingAustraliaTelevisionType = 1
+ // RatingAustraliaTelevisionTypeVPreschoolers undocumented
+ RatingAustraliaTelevisionTypeVPreschoolers RatingAustraliaTelevisionType = 2
+ // RatingAustraliaTelevisionTypeVChildren undocumented
+ RatingAustraliaTelevisionTypeVChildren RatingAustraliaTelevisionType = 3
+ // RatingAustraliaTelevisionTypeVGeneral undocumented
+ RatingAustraliaTelevisionTypeVGeneral RatingAustraliaTelevisionType = 4
+ // RatingAustraliaTelevisionTypeVParentalGuidance undocumented
+ RatingAustraliaTelevisionTypeVParentalGuidance RatingAustraliaTelevisionType = 5
+ // RatingAustraliaTelevisionTypeVMature undocumented
+ RatingAustraliaTelevisionTypeVMature RatingAustraliaTelevisionType = 6
+ // RatingAustraliaTelevisionTypeVAgesAbove15 undocumented
+ RatingAustraliaTelevisionTypeVAgesAbove15 RatingAustraliaTelevisionType = 7
+ // RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence undocumented
+ RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence RatingAustraliaTelevisionType = 8
+)
+
+// RatingAustraliaTelevisionTypePAllAllowed returns a pointer to RatingAustraliaTelevisionTypeVAllAllowed
+func RatingAustraliaTelevisionTypePAllAllowed() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePAllBlocked returns a pointer to RatingAustraliaTelevisionTypeVAllBlocked
+func RatingAustraliaTelevisionTypePAllBlocked() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePPreschoolers returns a pointer to RatingAustraliaTelevisionTypeVPreschoolers
+func RatingAustraliaTelevisionTypePPreschoolers() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVPreschoolers
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePChildren returns a pointer to RatingAustraliaTelevisionTypeVChildren
+func RatingAustraliaTelevisionTypePChildren() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVChildren
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePGeneral returns a pointer to RatingAustraliaTelevisionTypeVGeneral
+func RatingAustraliaTelevisionTypePGeneral() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVGeneral
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePParentalGuidance returns a pointer to RatingAustraliaTelevisionTypeVParentalGuidance
+func RatingAustraliaTelevisionTypePParentalGuidance() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVParentalGuidance
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePMature returns a pointer to RatingAustraliaTelevisionTypeVMature
+func RatingAustraliaTelevisionTypePMature() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVMature
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePAgesAbove15 returns a pointer to RatingAustraliaTelevisionTypeVAgesAbove15
+func RatingAustraliaTelevisionTypePAgesAbove15() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVAgesAbove15
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePAgesAbove15AdultViolence returns a pointer to RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence
+func RatingAustraliaTelevisionTypePAgesAbove15AdultViolence() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingCanadaMoviesTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingCanadaMoviesTypeEnum.go
new file mode 100644
index 00000000..4a001c6e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingCanadaMoviesTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingCanadaMoviesType undocumented
+type RatingCanadaMoviesType int
+
+const (
+ // RatingCanadaMoviesTypeVAllAllowed undocumented
+ RatingCanadaMoviesTypeVAllAllowed RatingCanadaMoviesType = 0
+ // RatingCanadaMoviesTypeVAllBlocked undocumented
+ RatingCanadaMoviesTypeVAllBlocked RatingCanadaMoviesType = 1
+ // RatingCanadaMoviesTypeVGeneral undocumented
+ RatingCanadaMoviesTypeVGeneral RatingCanadaMoviesType = 2
+ // RatingCanadaMoviesTypeVParentalGuidance undocumented
+ RatingCanadaMoviesTypeVParentalGuidance RatingCanadaMoviesType = 3
+ // RatingCanadaMoviesTypeVAgesAbove14 undocumented
+ RatingCanadaMoviesTypeVAgesAbove14 RatingCanadaMoviesType = 4
+ // RatingCanadaMoviesTypeVAgesAbove18 undocumented
+ RatingCanadaMoviesTypeVAgesAbove18 RatingCanadaMoviesType = 5
+ // RatingCanadaMoviesTypeVRestricted undocumented
+ RatingCanadaMoviesTypeVRestricted RatingCanadaMoviesType = 6
+)
+
+// RatingCanadaMoviesTypePAllAllowed returns a pointer to RatingCanadaMoviesTypeVAllAllowed
+func RatingCanadaMoviesTypePAllAllowed() *RatingCanadaMoviesType {
+ v := RatingCanadaMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingCanadaMoviesTypePAllBlocked returns a pointer to RatingCanadaMoviesTypeVAllBlocked
+func RatingCanadaMoviesTypePAllBlocked() *RatingCanadaMoviesType {
+ v := RatingCanadaMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingCanadaMoviesTypePGeneral returns a pointer to RatingCanadaMoviesTypeVGeneral
+func RatingCanadaMoviesTypePGeneral() *RatingCanadaMoviesType {
+ v := RatingCanadaMoviesTypeVGeneral
+ return &v
+}
+
+// RatingCanadaMoviesTypePParentalGuidance returns a pointer to RatingCanadaMoviesTypeVParentalGuidance
+func RatingCanadaMoviesTypePParentalGuidance() *RatingCanadaMoviesType {
+ v := RatingCanadaMoviesTypeVParentalGuidance
+ return &v
+}
+
+// RatingCanadaMoviesTypePAgesAbove14 returns a pointer to RatingCanadaMoviesTypeVAgesAbove14
+func RatingCanadaMoviesTypePAgesAbove14() *RatingCanadaMoviesType {
+ v := RatingCanadaMoviesTypeVAgesAbove14
+ return &v
+}
+
+// RatingCanadaMoviesTypePAgesAbove18 returns a pointer to RatingCanadaMoviesTypeVAgesAbove18
+func RatingCanadaMoviesTypePAgesAbove18() *RatingCanadaMoviesType {
+ v := RatingCanadaMoviesTypeVAgesAbove18
+ return &v
+}
+
+// RatingCanadaMoviesTypePRestricted returns a pointer to RatingCanadaMoviesTypeVRestricted
+func RatingCanadaMoviesTypePRestricted() *RatingCanadaMoviesType {
+ v := RatingCanadaMoviesTypeVRestricted
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingCanadaTelevisionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingCanadaTelevisionTypeEnum.go
new file mode 100644
index 00000000..3014ff9b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingCanadaTelevisionTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingCanadaTelevisionType undocumented
+type RatingCanadaTelevisionType int
+
+const (
+ // RatingCanadaTelevisionTypeVAllAllowed undocumented
+ RatingCanadaTelevisionTypeVAllAllowed RatingCanadaTelevisionType = 0
+ // RatingCanadaTelevisionTypeVAllBlocked undocumented
+ RatingCanadaTelevisionTypeVAllBlocked RatingCanadaTelevisionType = 1
+ // RatingCanadaTelevisionTypeVChildren undocumented
+ RatingCanadaTelevisionTypeVChildren RatingCanadaTelevisionType = 2
+ // RatingCanadaTelevisionTypeVChildrenAbove8 undocumented
+ RatingCanadaTelevisionTypeVChildrenAbove8 RatingCanadaTelevisionType = 3
+ // RatingCanadaTelevisionTypeVGeneral undocumented
+ RatingCanadaTelevisionTypeVGeneral RatingCanadaTelevisionType = 4
+ // RatingCanadaTelevisionTypeVParentalGuidance undocumented
+ RatingCanadaTelevisionTypeVParentalGuidance RatingCanadaTelevisionType = 5
+ // RatingCanadaTelevisionTypeVAgesAbove14 undocumented
+ RatingCanadaTelevisionTypeVAgesAbove14 RatingCanadaTelevisionType = 6
+ // RatingCanadaTelevisionTypeVAgesAbove18 undocumented
+ RatingCanadaTelevisionTypeVAgesAbove18 RatingCanadaTelevisionType = 7
+)
+
+// RatingCanadaTelevisionTypePAllAllowed returns a pointer to RatingCanadaTelevisionTypeVAllAllowed
+func RatingCanadaTelevisionTypePAllAllowed() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingCanadaTelevisionTypePAllBlocked returns a pointer to RatingCanadaTelevisionTypeVAllBlocked
+func RatingCanadaTelevisionTypePAllBlocked() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingCanadaTelevisionTypePChildren returns a pointer to RatingCanadaTelevisionTypeVChildren
+func RatingCanadaTelevisionTypePChildren() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVChildren
+ return &v
+}
+
+// RatingCanadaTelevisionTypePChildrenAbove8 returns a pointer to RatingCanadaTelevisionTypeVChildrenAbove8
+func RatingCanadaTelevisionTypePChildrenAbove8() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVChildrenAbove8
+ return &v
+}
+
+// RatingCanadaTelevisionTypePGeneral returns a pointer to RatingCanadaTelevisionTypeVGeneral
+func RatingCanadaTelevisionTypePGeneral() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVGeneral
+ return &v
+}
+
+// RatingCanadaTelevisionTypePParentalGuidance returns a pointer to RatingCanadaTelevisionTypeVParentalGuidance
+func RatingCanadaTelevisionTypePParentalGuidance() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVParentalGuidance
+ return &v
+}
+
+// RatingCanadaTelevisionTypePAgesAbove14 returns a pointer to RatingCanadaTelevisionTypeVAgesAbove14
+func RatingCanadaTelevisionTypePAgesAbove14() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVAgesAbove14
+ return &v
+}
+
+// RatingCanadaTelevisionTypePAgesAbove18 returns a pointer to RatingCanadaTelevisionTypeVAgesAbove18
+func RatingCanadaTelevisionTypePAgesAbove18() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVAgesAbove18
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingFranceMoviesTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingFranceMoviesTypeEnum.go
new file mode 100644
index 00000000..ac24c575
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingFranceMoviesTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingFranceMoviesType undocumented
+type RatingFranceMoviesType int
+
+const (
+ // RatingFranceMoviesTypeVAllAllowed undocumented
+ RatingFranceMoviesTypeVAllAllowed RatingFranceMoviesType = 0
+ // RatingFranceMoviesTypeVAllBlocked undocumented
+ RatingFranceMoviesTypeVAllBlocked RatingFranceMoviesType = 1
+ // RatingFranceMoviesTypeVAgesAbove10 undocumented
+ RatingFranceMoviesTypeVAgesAbove10 RatingFranceMoviesType = 2
+ // RatingFranceMoviesTypeVAgesAbove12 undocumented
+ RatingFranceMoviesTypeVAgesAbove12 RatingFranceMoviesType = 3
+ // RatingFranceMoviesTypeVAgesAbove16 undocumented
+ RatingFranceMoviesTypeVAgesAbove16 RatingFranceMoviesType = 4
+ // RatingFranceMoviesTypeVAgesAbove18 undocumented
+ RatingFranceMoviesTypeVAgesAbove18 RatingFranceMoviesType = 5
+)
+
+// RatingFranceMoviesTypePAllAllowed returns a pointer to RatingFranceMoviesTypeVAllAllowed
+func RatingFranceMoviesTypePAllAllowed() *RatingFranceMoviesType {
+ v := RatingFranceMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingFranceMoviesTypePAllBlocked returns a pointer to RatingFranceMoviesTypeVAllBlocked
+func RatingFranceMoviesTypePAllBlocked() *RatingFranceMoviesType {
+ v := RatingFranceMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingFranceMoviesTypePAgesAbove10 returns a pointer to RatingFranceMoviesTypeVAgesAbove10
+func RatingFranceMoviesTypePAgesAbove10() *RatingFranceMoviesType {
+ v := RatingFranceMoviesTypeVAgesAbove10
+ return &v
+}
+
+// RatingFranceMoviesTypePAgesAbove12 returns a pointer to RatingFranceMoviesTypeVAgesAbove12
+func RatingFranceMoviesTypePAgesAbove12() *RatingFranceMoviesType {
+ v := RatingFranceMoviesTypeVAgesAbove12
+ return &v
+}
+
+// RatingFranceMoviesTypePAgesAbove16 returns a pointer to RatingFranceMoviesTypeVAgesAbove16
+func RatingFranceMoviesTypePAgesAbove16() *RatingFranceMoviesType {
+ v := RatingFranceMoviesTypeVAgesAbove16
+ return &v
+}
+
+// RatingFranceMoviesTypePAgesAbove18 returns a pointer to RatingFranceMoviesTypeVAgesAbove18
+func RatingFranceMoviesTypePAgesAbove18() *RatingFranceMoviesType {
+ v := RatingFranceMoviesTypeVAgesAbove18
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingFranceTelevisionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingFranceTelevisionTypeEnum.go
new file mode 100644
index 00000000..bd2cfda2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingFranceTelevisionTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingFranceTelevisionType undocumented
+type RatingFranceTelevisionType int
+
+const (
+ // RatingFranceTelevisionTypeVAllAllowed undocumented
+ RatingFranceTelevisionTypeVAllAllowed RatingFranceTelevisionType = 0
+ // RatingFranceTelevisionTypeVAllBlocked undocumented
+ RatingFranceTelevisionTypeVAllBlocked RatingFranceTelevisionType = 1
+ // RatingFranceTelevisionTypeVAgesAbove10 undocumented
+ RatingFranceTelevisionTypeVAgesAbove10 RatingFranceTelevisionType = 2
+ // RatingFranceTelevisionTypeVAgesAbove12 undocumented
+ RatingFranceTelevisionTypeVAgesAbove12 RatingFranceTelevisionType = 3
+ // RatingFranceTelevisionTypeVAgesAbove16 undocumented
+ RatingFranceTelevisionTypeVAgesAbove16 RatingFranceTelevisionType = 4
+ // RatingFranceTelevisionTypeVAgesAbove18 undocumented
+ RatingFranceTelevisionTypeVAgesAbove18 RatingFranceTelevisionType = 5
+)
+
+// RatingFranceTelevisionTypePAllAllowed returns a pointer to RatingFranceTelevisionTypeVAllAllowed
+func RatingFranceTelevisionTypePAllAllowed() *RatingFranceTelevisionType {
+ v := RatingFranceTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingFranceTelevisionTypePAllBlocked returns a pointer to RatingFranceTelevisionTypeVAllBlocked
+func RatingFranceTelevisionTypePAllBlocked() *RatingFranceTelevisionType {
+ v := RatingFranceTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingFranceTelevisionTypePAgesAbove10 returns a pointer to RatingFranceTelevisionTypeVAgesAbove10
+func RatingFranceTelevisionTypePAgesAbove10() *RatingFranceTelevisionType {
+ v := RatingFranceTelevisionTypeVAgesAbove10
+ return &v
+}
+
+// RatingFranceTelevisionTypePAgesAbove12 returns a pointer to RatingFranceTelevisionTypeVAgesAbove12
+func RatingFranceTelevisionTypePAgesAbove12() *RatingFranceTelevisionType {
+ v := RatingFranceTelevisionTypeVAgesAbove12
+ return &v
+}
+
+// RatingFranceTelevisionTypePAgesAbove16 returns a pointer to RatingFranceTelevisionTypeVAgesAbove16
+func RatingFranceTelevisionTypePAgesAbove16() *RatingFranceTelevisionType {
+ v := RatingFranceTelevisionTypeVAgesAbove16
+ return &v
+}
+
+// RatingFranceTelevisionTypePAgesAbove18 returns a pointer to RatingFranceTelevisionTypeVAgesAbove18
+func RatingFranceTelevisionTypePAgesAbove18() *RatingFranceTelevisionType {
+ v := RatingFranceTelevisionTypeVAgesAbove18
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingGermanyMoviesTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingGermanyMoviesTypeEnum.go
new file mode 100644
index 00000000..b21b1fcd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingGermanyMoviesTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingGermanyMoviesType undocumented
+type RatingGermanyMoviesType int
+
+const (
+ // RatingGermanyMoviesTypeVAllAllowed undocumented
+ RatingGermanyMoviesTypeVAllAllowed RatingGermanyMoviesType = 0
+ // RatingGermanyMoviesTypeVAllBlocked undocumented
+ RatingGermanyMoviesTypeVAllBlocked RatingGermanyMoviesType = 1
+ // RatingGermanyMoviesTypeVGeneral undocumented
+ RatingGermanyMoviesTypeVGeneral RatingGermanyMoviesType = 2
+ // RatingGermanyMoviesTypeVAgesAbove6 undocumented
+ RatingGermanyMoviesTypeVAgesAbove6 RatingGermanyMoviesType = 3
+ // RatingGermanyMoviesTypeVAgesAbove12 undocumented
+ RatingGermanyMoviesTypeVAgesAbove12 RatingGermanyMoviesType = 4
+ // RatingGermanyMoviesTypeVAgesAbove16 undocumented
+ RatingGermanyMoviesTypeVAgesAbove16 RatingGermanyMoviesType = 5
+ // RatingGermanyMoviesTypeVAdults undocumented
+ RatingGermanyMoviesTypeVAdults RatingGermanyMoviesType = 6
+)
+
+// RatingGermanyMoviesTypePAllAllowed returns a pointer to RatingGermanyMoviesTypeVAllAllowed
+func RatingGermanyMoviesTypePAllAllowed() *RatingGermanyMoviesType {
+ v := RatingGermanyMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingGermanyMoviesTypePAllBlocked returns a pointer to RatingGermanyMoviesTypeVAllBlocked
+func RatingGermanyMoviesTypePAllBlocked() *RatingGermanyMoviesType {
+ v := RatingGermanyMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingGermanyMoviesTypePGeneral returns a pointer to RatingGermanyMoviesTypeVGeneral
+func RatingGermanyMoviesTypePGeneral() *RatingGermanyMoviesType {
+ v := RatingGermanyMoviesTypeVGeneral
+ return &v
+}
+
+// RatingGermanyMoviesTypePAgesAbove6 returns a pointer to RatingGermanyMoviesTypeVAgesAbove6
+func RatingGermanyMoviesTypePAgesAbove6() *RatingGermanyMoviesType {
+ v := RatingGermanyMoviesTypeVAgesAbove6
+ return &v
+}
+
+// RatingGermanyMoviesTypePAgesAbove12 returns a pointer to RatingGermanyMoviesTypeVAgesAbove12
+func RatingGermanyMoviesTypePAgesAbove12() *RatingGermanyMoviesType {
+ v := RatingGermanyMoviesTypeVAgesAbove12
+ return &v
+}
+
+// RatingGermanyMoviesTypePAgesAbove16 returns a pointer to RatingGermanyMoviesTypeVAgesAbove16
+func RatingGermanyMoviesTypePAgesAbove16() *RatingGermanyMoviesType {
+ v := RatingGermanyMoviesTypeVAgesAbove16
+ return &v
+}
+
+// RatingGermanyMoviesTypePAdults returns a pointer to RatingGermanyMoviesTypeVAdults
+func RatingGermanyMoviesTypePAdults() *RatingGermanyMoviesType {
+ v := RatingGermanyMoviesTypeVAdults
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingGermanyTelevisionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingGermanyTelevisionTypeEnum.go
new file mode 100644
index 00000000..2a00bec4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingGermanyTelevisionTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingGermanyTelevisionType undocumented
+type RatingGermanyTelevisionType int
+
+const (
+ // RatingGermanyTelevisionTypeVAllAllowed undocumented
+ RatingGermanyTelevisionTypeVAllAllowed RatingGermanyTelevisionType = 0
+ // RatingGermanyTelevisionTypeVAllBlocked undocumented
+ RatingGermanyTelevisionTypeVAllBlocked RatingGermanyTelevisionType = 1
+ // RatingGermanyTelevisionTypeVGeneral undocumented
+ RatingGermanyTelevisionTypeVGeneral RatingGermanyTelevisionType = 2
+ // RatingGermanyTelevisionTypeVAgesAbove6 undocumented
+ RatingGermanyTelevisionTypeVAgesAbove6 RatingGermanyTelevisionType = 3
+ // RatingGermanyTelevisionTypeVAgesAbove12 undocumented
+ RatingGermanyTelevisionTypeVAgesAbove12 RatingGermanyTelevisionType = 4
+ // RatingGermanyTelevisionTypeVAgesAbove16 undocumented
+ RatingGermanyTelevisionTypeVAgesAbove16 RatingGermanyTelevisionType = 5
+ // RatingGermanyTelevisionTypeVAdults undocumented
+ RatingGermanyTelevisionTypeVAdults RatingGermanyTelevisionType = 6
+)
+
+// RatingGermanyTelevisionTypePAllAllowed returns a pointer to RatingGermanyTelevisionTypeVAllAllowed
+func RatingGermanyTelevisionTypePAllAllowed() *RatingGermanyTelevisionType {
+ v := RatingGermanyTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingGermanyTelevisionTypePAllBlocked returns a pointer to RatingGermanyTelevisionTypeVAllBlocked
+func RatingGermanyTelevisionTypePAllBlocked() *RatingGermanyTelevisionType {
+ v := RatingGermanyTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingGermanyTelevisionTypePGeneral returns a pointer to RatingGermanyTelevisionTypeVGeneral
+func RatingGermanyTelevisionTypePGeneral() *RatingGermanyTelevisionType {
+ v := RatingGermanyTelevisionTypeVGeneral
+ return &v
+}
+
+// RatingGermanyTelevisionTypePAgesAbove6 returns a pointer to RatingGermanyTelevisionTypeVAgesAbove6
+func RatingGermanyTelevisionTypePAgesAbove6() *RatingGermanyTelevisionType {
+ v := RatingGermanyTelevisionTypeVAgesAbove6
+ return &v
+}
+
+// RatingGermanyTelevisionTypePAgesAbove12 returns a pointer to RatingGermanyTelevisionTypeVAgesAbove12
+func RatingGermanyTelevisionTypePAgesAbove12() *RatingGermanyTelevisionType {
+ v := RatingGermanyTelevisionTypeVAgesAbove12
+ return &v
+}
+
+// RatingGermanyTelevisionTypePAgesAbove16 returns a pointer to RatingGermanyTelevisionTypeVAgesAbove16
+func RatingGermanyTelevisionTypePAgesAbove16() *RatingGermanyTelevisionType {
+ v := RatingGermanyTelevisionTypeVAgesAbove16
+ return &v
+}
+
+// RatingGermanyTelevisionTypePAdults returns a pointer to RatingGermanyTelevisionTypeVAdults
+func RatingGermanyTelevisionTypePAdults() *RatingGermanyTelevisionType {
+ v := RatingGermanyTelevisionTypeVAdults
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingIrelandMoviesTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingIrelandMoviesTypeEnum.go
new file mode 100644
index 00000000..964f4da8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingIrelandMoviesTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingIrelandMoviesType undocumented
+type RatingIrelandMoviesType int
+
+const (
+ // RatingIrelandMoviesTypeVAllAllowed undocumented
+ RatingIrelandMoviesTypeVAllAllowed RatingIrelandMoviesType = 0
+ // RatingIrelandMoviesTypeVAllBlocked undocumented
+ RatingIrelandMoviesTypeVAllBlocked RatingIrelandMoviesType = 1
+ // RatingIrelandMoviesTypeVGeneral undocumented
+ RatingIrelandMoviesTypeVGeneral RatingIrelandMoviesType = 2
+ // RatingIrelandMoviesTypeVParentalGuidance undocumented
+ RatingIrelandMoviesTypeVParentalGuidance RatingIrelandMoviesType = 3
+ // RatingIrelandMoviesTypeVAgesAbove12 undocumented
+ RatingIrelandMoviesTypeVAgesAbove12 RatingIrelandMoviesType = 4
+ // RatingIrelandMoviesTypeVAgesAbove15 undocumented
+ RatingIrelandMoviesTypeVAgesAbove15 RatingIrelandMoviesType = 5
+ // RatingIrelandMoviesTypeVAgesAbove16 undocumented
+ RatingIrelandMoviesTypeVAgesAbove16 RatingIrelandMoviesType = 6
+ // RatingIrelandMoviesTypeVAdults undocumented
+ RatingIrelandMoviesTypeVAdults RatingIrelandMoviesType = 7
+)
+
+// RatingIrelandMoviesTypePAllAllowed returns a pointer to RatingIrelandMoviesTypeVAllAllowed
+func RatingIrelandMoviesTypePAllAllowed() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingIrelandMoviesTypePAllBlocked returns a pointer to RatingIrelandMoviesTypeVAllBlocked
+func RatingIrelandMoviesTypePAllBlocked() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingIrelandMoviesTypePGeneral returns a pointer to RatingIrelandMoviesTypeVGeneral
+func RatingIrelandMoviesTypePGeneral() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVGeneral
+ return &v
+}
+
+// RatingIrelandMoviesTypePParentalGuidance returns a pointer to RatingIrelandMoviesTypeVParentalGuidance
+func RatingIrelandMoviesTypePParentalGuidance() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVParentalGuidance
+ return &v
+}
+
+// RatingIrelandMoviesTypePAgesAbove12 returns a pointer to RatingIrelandMoviesTypeVAgesAbove12
+func RatingIrelandMoviesTypePAgesAbove12() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVAgesAbove12
+ return &v
+}
+
+// RatingIrelandMoviesTypePAgesAbove15 returns a pointer to RatingIrelandMoviesTypeVAgesAbove15
+func RatingIrelandMoviesTypePAgesAbove15() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVAgesAbove15
+ return &v
+}
+
+// RatingIrelandMoviesTypePAgesAbove16 returns a pointer to RatingIrelandMoviesTypeVAgesAbove16
+func RatingIrelandMoviesTypePAgesAbove16() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVAgesAbove16
+ return &v
+}
+
+// RatingIrelandMoviesTypePAdults returns a pointer to RatingIrelandMoviesTypeVAdults
+func RatingIrelandMoviesTypePAdults() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVAdults
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingIrelandTelevisionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingIrelandTelevisionTypeEnum.go
new file mode 100644
index 00000000..82b3a391
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingIrelandTelevisionTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingIrelandTelevisionType undocumented
+type RatingIrelandTelevisionType int
+
+const (
+ // RatingIrelandTelevisionTypeVAllAllowed undocumented
+ RatingIrelandTelevisionTypeVAllAllowed RatingIrelandTelevisionType = 0
+ // RatingIrelandTelevisionTypeVAllBlocked undocumented
+ RatingIrelandTelevisionTypeVAllBlocked RatingIrelandTelevisionType = 1
+ // RatingIrelandTelevisionTypeVGeneral undocumented
+ RatingIrelandTelevisionTypeVGeneral RatingIrelandTelevisionType = 2
+ // RatingIrelandTelevisionTypeVChildren undocumented
+ RatingIrelandTelevisionTypeVChildren RatingIrelandTelevisionType = 3
+ // RatingIrelandTelevisionTypeVYoungAdults undocumented
+ RatingIrelandTelevisionTypeVYoungAdults RatingIrelandTelevisionType = 4
+ // RatingIrelandTelevisionTypeVParentalSupervision undocumented
+ RatingIrelandTelevisionTypeVParentalSupervision RatingIrelandTelevisionType = 5
+ // RatingIrelandTelevisionTypeVMature undocumented
+ RatingIrelandTelevisionTypeVMature RatingIrelandTelevisionType = 6
+)
+
+// RatingIrelandTelevisionTypePAllAllowed returns a pointer to RatingIrelandTelevisionTypeVAllAllowed
+func RatingIrelandTelevisionTypePAllAllowed() *RatingIrelandTelevisionType {
+ v := RatingIrelandTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingIrelandTelevisionTypePAllBlocked returns a pointer to RatingIrelandTelevisionTypeVAllBlocked
+func RatingIrelandTelevisionTypePAllBlocked() *RatingIrelandTelevisionType {
+ v := RatingIrelandTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingIrelandTelevisionTypePGeneral returns a pointer to RatingIrelandTelevisionTypeVGeneral
+func RatingIrelandTelevisionTypePGeneral() *RatingIrelandTelevisionType {
+ v := RatingIrelandTelevisionTypeVGeneral
+ return &v
+}
+
+// RatingIrelandTelevisionTypePChildren returns a pointer to RatingIrelandTelevisionTypeVChildren
+func RatingIrelandTelevisionTypePChildren() *RatingIrelandTelevisionType {
+ v := RatingIrelandTelevisionTypeVChildren
+ return &v
+}
+
+// RatingIrelandTelevisionTypePYoungAdults returns a pointer to RatingIrelandTelevisionTypeVYoungAdults
+func RatingIrelandTelevisionTypePYoungAdults() *RatingIrelandTelevisionType {
+ v := RatingIrelandTelevisionTypeVYoungAdults
+ return &v
+}
+
+// RatingIrelandTelevisionTypePParentalSupervision returns a pointer to RatingIrelandTelevisionTypeVParentalSupervision
+func RatingIrelandTelevisionTypePParentalSupervision() *RatingIrelandTelevisionType {
+ v := RatingIrelandTelevisionTypeVParentalSupervision
+ return &v
+}
+
+// RatingIrelandTelevisionTypePMature returns a pointer to RatingIrelandTelevisionTypeVMature
+func RatingIrelandTelevisionTypePMature() *RatingIrelandTelevisionType {
+ v := RatingIrelandTelevisionTypeVMature
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingJapanMoviesTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingJapanMoviesTypeEnum.go
new file mode 100644
index 00000000..cd8671ec
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingJapanMoviesTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingJapanMoviesType undocumented
+type RatingJapanMoviesType int
+
+const (
+ // RatingJapanMoviesTypeVAllAllowed undocumented
+ RatingJapanMoviesTypeVAllAllowed RatingJapanMoviesType = 0
+ // RatingJapanMoviesTypeVAllBlocked undocumented
+ RatingJapanMoviesTypeVAllBlocked RatingJapanMoviesType = 1
+ // RatingJapanMoviesTypeVGeneral undocumented
+ RatingJapanMoviesTypeVGeneral RatingJapanMoviesType = 2
+ // RatingJapanMoviesTypeVParentalGuidance undocumented
+ RatingJapanMoviesTypeVParentalGuidance RatingJapanMoviesType = 3
+ // RatingJapanMoviesTypeVAgesAbove15 undocumented
+ RatingJapanMoviesTypeVAgesAbove15 RatingJapanMoviesType = 4
+ // RatingJapanMoviesTypeVAgesAbove18 undocumented
+ RatingJapanMoviesTypeVAgesAbove18 RatingJapanMoviesType = 5
+)
+
+// RatingJapanMoviesTypePAllAllowed returns a pointer to RatingJapanMoviesTypeVAllAllowed
+func RatingJapanMoviesTypePAllAllowed() *RatingJapanMoviesType {
+ v := RatingJapanMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingJapanMoviesTypePAllBlocked returns a pointer to RatingJapanMoviesTypeVAllBlocked
+func RatingJapanMoviesTypePAllBlocked() *RatingJapanMoviesType {
+ v := RatingJapanMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingJapanMoviesTypePGeneral returns a pointer to RatingJapanMoviesTypeVGeneral
+func RatingJapanMoviesTypePGeneral() *RatingJapanMoviesType {
+ v := RatingJapanMoviesTypeVGeneral
+ return &v
+}
+
+// RatingJapanMoviesTypePParentalGuidance returns a pointer to RatingJapanMoviesTypeVParentalGuidance
+func RatingJapanMoviesTypePParentalGuidance() *RatingJapanMoviesType {
+ v := RatingJapanMoviesTypeVParentalGuidance
+ return &v
+}
+
+// RatingJapanMoviesTypePAgesAbove15 returns a pointer to RatingJapanMoviesTypeVAgesAbove15
+func RatingJapanMoviesTypePAgesAbove15() *RatingJapanMoviesType {
+ v := RatingJapanMoviesTypeVAgesAbove15
+ return &v
+}
+
+// RatingJapanMoviesTypePAgesAbove18 returns a pointer to RatingJapanMoviesTypeVAgesAbove18
+func RatingJapanMoviesTypePAgesAbove18() *RatingJapanMoviesType {
+ v := RatingJapanMoviesTypeVAgesAbove18
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingJapanTelevisionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingJapanTelevisionTypeEnum.go
new file mode 100644
index 00000000..84e221b1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingJapanTelevisionTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingJapanTelevisionType undocumented
+type RatingJapanTelevisionType int
+
+const (
+ // RatingJapanTelevisionTypeVAllAllowed undocumented
+ RatingJapanTelevisionTypeVAllAllowed RatingJapanTelevisionType = 0
+ // RatingJapanTelevisionTypeVAllBlocked undocumented
+ RatingJapanTelevisionTypeVAllBlocked RatingJapanTelevisionType = 1
+ // RatingJapanTelevisionTypeVExplicitAllowed undocumented
+ RatingJapanTelevisionTypeVExplicitAllowed RatingJapanTelevisionType = 2
+)
+
+// RatingJapanTelevisionTypePAllAllowed returns a pointer to RatingJapanTelevisionTypeVAllAllowed
+func RatingJapanTelevisionTypePAllAllowed() *RatingJapanTelevisionType {
+ v := RatingJapanTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingJapanTelevisionTypePAllBlocked returns a pointer to RatingJapanTelevisionTypeVAllBlocked
+func RatingJapanTelevisionTypePAllBlocked() *RatingJapanTelevisionType {
+ v := RatingJapanTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingJapanTelevisionTypePExplicitAllowed returns a pointer to RatingJapanTelevisionTypeVExplicitAllowed
+func RatingJapanTelevisionTypePExplicitAllowed() *RatingJapanTelevisionType {
+ v := RatingJapanTelevisionTypeVExplicitAllowed
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingNewZealandMoviesTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingNewZealandMoviesTypeEnum.go
new file mode 100644
index 00000000..88e28c83
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingNewZealandMoviesTypeEnum.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingNewZealandMoviesType undocumented
+type RatingNewZealandMoviesType int
+
+const (
+ // RatingNewZealandMoviesTypeVAllAllowed undocumented
+ RatingNewZealandMoviesTypeVAllAllowed RatingNewZealandMoviesType = 0
+ // RatingNewZealandMoviesTypeVAllBlocked undocumented
+ RatingNewZealandMoviesTypeVAllBlocked RatingNewZealandMoviesType = 1
+ // RatingNewZealandMoviesTypeVGeneral undocumented
+ RatingNewZealandMoviesTypeVGeneral RatingNewZealandMoviesType = 2
+ // RatingNewZealandMoviesTypeVParentalGuidance undocumented
+ RatingNewZealandMoviesTypeVParentalGuidance RatingNewZealandMoviesType = 3
+ // RatingNewZealandMoviesTypeVMature undocumented
+ RatingNewZealandMoviesTypeVMature RatingNewZealandMoviesType = 4
+ // RatingNewZealandMoviesTypeVAgesAbove13 undocumented
+ RatingNewZealandMoviesTypeVAgesAbove13 RatingNewZealandMoviesType = 5
+ // RatingNewZealandMoviesTypeVAgesAbove15 undocumented
+ RatingNewZealandMoviesTypeVAgesAbove15 RatingNewZealandMoviesType = 6
+ // RatingNewZealandMoviesTypeVAgesAbove16 undocumented
+ RatingNewZealandMoviesTypeVAgesAbove16 RatingNewZealandMoviesType = 7
+ // RatingNewZealandMoviesTypeVAgesAbove18 undocumented
+ RatingNewZealandMoviesTypeVAgesAbove18 RatingNewZealandMoviesType = 8
+ // RatingNewZealandMoviesTypeVRestricted undocumented
+ RatingNewZealandMoviesTypeVRestricted RatingNewZealandMoviesType = 9
+ // RatingNewZealandMoviesTypeVAgesAbove16Restricted undocumented
+ RatingNewZealandMoviesTypeVAgesAbove16Restricted RatingNewZealandMoviesType = 10
+)
+
+// RatingNewZealandMoviesTypePAllAllowed returns a pointer to RatingNewZealandMoviesTypeVAllAllowed
+func RatingNewZealandMoviesTypePAllAllowed() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingNewZealandMoviesTypePAllBlocked returns a pointer to RatingNewZealandMoviesTypeVAllBlocked
+func RatingNewZealandMoviesTypePAllBlocked() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingNewZealandMoviesTypePGeneral returns a pointer to RatingNewZealandMoviesTypeVGeneral
+func RatingNewZealandMoviesTypePGeneral() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVGeneral
+ return &v
+}
+
+// RatingNewZealandMoviesTypePParentalGuidance returns a pointer to RatingNewZealandMoviesTypeVParentalGuidance
+func RatingNewZealandMoviesTypePParentalGuidance() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVParentalGuidance
+ return &v
+}
+
+// RatingNewZealandMoviesTypePMature returns a pointer to RatingNewZealandMoviesTypeVMature
+func RatingNewZealandMoviesTypePMature() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVMature
+ return &v
+}
+
+// RatingNewZealandMoviesTypePAgesAbove13 returns a pointer to RatingNewZealandMoviesTypeVAgesAbove13
+func RatingNewZealandMoviesTypePAgesAbove13() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVAgesAbove13
+ return &v
+}
+
+// RatingNewZealandMoviesTypePAgesAbove15 returns a pointer to RatingNewZealandMoviesTypeVAgesAbove15
+func RatingNewZealandMoviesTypePAgesAbove15() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVAgesAbove15
+ return &v
+}
+
+// RatingNewZealandMoviesTypePAgesAbove16 returns a pointer to RatingNewZealandMoviesTypeVAgesAbove16
+func RatingNewZealandMoviesTypePAgesAbove16() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVAgesAbove16
+ return &v
+}
+
+// RatingNewZealandMoviesTypePAgesAbove18 returns a pointer to RatingNewZealandMoviesTypeVAgesAbove18
+func RatingNewZealandMoviesTypePAgesAbove18() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVAgesAbove18
+ return &v
+}
+
+// RatingNewZealandMoviesTypePRestricted returns a pointer to RatingNewZealandMoviesTypeVRestricted
+func RatingNewZealandMoviesTypePRestricted() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVRestricted
+ return &v
+}
+
+// RatingNewZealandMoviesTypePAgesAbove16Restricted returns a pointer to RatingNewZealandMoviesTypeVAgesAbove16Restricted
+func RatingNewZealandMoviesTypePAgesAbove16Restricted() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVAgesAbove16Restricted
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingNewZealandTelevisionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingNewZealandTelevisionTypeEnum.go
new file mode 100644
index 00000000..441cd35d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingNewZealandTelevisionTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingNewZealandTelevisionType undocumented
+type RatingNewZealandTelevisionType int
+
+const (
+ // RatingNewZealandTelevisionTypeVAllAllowed undocumented
+ RatingNewZealandTelevisionTypeVAllAllowed RatingNewZealandTelevisionType = 0
+ // RatingNewZealandTelevisionTypeVAllBlocked undocumented
+ RatingNewZealandTelevisionTypeVAllBlocked RatingNewZealandTelevisionType = 1
+ // RatingNewZealandTelevisionTypeVGeneral undocumented
+ RatingNewZealandTelevisionTypeVGeneral RatingNewZealandTelevisionType = 2
+ // RatingNewZealandTelevisionTypeVParentalGuidance undocumented
+ RatingNewZealandTelevisionTypeVParentalGuidance RatingNewZealandTelevisionType = 3
+ // RatingNewZealandTelevisionTypeVAdults undocumented
+ RatingNewZealandTelevisionTypeVAdults RatingNewZealandTelevisionType = 4
+)
+
+// RatingNewZealandTelevisionTypePAllAllowed returns a pointer to RatingNewZealandTelevisionTypeVAllAllowed
+func RatingNewZealandTelevisionTypePAllAllowed() *RatingNewZealandTelevisionType {
+ v := RatingNewZealandTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingNewZealandTelevisionTypePAllBlocked returns a pointer to RatingNewZealandTelevisionTypeVAllBlocked
+func RatingNewZealandTelevisionTypePAllBlocked() *RatingNewZealandTelevisionType {
+ v := RatingNewZealandTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingNewZealandTelevisionTypePGeneral returns a pointer to RatingNewZealandTelevisionTypeVGeneral
+func RatingNewZealandTelevisionTypePGeneral() *RatingNewZealandTelevisionType {
+ v := RatingNewZealandTelevisionTypeVGeneral
+ return &v
+}
+
+// RatingNewZealandTelevisionTypePParentalGuidance returns a pointer to RatingNewZealandTelevisionTypeVParentalGuidance
+func RatingNewZealandTelevisionTypePParentalGuidance() *RatingNewZealandTelevisionType {
+ v := RatingNewZealandTelevisionTypeVParentalGuidance
+ return &v
+}
+
+// RatingNewZealandTelevisionTypePAdults returns a pointer to RatingNewZealandTelevisionTypeVAdults
+func RatingNewZealandTelevisionTypePAdults() *RatingNewZealandTelevisionType {
+ v := RatingNewZealandTelevisionTypeVAdults
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedKingdomMoviesTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedKingdomMoviesTypeEnum.go
new file mode 100644
index 00000000..7b57cc51
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedKingdomMoviesTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingUnitedKingdomMoviesType undocumented
+type RatingUnitedKingdomMoviesType int
+
+const (
+ // RatingUnitedKingdomMoviesTypeVAllAllowed undocumented
+ RatingUnitedKingdomMoviesTypeVAllAllowed RatingUnitedKingdomMoviesType = 0
+ // RatingUnitedKingdomMoviesTypeVAllBlocked undocumented
+ RatingUnitedKingdomMoviesTypeVAllBlocked RatingUnitedKingdomMoviesType = 1
+ // RatingUnitedKingdomMoviesTypeVGeneral undocumented
+ RatingUnitedKingdomMoviesTypeVGeneral RatingUnitedKingdomMoviesType = 2
+ // RatingUnitedKingdomMoviesTypeVUniversalChildren undocumented
+ RatingUnitedKingdomMoviesTypeVUniversalChildren RatingUnitedKingdomMoviesType = 3
+ // RatingUnitedKingdomMoviesTypeVParentalGuidance undocumented
+ RatingUnitedKingdomMoviesTypeVParentalGuidance RatingUnitedKingdomMoviesType = 4
+ // RatingUnitedKingdomMoviesTypeVAgesAbove12Video undocumented
+ RatingUnitedKingdomMoviesTypeVAgesAbove12Video RatingUnitedKingdomMoviesType = 5
+ // RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema undocumented
+ RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema RatingUnitedKingdomMoviesType = 6
+ // RatingUnitedKingdomMoviesTypeVAgesAbove15 undocumented
+ RatingUnitedKingdomMoviesTypeVAgesAbove15 RatingUnitedKingdomMoviesType = 7
+ // RatingUnitedKingdomMoviesTypeVAdults undocumented
+ RatingUnitedKingdomMoviesTypeVAdults RatingUnitedKingdomMoviesType = 8
+)
+
+// RatingUnitedKingdomMoviesTypePAllAllowed returns a pointer to RatingUnitedKingdomMoviesTypeVAllAllowed
+func RatingUnitedKingdomMoviesTypePAllAllowed() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePAllBlocked returns a pointer to RatingUnitedKingdomMoviesTypeVAllBlocked
+func RatingUnitedKingdomMoviesTypePAllBlocked() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePGeneral returns a pointer to RatingUnitedKingdomMoviesTypeVGeneral
+func RatingUnitedKingdomMoviesTypePGeneral() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVGeneral
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePUniversalChildren returns a pointer to RatingUnitedKingdomMoviesTypeVUniversalChildren
+func RatingUnitedKingdomMoviesTypePUniversalChildren() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVUniversalChildren
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePParentalGuidance returns a pointer to RatingUnitedKingdomMoviesTypeVParentalGuidance
+func RatingUnitedKingdomMoviesTypePParentalGuidance() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVParentalGuidance
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePAgesAbove12Video returns a pointer to RatingUnitedKingdomMoviesTypeVAgesAbove12Video
+func RatingUnitedKingdomMoviesTypePAgesAbove12Video() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVAgesAbove12Video
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePAgesAbove12Cinema returns a pointer to RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema
+func RatingUnitedKingdomMoviesTypePAgesAbove12Cinema() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePAgesAbove15 returns a pointer to RatingUnitedKingdomMoviesTypeVAgesAbove15
+func RatingUnitedKingdomMoviesTypePAgesAbove15() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVAgesAbove15
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePAdults returns a pointer to RatingUnitedKingdomMoviesTypeVAdults
+func RatingUnitedKingdomMoviesTypePAdults() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVAdults
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedKingdomTelevisionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedKingdomTelevisionTypeEnum.go
new file mode 100644
index 00000000..ad86b8c4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedKingdomTelevisionTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingUnitedKingdomTelevisionType undocumented
+type RatingUnitedKingdomTelevisionType int
+
+const (
+ // RatingUnitedKingdomTelevisionTypeVAllAllowed undocumented
+ RatingUnitedKingdomTelevisionTypeVAllAllowed RatingUnitedKingdomTelevisionType = 0
+ // RatingUnitedKingdomTelevisionTypeVAllBlocked undocumented
+ RatingUnitedKingdomTelevisionTypeVAllBlocked RatingUnitedKingdomTelevisionType = 1
+ // RatingUnitedKingdomTelevisionTypeVCaution undocumented
+ RatingUnitedKingdomTelevisionTypeVCaution RatingUnitedKingdomTelevisionType = 2
+)
+
+// RatingUnitedKingdomTelevisionTypePAllAllowed returns a pointer to RatingUnitedKingdomTelevisionTypeVAllAllowed
+func RatingUnitedKingdomTelevisionTypePAllAllowed() *RatingUnitedKingdomTelevisionType {
+ v := RatingUnitedKingdomTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingUnitedKingdomTelevisionTypePAllBlocked returns a pointer to RatingUnitedKingdomTelevisionTypeVAllBlocked
+func RatingUnitedKingdomTelevisionTypePAllBlocked() *RatingUnitedKingdomTelevisionType {
+ v := RatingUnitedKingdomTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingUnitedKingdomTelevisionTypePCaution returns a pointer to RatingUnitedKingdomTelevisionTypeVCaution
+func RatingUnitedKingdomTelevisionTypePCaution() *RatingUnitedKingdomTelevisionType {
+ v := RatingUnitedKingdomTelevisionTypeVCaution
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedStatesMoviesTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedStatesMoviesTypeEnum.go
new file mode 100644
index 00000000..ff27f3e5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedStatesMoviesTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingUnitedStatesMoviesType undocumented
+type RatingUnitedStatesMoviesType int
+
+const (
+ // RatingUnitedStatesMoviesTypeVAllAllowed undocumented
+ RatingUnitedStatesMoviesTypeVAllAllowed RatingUnitedStatesMoviesType = 0
+ // RatingUnitedStatesMoviesTypeVAllBlocked undocumented
+ RatingUnitedStatesMoviesTypeVAllBlocked RatingUnitedStatesMoviesType = 1
+ // RatingUnitedStatesMoviesTypeVGeneral undocumented
+ RatingUnitedStatesMoviesTypeVGeneral RatingUnitedStatesMoviesType = 2
+ // RatingUnitedStatesMoviesTypeVParentalGuidance undocumented
+ RatingUnitedStatesMoviesTypeVParentalGuidance RatingUnitedStatesMoviesType = 3
+ // RatingUnitedStatesMoviesTypeVParentalGuidance13 undocumented
+ RatingUnitedStatesMoviesTypeVParentalGuidance13 RatingUnitedStatesMoviesType = 4
+ // RatingUnitedStatesMoviesTypeVRestricted undocumented
+ RatingUnitedStatesMoviesTypeVRestricted RatingUnitedStatesMoviesType = 5
+ // RatingUnitedStatesMoviesTypeVAdults undocumented
+ RatingUnitedStatesMoviesTypeVAdults RatingUnitedStatesMoviesType = 6
+)
+
+// RatingUnitedStatesMoviesTypePAllAllowed returns a pointer to RatingUnitedStatesMoviesTypeVAllAllowed
+func RatingUnitedStatesMoviesTypePAllAllowed() *RatingUnitedStatesMoviesType {
+ v := RatingUnitedStatesMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingUnitedStatesMoviesTypePAllBlocked returns a pointer to RatingUnitedStatesMoviesTypeVAllBlocked
+func RatingUnitedStatesMoviesTypePAllBlocked() *RatingUnitedStatesMoviesType {
+ v := RatingUnitedStatesMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingUnitedStatesMoviesTypePGeneral returns a pointer to RatingUnitedStatesMoviesTypeVGeneral
+func RatingUnitedStatesMoviesTypePGeneral() *RatingUnitedStatesMoviesType {
+ v := RatingUnitedStatesMoviesTypeVGeneral
+ return &v
+}
+
+// RatingUnitedStatesMoviesTypePParentalGuidance returns a pointer to RatingUnitedStatesMoviesTypeVParentalGuidance
+func RatingUnitedStatesMoviesTypePParentalGuidance() *RatingUnitedStatesMoviesType {
+ v := RatingUnitedStatesMoviesTypeVParentalGuidance
+ return &v
+}
+
+// RatingUnitedStatesMoviesTypePParentalGuidance13 returns a pointer to RatingUnitedStatesMoviesTypeVParentalGuidance13
+func RatingUnitedStatesMoviesTypePParentalGuidance13() *RatingUnitedStatesMoviesType {
+ v := RatingUnitedStatesMoviesTypeVParentalGuidance13
+ return &v
+}
+
+// RatingUnitedStatesMoviesTypePRestricted returns a pointer to RatingUnitedStatesMoviesTypeVRestricted
+func RatingUnitedStatesMoviesTypePRestricted() *RatingUnitedStatesMoviesType {
+ v := RatingUnitedStatesMoviesTypeVRestricted
+ return &v
+}
+
+// RatingUnitedStatesMoviesTypePAdults returns a pointer to RatingUnitedStatesMoviesTypeVAdults
+func RatingUnitedStatesMoviesTypePAdults() *RatingUnitedStatesMoviesType {
+ v := RatingUnitedStatesMoviesTypeVAdults
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedStatesTelevisionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedStatesTelevisionTypeEnum.go
new file mode 100644
index 00000000..b0374b35
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedStatesTelevisionTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingUnitedStatesTelevisionType undocumented
+type RatingUnitedStatesTelevisionType int
+
+const (
+ // RatingUnitedStatesTelevisionTypeVAllAllowed undocumented
+ RatingUnitedStatesTelevisionTypeVAllAllowed RatingUnitedStatesTelevisionType = 0
+ // RatingUnitedStatesTelevisionTypeVAllBlocked undocumented
+ RatingUnitedStatesTelevisionTypeVAllBlocked RatingUnitedStatesTelevisionType = 1
+ // RatingUnitedStatesTelevisionTypeVChildrenAll undocumented
+ RatingUnitedStatesTelevisionTypeVChildrenAll RatingUnitedStatesTelevisionType = 2
+ // RatingUnitedStatesTelevisionTypeVChildrenAbove7 undocumented
+ RatingUnitedStatesTelevisionTypeVChildrenAbove7 RatingUnitedStatesTelevisionType = 3
+ // RatingUnitedStatesTelevisionTypeVGeneral undocumented
+ RatingUnitedStatesTelevisionTypeVGeneral RatingUnitedStatesTelevisionType = 4
+ // RatingUnitedStatesTelevisionTypeVParentalGuidance undocumented
+ RatingUnitedStatesTelevisionTypeVParentalGuidance RatingUnitedStatesTelevisionType = 5
+ // RatingUnitedStatesTelevisionTypeVChildrenAbove14 undocumented
+ RatingUnitedStatesTelevisionTypeVChildrenAbove14 RatingUnitedStatesTelevisionType = 6
+ // RatingUnitedStatesTelevisionTypeVAdults undocumented
+ RatingUnitedStatesTelevisionTypeVAdults RatingUnitedStatesTelevisionType = 7
+)
+
+// RatingUnitedStatesTelevisionTypePAllAllowed returns a pointer to RatingUnitedStatesTelevisionTypeVAllAllowed
+func RatingUnitedStatesTelevisionTypePAllAllowed() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingUnitedStatesTelevisionTypePAllBlocked returns a pointer to RatingUnitedStatesTelevisionTypeVAllBlocked
+func RatingUnitedStatesTelevisionTypePAllBlocked() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingUnitedStatesTelevisionTypePChildrenAll returns a pointer to RatingUnitedStatesTelevisionTypeVChildrenAll
+func RatingUnitedStatesTelevisionTypePChildrenAll() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVChildrenAll
+ return &v
+}
+
+// RatingUnitedStatesTelevisionTypePChildrenAbove7 returns a pointer to RatingUnitedStatesTelevisionTypeVChildrenAbove7
+func RatingUnitedStatesTelevisionTypePChildrenAbove7() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVChildrenAbove7
+ return &v
+}
+
+// RatingUnitedStatesTelevisionTypePGeneral returns a pointer to RatingUnitedStatesTelevisionTypeVGeneral
+func RatingUnitedStatesTelevisionTypePGeneral() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVGeneral
+ return &v
+}
+
+// RatingUnitedStatesTelevisionTypePParentalGuidance returns a pointer to RatingUnitedStatesTelevisionTypeVParentalGuidance
+func RatingUnitedStatesTelevisionTypePParentalGuidance() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVParentalGuidance
+ return &v
+}
+
+// RatingUnitedStatesTelevisionTypePChildrenAbove14 returns a pointer to RatingUnitedStatesTelevisionTypeVChildrenAbove14
+func RatingUnitedStatesTelevisionTypePChildrenAbove14() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVChildrenAbove14
+ return &v
+}
+
+// RatingUnitedStatesTelevisionTypePAdults returns a pointer to RatingUnitedStatesTelevisionTypeVAdults
+func RatingUnitedStatesTelevisionTypePAdults() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVAdults
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RbacApplicationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RbacApplicationModel.go
new file mode 100644
index 00000000..ff835349
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RbacApplicationModel.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/matterbridge/msgraph.go/beta/RbacApplicationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RbacApplicationRequest.go
new file mode 100644
index 00000000..692fbc7e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RbacApplicationRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UnifiedRoleAssignment collection
+func (r *RbacApplicationRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]UnifiedRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UnifiedRoleDefinition collection
+func (r *RbacApplicationRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]UnifiedRoleDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/RecentNotebookLinksModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecentNotebookLinksModel.go
new file mode 100644
index 00000000..e05d467b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RecentNotebookLinksModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/RecentNotebookModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecentNotebookModel.go
new file mode 100644
index 00000000..45fe04bb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RecentNotebookModel.go
@@ -0,0 +1,19 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RecipientModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecipientModel.go
new file mode 100644
index 00000000..153f5d81
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RecipientModel.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/matterbridge/msgraph.go/beta/RecipientScopeTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecipientScopeTypeEnum.go
new file mode 100644
index 00000000..f1113907
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RecipientScopeTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecipientScopeType undocumented
+type RecipientScopeType int
+
+const (
+ // RecipientScopeTypeVNone undocumented
+ RecipientScopeTypeVNone RecipientScopeType = 0
+ // RecipientScopeTypeVInternal undocumented
+ RecipientScopeTypeVInternal RecipientScopeType = 1
+ // RecipientScopeTypeVExternal undocumented
+ RecipientScopeTypeVExternal RecipientScopeType = 2
+ // RecipientScopeTypeVExternalPartner undocumented
+ RecipientScopeTypeVExternalPartner RecipientScopeType = 4
+ // RecipientScopeTypeVExternalNonPartner undocumented
+ RecipientScopeTypeVExternalNonPartner RecipientScopeType = 8
+)
+
+// RecipientScopeTypePNone returns a pointer to RecipientScopeTypeVNone
+func RecipientScopeTypePNone() *RecipientScopeType {
+ v := RecipientScopeTypeVNone
+ return &v
+}
+
+// RecipientScopeTypePInternal returns a pointer to RecipientScopeTypeVInternal
+func RecipientScopeTypePInternal() *RecipientScopeType {
+ v := RecipientScopeTypeVInternal
+ return &v
+}
+
+// RecipientScopeTypePExternal returns a pointer to RecipientScopeTypeVExternal
+func RecipientScopeTypePExternal() *RecipientScopeType {
+ v := RecipientScopeTypeVExternal
+ return &v
+}
+
+// RecipientScopeTypePExternalPartner returns a pointer to RecipientScopeTypeVExternalPartner
+func RecipientScopeTypePExternalPartner() *RecipientScopeType {
+ v := RecipientScopeTypeVExternalPartner
+ return &v
+}
+
+// RecipientScopeTypePExternalNonPartner returns a pointer to RecipientScopeTypeVExternalNonPartner
+func RecipientScopeTypePExternalNonPartner() *RecipientScopeType {
+ v := RecipientScopeTypeVExternalNonPartner
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RecommendLabelActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecommendLabelActionModel.go
new file mode 100644
index 00000000..90ad812a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RecommendLabelActionModel.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/matterbridge/msgraph.go/beta/RecordCompletionReasonEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecordCompletionReasonEnum.go
new file mode 100644
index 00000000..a3b85adb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RecordCompletionReasonEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecordCompletionReason undocumented
+type RecordCompletionReason int
+
+const (
+ // RecordCompletionReasonVOperationCanceled undocumented
+ RecordCompletionReasonVOperationCanceled RecordCompletionReason = 0
+ // RecordCompletionReasonVStopToneDetected undocumented
+ RecordCompletionReasonVStopToneDetected RecordCompletionReason = 1
+ // RecordCompletionReasonVMaxRecordDurationReached undocumented
+ RecordCompletionReasonVMaxRecordDurationReached RecordCompletionReason = 2
+ // RecordCompletionReasonVInitialSilenceTimeout undocumented
+ RecordCompletionReasonVInitialSilenceTimeout RecordCompletionReason = 3
+ // RecordCompletionReasonVMaxSilenceTimeout undocumented
+ RecordCompletionReasonVMaxSilenceTimeout RecordCompletionReason = 4
+ // RecordCompletionReasonVPlayPromptFailed undocumented
+ RecordCompletionReasonVPlayPromptFailed RecordCompletionReason = 5
+ // RecordCompletionReasonVPlayBeepFailed undocumented
+ RecordCompletionReasonVPlayBeepFailed RecordCompletionReason = 6
+ // RecordCompletionReasonVMediaReceiveTimeout undocumented
+ RecordCompletionReasonVMediaReceiveTimeout RecordCompletionReason = 7
+ // RecordCompletionReasonVUnspecifiedError undocumented
+ RecordCompletionReasonVUnspecifiedError RecordCompletionReason = 8
+)
+
+// RecordCompletionReasonPOperationCanceled returns a pointer to RecordCompletionReasonVOperationCanceled
+func RecordCompletionReasonPOperationCanceled() *RecordCompletionReason {
+ v := RecordCompletionReasonVOperationCanceled
+ return &v
+}
+
+// RecordCompletionReasonPStopToneDetected returns a pointer to RecordCompletionReasonVStopToneDetected
+func RecordCompletionReasonPStopToneDetected() *RecordCompletionReason {
+ v := RecordCompletionReasonVStopToneDetected
+ return &v
+}
+
+// RecordCompletionReasonPMaxRecordDurationReached returns a pointer to RecordCompletionReasonVMaxRecordDurationReached
+func RecordCompletionReasonPMaxRecordDurationReached() *RecordCompletionReason {
+ v := RecordCompletionReasonVMaxRecordDurationReached
+ return &v
+}
+
+// RecordCompletionReasonPInitialSilenceTimeout returns a pointer to RecordCompletionReasonVInitialSilenceTimeout
+func RecordCompletionReasonPInitialSilenceTimeout() *RecordCompletionReason {
+ v := RecordCompletionReasonVInitialSilenceTimeout
+ return &v
+}
+
+// RecordCompletionReasonPMaxSilenceTimeout returns a pointer to RecordCompletionReasonVMaxSilenceTimeout
+func RecordCompletionReasonPMaxSilenceTimeout() *RecordCompletionReason {
+ v := RecordCompletionReasonVMaxSilenceTimeout
+ return &v
+}
+
+// RecordCompletionReasonPPlayPromptFailed returns a pointer to RecordCompletionReasonVPlayPromptFailed
+func RecordCompletionReasonPPlayPromptFailed() *RecordCompletionReason {
+ v := RecordCompletionReasonVPlayPromptFailed
+ return &v
+}
+
+// RecordCompletionReasonPPlayBeepFailed returns a pointer to RecordCompletionReasonVPlayBeepFailed
+func RecordCompletionReasonPPlayBeepFailed() *RecordCompletionReason {
+ v := RecordCompletionReasonVPlayBeepFailed
+ return &v
+}
+
+// RecordCompletionReasonPMediaReceiveTimeout returns a pointer to RecordCompletionReasonVMediaReceiveTimeout
+func RecordCompletionReasonPMediaReceiveTimeout() *RecordCompletionReason {
+ v := RecordCompletionReasonVMediaReceiveTimeout
+ return &v
+}
+
+// RecordCompletionReasonPUnspecifiedError returns a pointer to RecordCompletionReasonVUnspecifiedError
+func RecordCompletionReasonPUnspecifiedError() *RecordCompletionReason {
+ v := RecordCompletionReasonVUnspecifiedError
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RecordOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecordOperationModel.go
new file mode 100644
index 00000000..8916aee1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RecordOperationModel.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/matterbridge/msgraph.go/beta/RecordingInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecordingInfoModel.go
new file mode 100644
index 00000000..4b0606f0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RecordingInfoModel.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/matterbridge/msgraph.go/beta/RecordingStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecordingStatusEnum.go
new file mode 100644
index 00000000..ded52481
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RecordingStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecordingStatus undocumented
+type RecordingStatus int
+
+const (
+ // RecordingStatusVUnknown undocumented
+ RecordingStatusVUnknown RecordingStatus = 0
+ // RecordingStatusVNotRecording undocumented
+ RecordingStatusVNotRecording RecordingStatus = 1
+ // RecordingStatusVRecording undocumented
+ RecordingStatusVRecording RecordingStatus = 2
+ // RecordingStatusVFailed undocumented
+ RecordingStatusVFailed RecordingStatus = 3
+ // RecordingStatusVUnknownFutureValue undocumented
+ RecordingStatusVUnknownFutureValue RecordingStatus = 4
+)
+
+// RecordingStatusPUnknown returns a pointer to RecordingStatusVUnknown
+func RecordingStatusPUnknown() *RecordingStatus {
+ v := RecordingStatusVUnknown
+ return &v
+}
+
+// RecordingStatusPNotRecording returns a pointer to RecordingStatusVNotRecording
+func RecordingStatusPNotRecording() *RecordingStatus {
+ v := RecordingStatusVNotRecording
+ return &v
+}
+
+// RecordingStatusPRecording returns a pointer to RecordingStatusVRecording
+func RecordingStatusPRecording() *RecordingStatus {
+ v := RecordingStatusVRecording
+ return &v
+}
+
+// RecordingStatusPFailed returns a pointer to RecordingStatusVFailed
+func RecordingStatusPFailed() *RecordingStatus {
+ v := RecordingStatusVFailed
+ return &v
+}
+
+// RecordingStatusPUnknownFutureValue returns a pointer to RecordingStatusVUnknownFutureValue
+func RecordingStatusPUnknownFutureValue() *RecordingStatus {
+ v := RecordingStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RecurrencePatternModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecurrencePatternModel.go
new file mode 100644
index 00000000..89af15a0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RecurrencePatternModel.go
@@ -0,0 +1,23 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RecurrencePatternTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecurrencePatternTypeEnum.go
new file mode 100644
index 00000000..4ac3a432
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RecurrencePatternTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecurrencePatternType undocumented
+type RecurrencePatternType int
+
+const (
+ // RecurrencePatternTypeVDaily undocumented
+ RecurrencePatternTypeVDaily RecurrencePatternType = 0
+ // RecurrencePatternTypeVWeekly undocumented
+ RecurrencePatternTypeVWeekly RecurrencePatternType = 1
+ // RecurrencePatternTypeVAbsoluteMonthly undocumented
+ RecurrencePatternTypeVAbsoluteMonthly RecurrencePatternType = 2
+ // RecurrencePatternTypeVRelativeMonthly undocumented
+ RecurrencePatternTypeVRelativeMonthly RecurrencePatternType = 3
+ // RecurrencePatternTypeVAbsoluteYearly undocumented
+ RecurrencePatternTypeVAbsoluteYearly RecurrencePatternType = 4
+ // RecurrencePatternTypeVRelativeYearly undocumented
+ RecurrencePatternTypeVRelativeYearly RecurrencePatternType = 5
+)
+
+// RecurrencePatternTypePDaily returns a pointer to RecurrencePatternTypeVDaily
+func RecurrencePatternTypePDaily() *RecurrencePatternType {
+ v := RecurrencePatternTypeVDaily
+ return &v
+}
+
+// RecurrencePatternTypePWeekly returns a pointer to RecurrencePatternTypeVWeekly
+func RecurrencePatternTypePWeekly() *RecurrencePatternType {
+ v := RecurrencePatternTypeVWeekly
+ return &v
+}
+
+// RecurrencePatternTypePAbsoluteMonthly returns a pointer to RecurrencePatternTypeVAbsoluteMonthly
+func RecurrencePatternTypePAbsoluteMonthly() *RecurrencePatternType {
+ v := RecurrencePatternTypeVAbsoluteMonthly
+ return &v
+}
+
+// RecurrencePatternTypePRelativeMonthly returns a pointer to RecurrencePatternTypeVRelativeMonthly
+func RecurrencePatternTypePRelativeMonthly() *RecurrencePatternType {
+ v := RecurrencePatternTypeVRelativeMonthly
+ return &v
+}
+
+// RecurrencePatternTypePAbsoluteYearly returns a pointer to RecurrencePatternTypeVAbsoluteYearly
+func RecurrencePatternTypePAbsoluteYearly() *RecurrencePatternType {
+ v := RecurrencePatternTypeVAbsoluteYearly
+ return &v
+}
+
+// RecurrencePatternTypePRelativeYearly returns a pointer to RecurrencePatternTypeVRelativeYearly
+func RecurrencePatternTypePRelativeYearly() *RecurrencePatternType {
+ v := RecurrencePatternTypeVRelativeYearly
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RecurrenceRangeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecurrenceRangeModel.go
new file mode 100644
index 00000000..d7121ea1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RecurrenceRangeModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// RecurrenceRange undocumented
+type RecurrenceRange struct {
+ // Object is the base model of RecurrenceRange
+ Object
+ // Type undocumented
+ Type *RecurrenceRangeType `json:"type,omitempty"`
+ // StartDate undocumented
+ StartDate *time.Time `json:"startDate,omitempty"`
+ // EndDate undocumented
+ EndDate *time.Time `json:"endDate,omitempty"`
+ // RecurrenceTimeZone undocumented
+ RecurrenceTimeZone *string `json:"recurrenceTimeZone,omitempty"`
+ // NumberOfOccurrences undocumented
+ NumberOfOccurrences *int `json:"numberOfOccurrences,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RecurrenceRangeTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecurrenceRangeTypeEnum.go
new file mode 100644
index 00000000..824625c8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RecurrenceRangeTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecurrenceRangeType undocumented
+type RecurrenceRangeType int
+
+const (
+ // RecurrenceRangeTypeVEndDate undocumented
+ RecurrenceRangeTypeVEndDate RecurrenceRangeType = 0
+ // RecurrenceRangeTypeVNoEnd undocumented
+ RecurrenceRangeTypeVNoEnd RecurrenceRangeType = 1
+ // RecurrenceRangeTypeVNumbered undocumented
+ RecurrenceRangeTypeVNumbered RecurrenceRangeType = 2
+)
+
+// RecurrenceRangeTypePEndDate returns a pointer to RecurrenceRangeTypeVEndDate
+func RecurrenceRangeTypePEndDate() *RecurrenceRangeType {
+ v := RecurrenceRangeTypeVEndDate
+ return &v
+}
+
+// RecurrenceRangeTypePNoEnd returns a pointer to RecurrenceRangeTypeVNoEnd
+func RecurrenceRangeTypePNoEnd() *RecurrenceRangeType {
+ v := RecurrenceRangeTypeVNoEnd
+ return &v
+}
+
+// RecurrenceRangeTypePNumbered returns a pointer to RecurrenceRangeTypeVNumbered
+func RecurrenceRangeTypePNumbered() *RecurrenceRangeType {
+ v := RecurrenceRangeTypeVNumbered
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentModel.go
new file mode 100644
index 00000000..89573af8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentModel.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/matterbridge/msgraph.go/beta/ReferenceAttachmentPermissionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentPermissionEnum.go
new file mode 100644
index 00000000..82caf227
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentPermissionEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ReferenceAttachmentPermission undocumented
+type ReferenceAttachmentPermission int
+
+const (
+ // ReferenceAttachmentPermissionVOther undocumented
+ ReferenceAttachmentPermissionVOther ReferenceAttachmentPermission = 0
+ // ReferenceAttachmentPermissionVView undocumented
+ ReferenceAttachmentPermissionVView ReferenceAttachmentPermission = 1
+ // ReferenceAttachmentPermissionVEdit undocumented
+ ReferenceAttachmentPermissionVEdit ReferenceAttachmentPermission = 2
+ // ReferenceAttachmentPermissionVAnonymousView undocumented
+ ReferenceAttachmentPermissionVAnonymousView ReferenceAttachmentPermission = 3
+ // ReferenceAttachmentPermissionVAnonymousEdit undocumented
+ ReferenceAttachmentPermissionVAnonymousEdit ReferenceAttachmentPermission = 4
+ // ReferenceAttachmentPermissionVOrganizationView undocumented
+ ReferenceAttachmentPermissionVOrganizationView ReferenceAttachmentPermission = 5
+ // ReferenceAttachmentPermissionVOrganizationEdit undocumented
+ ReferenceAttachmentPermissionVOrganizationEdit ReferenceAttachmentPermission = 6
+)
+
+// ReferenceAttachmentPermissionPOther returns a pointer to ReferenceAttachmentPermissionVOther
+func ReferenceAttachmentPermissionPOther() *ReferenceAttachmentPermission {
+ v := ReferenceAttachmentPermissionVOther
+ return &v
+}
+
+// ReferenceAttachmentPermissionPView returns a pointer to ReferenceAttachmentPermissionVView
+func ReferenceAttachmentPermissionPView() *ReferenceAttachmentPermission {
+ v := ReferenceAttachmentPermissionVView
+ return &v
+}
+
+// ReferenceAttachmentPermissionPEdit returns a pointer to ReferenceAttachmentPermissionVEdit
+func ReferenceAttachmentPermissionPEdit() *ReferenceAttachmentPermission {
+ v := ReferenceAttachmentPermissionVEdit
+ return &v
+}
+
+// ReferenceAttachmentPermissionPAnonymousView returns a pointer to ReferenceAttachmentPermissionVAnonymousView
+func ReferenceAttachmentPermissionPAnonymousView() *ReferenceAttachmentPermission {
+ v := ReferenceAttachmentPermissionVAnonymousView
+ return &v
+}
+
+// ReferenceAttachmentPermissionPAnonymousEdit returns a pointer to ReferenceAttachmentPermissionVAnonymousEdit
+func ReferenceAttachmentPermissionPAnonymousEdit() *ReferenceAttachmentPermission {
+ v := ReferenceAttachmentPermissionVAnonymousEdit
+ return &v
+}
+
+// ReferenceAttachmentPermissionPOrganizationView returns a pointer to ReferenceAttachmentPermissionVOrganizationView
+func ReferenceAttachmentPermissionPOrganizationView() *ReferenceAttachmentPermission {
+ v := ReferenceAttachmentPermissionVOrganizationView
+ return &v
+}
+
+// ReferenceAttachmentPermissionPOrganizationEdit returns a pointer to ReferenceAttachmentPermissionVOrganizationEdit
+func ReferenceAttachmentPermissionPOrganizationEdit() *ReferenceAttachmentPermission {
+ v := ReferenceAttachmentPermissionVOrganizationEdit
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentProviderEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentProviderEnum.go
new file mode 100644
index 00000000..2624db26
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentProviderEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ReferenceAttachmentProvider undocumented
+type ReferenceAttachmentProvider int
+
+const (
+ // ReferenceAttachmentProviderVOther undocumented
+ ReferenceAttachmentProviderVOther ReferenceAttachmentProvider = 0
+ // ReferenceAttachmentProviderVOneDriveBusiness undocumented
+ ReferenceAttachmentProviderVOneDriveBusiness ReferenceAttachmentProvider = 1
+ // ReferenceAttachmentProviderVOneDriveConsumer undocumented
+ ReferenceAttachmentProviderVOneDriveConsumer ReferenceAttachmentProvider = 2
+ // ReferenceAttachmentProviderVDropbox undocumented
+ ReferenceAttachmentProviderVDropbox ReferenceAttachmentProvider = 3
+)
+
+// ReferenceAttachmentProviderPOther returns a pointer to ReferenceAttachmentProviderVOther
+func ReferenceAttachmentProviderPOther() *ReferenceAttachmentProvider {
+ v := ReferenceAttachmentProviderVOther
+ return &v
+}
+
+// ReferenceAttachmentProviderPOneDriveBusiness returns a pointer to ReferenceAttachmentProviderVOneDriveBusiness
+func ReferenceAttachmentProviderPOneDriveBusiness() *ReferenceAttachmentProvider {
+ v := ReferenceAttachmentProviderVOneDriveBusiness
+ return &v
+}
+
+// ReferenceAttachmentProviderPOneDriveConsumer returns a pointer to ReferenceAttachmentProviderVOneDriveConsumer
+func ReferenceAttachmentProviderPOneDriveConsumer() *ReferenceAttachmentProvider {
+ v := ReferenceAttachmentProviderVOneDriveConsumer
+ return &v
+}
+
+// ReferenceAttachmentProviderPDropbox returns a pointer to ReferenceAttachmentProviderVDropbox
+func ReferenceAttachmentProviderPDropbox() *ReferenceAttachmentProvider {
+ v := ReferenceAttachmentProviderVDropbox
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ReferencedObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ReferencedObjectModel.go
new file mode 100644
index 00000000..1daef9b5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ReferencedObjectModel.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/matterbridge/msgraph.go/beta/RegistrationAuthMethodEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RegistrationAuthMethodEnum.go
new file mode 100644
index 00000000..18036f96
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RegistrationAuthMethodEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RegistrationAuthMethod undocumented
+type RegistrationAuthMethod int
+
+const (
+ // RegistrationAuthMethodVEmail undocumented
+ RegistrationAuthMethodVEmail RegistrationAuthMethod = 0
+ // RegistrationAuthMethodVMobilePhone undocumented
+ RegistrationAuthMethodVMobilePhone RegistrationAuthMethod = 1
+ // RegistrationAuthMethodVOfficePhone undocumented
+ RegistrationAuthMethodVOfficePhone RegistrationAuthMethod = 2
+ // RegistrationAuthMethodVSecurityQuestion undocumented
+ RegistrationAuthMethodVSecurityQuestion RegistrationAuthMethod = 3
+ // RegistrationAuthMethodVAppNotification undocumented
+ RegistrationAuthMethodVAppNotification RegistrationAuthMethod = 4
+ // RegistrationAuthMethodVAppCode undocumented
+ RegistrationAuthMethodVAppCode RegistrationAuthMethod = 5
+ // RegistrationAuthMethodVAlternateMobilePhone undocumented
+ RegistrationAuthMethodVAlternateMobilePhone RegistrationAuthMethod = 6
+ // RegistrationAuthMethodVFido undocumented
+ RegistrationAuthMethodVFido RegistrationAuthMethod = 7
+ // RegistrationAuthMethodVAppPassword undocumented
+ RegistrationAuthMethodVAppPassword RegistrationAuthMethod = 8
+ // RegistrationAuthMethodVUnknownFutureValue undocumented
+ RegistrationAuthMethodVUnknownFutureValue RegistrationAuthMethod = 9
+)
+
+// RegistrationAuthMethodPEmail returns a pointer to RegistrationAuthMethodVEmail
+func RegistrationAuthMethodPEmail() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVEmail
+ return &v
+}
+
+// RegistrationAuthMethodPMobilePhone returns a pointer to RegistrationAuthMethodVMobilePhone
+func RegistrationAuthMethodPMobilePhone() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVMobilePhone
+ return &v
+}
+
+// RegistrationAuthMethodPOfficePhone returns a pointer to RegistrationAuthMethodVOfficePhone
+func RegistrationAuthMethodPOfficePhone() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVOfficePhone
+ return &v
+}
+
+// RegistrationAuthMethodPSecurityQuestion returns a pointer to RegistrationAuthMethodVSecurityQuestion
+func RegistrationAuthMethodPSecurityQuestion() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVSecurityQuestion
+ return &v
+}
+
+// RegistrationAuthMethodPAppNotification returns a pointer to RegistrationAuthMethodVAppNotification
+func RegistrationAuthMethodPAppNotification() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVAppNotification
+ return &v
+}
+
+// RegistrationAuthMethodPAppCode returns a pointer to RegistrationAuthMethodVAppCode
+func RegistrationAuthMethodPAppCode() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVAppCode
+ return &v
+}
+
+// RegistrationAuthMethodPAlternateMobilePhone returns a pointer to RegistrationAuthMethodVAlternateMobilePhone
+func RegistrationAuthMethodPAlternateMobilePhone() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVAlternateMobilePhone
+ return &v
+}
+
+// RegistrationAuthMethodPFido returns a pointer to RegistrationAuthMethodVFido
+func RegistrationAuthMethodPFido() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVFido
+ return &v
+}
+
+// RegistrationAuthMethodPAppPassword returns a pointer to RegistrationAuthMethodVAppPassword
+func RegistrationAuthMethodPAppPassword() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVAppPassword
+ return &v
+}
+
+// RegistrationAuthMethodPUnknownFutureValue returns a pointer to RegistrationAuthMethodVUnknownFutureValue
+func RegistrationAuthMethodPUnknownFutureValue() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RegistrationStatusTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RegistrationStatusTypeEnum.go
new file mode 100644
index 00000000..d9df1458
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RegistrationStatusTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RegistrationStatusType undocumented
+type RegistrationStatusType int
+
+const (
+ // RegistrationStatusTypeVRegistered undocumented
+ RegistrationStatusTypeVRegistered RegistrationStatusType = 0
+ // RegistrationStatusTypeVEnabled undocumented
+ RegistrationStatusTypeVEnabled RegistrationStatusType = 1
+ // RegistrationStatusTypeVCapable undocumented
+ RegistrationStatusTypeVCapable RegistrationStatusType = 2
+ // RegistrationStatusTypeVMFARegistered undocumented
+ RegistrationStatusTypeVMFARegistered RegistrationStatusType = 3
+ // RegistrationStatusTypeVUnknownFutureValue undocumented
+ RegistrationStatusTypeVUnknownFutureValue RegistrationStatusType = 4
+)
+
+// RegistrationStatusTypePRegistered returns a pointer to RegistrationStatusTypeVRegistered
+func RegistrationStatusTypePRegistered() *RegistrationStatusType {
+ v := RegistrationStatusTypeVRegistered
+ return &v
+}
+
+// RegistrationStatusTypePEnabled returns a pointer to RegistrationStatusTypeVEnabled
+func RegistrationStatusTypePEnabled() *RegistrationStatusType {
+ v := RegistrationStatusTypeVEnabled
+ return &v
+}
+
+// RegistrationStatusTypePCapable returns a pointer to RegistrationStatusTypeVCapable
+func RegistrationStatusTypePCapable() *RegistrationStatusType {
+ v := RegistrationStatusTypeVCapable
+ return &v
+}
+
+// RegistrationStatusTypePMFARegistered returns a pointer to RegistrationStatusTypeVMFARegistered
+func RegistrationStatusTypePMFARegistered() *RegistrationStatusType {
+ v := RegistrationStatusTypeVMFARegistered
+ return &v
+}
+
+// RegistrationStatusTypePUnknownFutureValue returns a pointer to RegistrationStatusTypeVUnknownFutureValue
+func RegistrationStatusTypePUnknownFutureValue() *RegistrationStatusType {
+ v := RegistrationStatusTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RegistryHiveEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RegistryHiveEnum.go
new file mode 100644
index 00000000..d9e6d54c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RegistryHiveEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RegistryHive undocumented
+type RegistryHive int
+
+const (
+ // RegistryHiveVUnknown undocumented
+ RegistryHiveVUnknown RegistryHive = 0
+ // RegistryHiveVCurrentConfig undocumented
+ RegistryHiveVCurrentConfig RegistryHive = 1
+ // RegistryHiveVCurrentUser undocumented
+ RegistryHiveVCurrentUser RegistryHive = 2
+ // RegistryHiveVLocalMachineSam undocumented
+ RegistryHiveVLocalMachineSam RegistryHive = 3
+ // RegistryHiveVLocalMachineSecurity undocumented
+ RegistryHiveVLocalMachineSecurity RegistryHive = 4
+ // RegistryHiveVLocalMachineSoftware undocumented
+ RegistryHiveVLocalMachineSoftware RegistryHive = 5
+ // RegistryHiveVLocalMachineSystem undocumented
+ RegistryHiveVLocalMachineSystem RegistryHive = 6
+ // RegistryHiveVUsersDefault undocumented
+ RegistryHiveVUsersDefault RegistryHive = 7
+ // RegistryHiveVUnknownFutureValue undocumented
+ RegistryHiveVUnknownFutureValue RegistryHive = 127
+)
+
+// RegistryHivePUnknown returns a pointer to RegistryHiveVUnknown
+func RegistryHivePUnknown() *RegistryHive {
+ v := RegistryHiveVUnknown
+ return &v
+}
+
+// RegistryHivePCurrentConfig returns a pointer to RegistryHiveVCurrentConfig
+func RegistryHivePCurrentConfig() *RegistryHive {
+ v := RegistryHiveVCurrentConfig
+ return &v
+}
+
+// RegistryHivePCurrentUser returns a pointer to RegistryHiveVCurrentUser
+func RegistryHivePCurrentUser() *RegistryHive {
+ v := RegistryHiveVCurrentUser
+ return &v
+}
+
+// RegistryHivePLocalMachineSam returns a pointer to RegistryHiveVLocalMachineSam
+func RegistryHivePLocalMachineSam() *RegistryHive {
+ v := RegistryHiveVLocalMachineSam
+ return &v
+}
+
+// RegistryHivePLocalMachineSecurity returns a pointer to RegistryHiveVLocalMachineSecurity
+func RegistryHivePLocalMachineSecurity() *RegistryHive {
+ v := RegistryHiveVLocalMachineSecurity
+ return &v
+}
+
+// RegistryHivePLocalMachineSoftware returns a pointer to RegistryHiveVLocalMachineSoftware
+func RegistryHivePLocalMachineSoftware() *RegistryHive {
+ v := RegistryHiveVLocalMachineSoftware
+ return &v
+}
+
+// RegistryHivePLocalMachineSystem returns a pointer to RegistryHiveVLocalMachineSystem
+func RegistryHivePLocalMachineSystem() *RegistryHive {
+ v := RegistryHiveVLocalMachineSystem
+ return &v
+}
+
+// RegistryHivePUsersDefault returns a pointer to RegistryHiveVUsersDefault
+func RegistryHivePUsersDefault() *RegistryHive {
+ v := RegistryHiveVUsersDefault
+ return &v
+}
+
+// RegistryHivePUnknownFutureValue returns a pointer to RegistryHiveVUnknownFutureValue
+func RegistryHivePUnknownFutureValue() *RegistryHive {
+ v := RegistryHiveVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RegistryKeyStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RegistryKeyStateModel.go
new file mode 100644
index 00000000..dc29428c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RegistryKeyStateModel.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/matterbridge/msgraph.go/beta/RegistryOperationEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RegistryOperationEnum.go
new file mode 100644
index 00000000..aab7a2a2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RegistryOperationEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RegistryOperation undocumented
+type RegistryOperation int
+
+const (
+ // RegistryOperationVUnknown undocumented
+ RegistryOperationVUnknown RegistryOperation = 0
+ // RegistryOperationVCreate undocumented
+ RegistryOperationVCreate RegistryOperation = 1
+ // RegistryOperationVModify undocumented
+ RegistryOperationVModify RegistryOperation = 2
+ // RegistryOperationVDelete undocumented
+ RegistryOperationVDelete RegistryOperation = 3
+ // RegistryOperationVUnknownFutureValue undocumented
+ RegistryOperationVUnknownFutureValue RegistryOperation = 127
+)
+
+// RegistryOperationPUnknown returns a pointer to RegistryOperationVUnknown
+func RegistryOperationPUnknown() *RegistryOperation {
+ v := RegistryOperationVUnknown
+ return &v
+}
+
+// RegistryOperationPCreate returns a pointer to RegistryOperationVCreate
+func RegistryOperationPCreate() *RegistryOperation {
+ v := RegistryOperationVCreate
+ return &v
+}
+
+// RegistryOperationPModify returns a pointer to RegistryOperationVModify
+func RegistryOperationPModify() *RegistryOperation {
+ v := RegistryOperationVModify
+ return &v
+}
+
+// RegistryOperationPDelete returns a pointer to RegistryOperationVDelete
+func RegistryOperationPDelete() *RegistryOperation {
+ v := RegistryOperationVDelete
+ return &v
+}
+
+// RegistryOperationPUnknownFutureValue returns a pointer to RegistryOperationVUnknownFutureValue
+func RegistryOperationPUnknownFutureValue() *RegistryOperation {
+ v := RegistryOperationVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RegistryValueTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RegistryValueTypeEnum.go
new file mode 100644
index 00000000..80eed752
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RegistryValueTypeEnum.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RegistryValueType undocumented
+type RegistryValueType int
+
+const (
+ // RegistryValueTypeVUnknown undocumented
+ RegistryValueTypeVUnknown RegistryValueType = 0
+ // RegistryValueTypeVBinary undocumented
+ RegistryValueTypeVBinary RegistryValueType = 1
+ // RegistryValueTypeVDword undocumented
+ RegistryValueTypeVDword RegistryValueType = 2
+ // RegistryValueTypeVDwordLittleEndian undocumented
+ RegistryValueTypeVDwordLittleEndian RegistryValueType = 3
+ // RegistryValueTypeVDwordBigEndian undocumented
+ RegistryValueTypeVDwordBigEndian RegistryValueType = 4
+ // RegistryValueTypeVExpandSz undocumented
+ RegistryValueTypeVExpandSz RegistryValueType = 5
+ // RegistryValueTypeVLink undocumented
+ RegistryValueTypeVLink RegistryValueType = 6
+ // RegistryValueTypeVMultiSz undocumented
+ RegistryValueTypeVMultiSz RegistryValueType = 7
+ // RegistryValueTypeVNone undocumented
+ RegistryValueTypeVNone RegistryValueType = 8
+ // RegistryValueTypeVQword undocumented
+ RegistryValueTypeVQword RegistryValueType = 9
+ // RegistryValueTypeVQwordlittleEndian undocumented
+ RegistryValueTypeVQwordlittleEndian RegistryValueType = 10
+ // RegistryValueTypeVSz undocumented
+ RegistryValueTypeVSz RegistryValueType = 11
+ // RegistryValueTypeVUnknownFutureValue undocumented
+ RegistryValueTypeVUnknownFutureValue RegistryValueType = 127
+)
+
+// RegistryValueTypePUnknown returns a pointer to RegistryValueTypeVUnknown
+func RegistryValueTypePUnknown() *RegistryValueType {
+ v := RegistryValueTypeVUnknown
+ return &v
+}
+
+// RegistryValueTypePBinary returns a pointer to RegistryValueTypeVBinary
+func RegistryValueTypePBinary() *RegistryValueType {
+ v := RegistryValueTypeVBinary
+ return &v
+}
+
+// RegistryValueTypePDword returns a pointer to RegistryValueTypeVDword
+func RegistryValueTypePDword() *RegistryValueType {
+ v := RegistryValueTypeVDword
+ return &v
+}
+
+// RegistryValueTypePDwordLittleEndian returns a pointer to RegistryValueTypeVDwordLittleEndian
+func RegistryValueTypePDwordLittleEndian() *RegistryValueType {
+ v := RegistryValueTypeVDwordLittleEndian
+ return &v
+}
+
+// RegistryValueTypePDwordBigEndian returns a pointer to RegistryValueTypeVDwordBigEndian
+func RegistryValueTypePDwordBigEndian() *RegistryValueType {
+ v := RegistryValueTypeVDwordBigEndian
+ return &v
+}
+
+// RegistryValueTypePExpandSz returns a pointer to RegistryValueTypeVExpandSz
+func RegistryValueTypePExpandSz() *RegistryValueType {
+ v := RegistryValueTypeVExpandSz
+ return &v
+}
+
+// RegistryValueTypePLink returns a pointer to RegistryValueTypeVLink
+func RegistryValueTypePLink() *RegistryValueType {
+ v := RegistryValueTypeVLink
+ return &v
+}
+
+// RegistryValueTypePMultiSz returns a pointer to RegistryValueTypeVMultiSz
+func RegistryValueTypePMultiSz() *RegistryValueType {
+ v := RegistryValueTypeVMultiSz
+ return &v
+}
+
+// RegistryValueTypePNone returns a pointer to RegistryValueTypeVNone
+func RegistryValueTypePNone() *RegistryValueType {
+ v := RegistryValueTypeVNone
+ return &v
+}
+
+// RegistryValueTypePQword returns a pointer to RegistryValueTypeVQword
+func RegistryValueTypePQword() *RegistryValueType {
+ v := RegistryValueTypeVQword
+ return &v
+}
+
+// RegistryValueTypePQwordlittleEndian returns a pointer to RegistryValueTypeVQwordlittleEndian
+func RegistryValueTypePQwordlittleEndian() *RegistryValueType {
+ v := RegistryValueTypeVQwordlittleEndian
+ return &v
+}
+
+// RegistryValueTypePSz returns a pointer to RegistryValueTypeVSz
+func RegistryValueTypePSz() *RegistryValueType {
+ v := RegistryValueTypeVSz
+ return &v
+}
+
+// RegistryValueTypePUnknownFutureValue returns a pointer to RegistryValueTypeVUnknownFutureValue
+func RegistryValueTypePUnknownFutureValue() *RegistryValueType {
+ v := RegistryValueTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RejectReasonEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RejectReasonEnum.go
new file mode 100644
index 00000000..2996e689
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RejectReasonEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RejectReason undocumented
+type RejectReason int
+
+const (
+ // RejectReasonVNone undocumented
+ RejectReasonVNone RejectReason = 0
+ // RejectReasonVBusy undocumented
+ RejectReasonVBusy RejectReason = 1
+ // RejectReasonVForbidden undocumented
+ RejectReasonVForbidden RejectReason = 2
+ // RejectReasonVUnknownFutureValue undocumented
+ RejectReasonVUnknownFutureValue RejectReason = 3
+)
+
+// RejectReasonPNone returns a pointer to RejectReasonVNone
+func RejectReasonPNone() *RejectReason {
+ v := RejectReasonVNone
+ return &v
+}
+
+// RejectReasonPBusy returns a pointer to RejectReasonVBusy
+func RejectReasonPBusy() *RejectReason {
+ v := RejectReasonVBusy
+ return &v
+}
+
+// RejectReasonPForbidden returns a pointer to RejectReasonVForbidden
+func RejectReasonPForbidden() *RejectReason {
+ v := RejectReasonVForbidden
+ return &v
+}
+
+// RejectReasonPUnknownFutureValue returns a pointer to RejectReasonVUnknownFutureValue
+func RejectReasonPUnknownFutureValue() *RejectReason {
+ v := RejectReasonVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RelatedContactModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RelatedContactModel.go
new file mode 100644
index 00000000..71307111
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RelatedContactModel.go
@@ -0,0 +1,21 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RelatedPersonModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RelatedPersonModel.go
new file mode 100644
index 00000000..89d8bb28
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RelatedPersonModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/RelyingPartyDetailedSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RelyingPartyDetailedSummaryModel.go
new file mode 100644
index 00000000..1920d4fd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RelyingPartyDetailedSummaryModel.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/matterbridge/msgraph.go/beta/RemediationStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemediationStateEnum.go
new file mode 100644
index 00000000..c2c2442e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RemediationStateEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemediationState undocumented
+type RemediationState int
+
+const (
+ // RemediationStateVUnknown undocumented
+ RemediationStateVUnknown RemediationState = 0
+ // RemediationStateVSkipped undocumented
+ RemediationStateVSkipped RemediationState = 1
+ // RemediationStateVSuccess undocumented
+ RemediationStateVSuccess RemediationState = 2
+ // RemediationStateVRemediationFailed undocumented
+ RemediationStateVRemediationFailed RemediationState = 3
+ // RemediationStateVScriptError undocumented
+ RemediationStateVScriptError RemediationState = 4
+)
+
+// RemediationStatePUnknown returns a pointer to RemediationStateVUnknown
+func RemediationStatePUnknown() *RemediationState {
+ v := RemediationStateVUnknown
+ return &v
+}
+
+// RemediationStatePSkipped returns a pointer to RemediationStateVSkipped
+func RemediationStatePSkipped() *RemediationState {
+ v := RemediationStateVSkipped
+ return &v
+}
+
+// RemediationStatePSuccess returns a pointer to RemediationStateVSuccess
+func RemediationStatePSuccess() *RemediationState {
+ v := RemediationStateVSuccess
+ return &v
+}
+
+// RemediationStatePRemediationFailed returns a pointer to RemediationStateVRemediationFailed
+func RemediationStatePRemediationFailed() *RemediationState {
+ v := RemediationStateVRemediationFailed
+ return &v
+}
+
+// RemediationStatePScriptError returns a pointer to RemediationStateVScriptError
+func RemediationStatePScriptError() *RemediationState {
+ v := RemediationStateVScriptError
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ReminderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ReminderModel.go
new file mode 100644
index 00000000..ef800c55
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ReminderModel.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/matterbridge/msgraph.go/beta/RemoteActionAuditModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionAuditModel.go
new file mode 100644
index 00000000..23362e0c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionAuditModel.go
@@ -0,0 +1,29 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionAuditRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionAuditRequest.go
new file mode 100644
index 00000000..78e24eb4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionAuditRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionEnum.go
new file mode 100644
index 00000000..ebf83106
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionEnum.go
@@ -0,0 +1,193 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemoteAction undocumented
+type RemoteAction int
+
+const (
+ // RemoteActionVUnknown undocumented
+ RemoteActionVUnknown RemoteAction = 0
+ // RemoteActionVFactoryReset undocumented
+ RemoteActionVFactoryReset RemoteAction = 1
+ // RemoteActionVRemoveCompanyData undocumented
+ RemoteActionVRemoveCompanyData RemoteAction = 2
+ // RemoteActionVResetPasscode undocumented
+ RemoteActionVResetPasscode RemoteAction = 3
+ // RemoteActionVRemoteLock undocumented
+ RemoteActionVRemoteLock RemoteAction = 4
+ // RemoteActionVEnableLostMode undocumented
+ RemoteActionVEnableLostMode RemoteAction = 5
+ // RemoteActionVDisableLostMode undocumented
+ RemoteActionVDisableLostMode RemoteAction = 6
+ // RemoteActionVLocateDevice undocumented
+ RemoteActionVLocateDevice RemoteAction = 7
+ // RemoteActionVRebootNow undocumented
+ RemoteActionVRebootNow RemoteAction = 8
+ // RemoteActionVRecoverPasscode undocumented
+ RemoteActionVRecoverPasscode RemoteAction = 9
+ // RemoteActionVCleanWindowsDevice undocumented
+ RemoteActionVCleanWindowsDevice RemoteAction = 10
+ // RemoteActionVLogoutSharedAppleDeviceActiveUser undocumented
+ RemoteActionVLogoutSharedAppleDeviceActiveUser RemoteAction = 11
+ // RemoteActionVQuickScan undocumented
+ RemoteActionVQuickScan RemoteAction = 12
+ // RemoteActionVFullScan undocumented
+ RemoteActionVFullScan RemoteAction = 13
+ // RemoteActionVWindowsDefenderUpdateSignatures undocumented
+ RemoteActionVWindowsDefenderUpdateSignatures RemoteAction = 14
+ // RemoteActionVFactoryResetKeepEnrollmentData undocumented
+ RemoteActionVFactoryResetKeepEnrollmentData RemoteAction = 15
+ // RemoteActionVUpdateDeviceAccount undocumented
+ RemoteActionVUpdateDeviceAccount RemoteAction = 16
+ // RemoteActionVAutomaticRedeployment undocumented
+ RemoteActionVAutomaticRedeployment RemoteAction = 17
+ // RemoteActionVShutDown undocumented
+ RemoteActionVShutDown RemoteAction = 18
+ // RemoteActionVRotateBitLockerKeys undocumented
+ RemoteActionVRotateBitLockerKeys RemoteAction = 19
+ // RemoteActionVRotateFileVaultKey undocumented
+ RemoteActionVRotateFileVaultKey RemoteAction = 20
+ // RemoteActionVGetFileVaultKey undocumented
+ RemoteActionVGetFileVaultKey RemoteAction = 21
+ // RemoteActionVSetDeviceName undocumented
+ RemoteActionVSetDeviceName RemoteAction = 22
+)
+
+// RemoteActionPUnknown returns a pointer to RemoteActionVUnknown
+func RemoteActionPUnknown() *RemoteAction {
+ v := RemoteActionVUnknown
+ return &v
+}
+
+// RemoteActionPFactoryReset returns a pointer to RemoteActionVFactoryReset
+func RemoteActionPFactoryReset() *RemoteAction {
+ v := RemoteActionVFactoryReset
+ return &v
+}
+
+// RemoteActionPRemoveCompanyData returns a pointer to RemoteActionVRemoveCompanyData
+func RemoteActionPRemoveCompanyData() *RemoteAction {
+ v := RemoteActionVRemoveCompanyData
+ return &v
+}
+
+// RemoteActionPResetPasscode returns a pointer to RemoteActionVResetPasscode
+func RemoteActionPResetPasscode() *RemoteAction {
+ v := RemoteActionVResetPasscode
+ return &v
+}
+
+// RemoteActionPRemoteLock returns a pointer to RemoteActionVRemoteLock
+func RemoteActionPRemoteLock() *RemoteAction {
+ v := RemoteActionVRemoteLock
+ return &v
+}
+
+// RemoteActionPEnableLostMode returns a pointer to RemoteActionVEnableLostMode
+func RemoteActionPEnableLostMode() *RemoteAction {
+ v := RemoteActionVEnableLostMode
+ return &v
+}
+
+// RemoteActionPDisableLostMode returns a pointer to RemoteActionVDisableLostMode
+func RemoteActionPDisableLostMode() *RemoteAction {
+ v := RemoteActionVDisableLostMode
+ return &v
+}
+
+// RemoteActionPLocateDevice returns a pointer to RemoteActionVLocateDevice
+func RemoteActionPLocateDevice() *RemoteAction {
+ v := RemoteActionVLocateDevice
+ return &v
+}
+
+// RemoteActionPRebootNow returns a pointer to RemoteActionVRebootNow
+func RemoteActionPRebootNow() *RemoteAction {
+ v := RemoteActionVRebootNow
+ return &v
+}
+
+// RemoteActionPRecoverPasscode returns a pointer to RemoteActionVRecoverPasscode
+func RemoteActionPRecoverPasscode() *RemoteAction {
+ v := RemoteActionVRecoverPasscode
+ return &v
+}
+
+// RemoteActionPCleanWindowsDevice returns a pointer to RemoteActionVCleanWindowsDevice
+func RemoteActionPCleanWindowsDevice() *RemoteAction {
+ v := RemoteActionVCleanWindowsDevice
+ return &v
+}
+
+// RemoteActionPLogoutSharedAppleDeviceActiveUser returns a pointer to RemoteActionVLogoutSharedAppleDeviceActiveUser
+func RemoteActionPLogoutSharedAppleDeviceActiveUser() *RemoteAction {
+ v := RemoteActionVLogoutSharedAppleDeviceActiveUser
+ return &v
+}
+
+// RemoteActionPQuickScan returns a pointer to RemoteActionVQuickScan
+func RemoteActionPQuickScan() *RemoteAction {
+ v := RemoteActionVQuickScan
+ return &v
+}
+
+// RemoteActionPFullScan returns a pointer to RemoteActionVFullScan
+func RemoteActionPFullScan() *RemoteAction {
+ v := RemoteActionVFullScan
+ return &v
+}
+
+// RemoteActionPWindowsDefenderUpdateSignatures returns a pointer to RemoteActionVWindowsDefenderUpdateSignatures
+func RemoteActionPWindowsDefenderUpdateSignatures() *RemoteAction {
+ v := RemoteActionVWindowsDefenderUpdateSignatures
+ return &v
+}
+
+// RemoteActionPFactoryResetKeepEnrollmentData returns a pointer to RemoteActionVFactoryResetKeepEnrollmentData
+func RemoteActionPFactoryResetKeepEnrollmentData() *RemoteAction {
+ v := RemoteActionVFactoryResetKeepEnrollmentData
+ return &v
+}
+
+// RemoteActionPUpdateDeviceAccount returns a pointer to RemoteActionVUpdateDeviceAccount
+func RemoteActionPUpdateDeviceAccount() *RemoteAction {
+ v := RemoteActionVUpdateDeviceAccount
+ return &v
+}
+
+// RemoteActionPAutomaticRedeployment returns a pointer to RemoteActionVAutomaticRedeployment
+func RemoteActionPAutomaticRedeployment() *RemoteAction {
+ v := RemoteActionVAutomaticRedeployment
+ return &v
+}
+
+// RemoteActionPShutDown returns a pointer to RemoteActionVShutDown
+func RemoteActionPShutDown() *RemoteAction {
+ v := RemoteActionVShutDown
+ return &v
+}
+
+// RemoteActionPRotateBitLockerKeys returns a pointer to RemoteActionVRotateBitLockerKeys
+func RemoteActionPRotateBitLockerKeys() *RemoteAction {
+ v := RemoteActionVRotateBitLockerKeys
+ return &v
+}
+
+// RemoteActionPRotateFileVaultKey returns a pointer to RemoteActionVRotateFileVaultKey
+func RemoteActionPRotateFileVaultKey() *RemoteAction {
+ v := RemoteActionVRotateFileVaultKey
+ return &v
+}
+
+// RemoteActionPGetFileVaultKey returns a pointer to RemoteActionVGetFileVaultKey
+func RemoteActionPGetFileVaultKey() *RemoteAction {
+ v := RemoteActionVGetFileVaultKey
+ return &v
+}
+
+// RemoteActionPSetDeviceName returns a pointer to RemoteActionVSetDeviceName
+func RemoteActionPSetDeviceName() *RemoteAction {
+ v := RemoteActionVSetDeviceName
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistanceOnboardingStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistanceOnboardingStatusEnum.go
new file mode 100644
index 00000000..d3307118
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistanceOnboardingStatusEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemoteAssistanceOnboardingStatus undocumented
+type RemoteAssistanceOnboardingStatus int
+
+const (
+ // RemoteAssistanceOnboardingStatusVNotOnboarded undocumented
+ RemoteAssistanceOnboardingStatusVNotOnboarded RemoteAssistanceOnboardingStatus = 0
+ // RemoteAssistanceOnboardingStatusVOnboarding undocumented
+ RemoteAssistanceOnboardingStatusVOnboarding RemoteAssistanceOnboardingStatus = 1
+ // RemoteAssistanceOnboardingStatusVOnboarded undocumented
+ RemoteAssistanceOnboardingStatusVOnboarded RemoteAssistanceOnboardingStatus = 2
+)
+
+// RemoteAssistanceOnboardingStatusPNotOnboarded returns a pointer to RemoteAssistanceOnboardingStatusVNotOnboarded
+func RemoteAssistanceOnboardingStatusPNotOnboarded() *RemoteAssistanceOnboardingStatus {
+ v := RemoteAssistanceOnboardingStatusVNotOnboarded
+ return &v
+}
+
+// RemoteAssistanceOnboardingStatusPOnboarding returns a pointer to RemoteAssistanceOnboardingStatusVOnboarding
+func RemoteAssistanceOnboardingStatusPOnboarding() *RemoteAssistanceOnboardingStatus {
+ v := RemoteAssistanceOnboardingStatusVOnboarding
+ return &v
+}
+
+// RemoteAssistanceOnboardingStatusPOnboarded returns a pointer to RemoteAssistanceOnboardingStatusVOnboarded
+func RemoteAssistanceOnboardingStatusPOnboarded() *RemoteAssistanceOnboardingStatus {
+ v := RemoteAssistanceOnboardingStatusVOnboarded
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerAction.go
new file mode 100644
index 00000000..c22011f2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerAction.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RemoteAssistancePartnerBeginOnboardingRequestParameter undocumented
+type RemoteAssistancePartnerBeginOnboardingRequestParameter struct {
+}
+
+// RemoteAssistancePartnerDisconnectRequestParameter undocumented
+type RemoteAssistancePartnerDisconnectRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/RemoteAssistancePartnerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerModel.go
new file mode 100644
index 00000000..f4c25b06
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerRequest.go
new file mode 100644
index 00000000..f713cfd7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteItemModel.go
new file mode 100644
index 00000000..d8e0434b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteItemModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteLockActionResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteLockActionResultModel.go
new file mode 100644
index 00000000..5d35b431
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteLockActionResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/RemoveContentFooterActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemoveContentFooterActionModel.go
new file mode 100644
index 00000000..5c45fd65
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RemoveContentFooterActionModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RemoveContentHeaderActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemoveContentHeaderActionModel.go
new file mode 100644
index 00000000..44f5a8a8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RemoveContentHeaderActionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemoveContentHeaderAction undocumented
+type RemoveContentHeaderAction struct {
+ // InformationProtectionAction is the base model of RemoveContentHeaderAction
+ InformationProtectionAction
+ // UIElementNames undocumented
+ UIElementNames []string `json:"uiElementNames,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RemoveProtectionActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemoveProtectionActionModel.go
new file mode 100644
index 00000000..eecc9f80
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RemoveProtectionActionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemoveProtectionAction undocumented
+type RemoveProtectionAction struct {
+ // InformationProtectionAction is the base model of RemoveProtectionAction
+ InformationProtectionAction
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RemoveWatermarkActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemoveWatermarkActionModel.go
new file mode 100644
index 00000000..83a2d99a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RemoveWatermarkActionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/RenameActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RenameActionModel.go
new file mode 100644
index 00000000..68f06de8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RenameActionModel.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/matterbridge/msgraph.go/beta/ReportModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ReportModel.go
new file mode 100644
index 00000000..d514a389
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ReportModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ReportRootModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ReportRootModel.go
new file mode 100644
index 00000000..a6db5273
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ReportRootModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ReportRootRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ReportRootRequest.go
new file mode 100644
index 00000000..e0ce0890
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ReportRootRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ApplicationSignInDetailedSummary collection
+func (r *ReportRootApplicationSignInDetailedSummaryCollectionRequest) Get(ctx context.Context) ([]ApplicationSignInDetailedSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CredentialUserRegistrationDetails collection
+func (r *ReportRootCredentialUserRegistrationDetailsCollectionRequest) Get(ctx context.Context) ([]CredentialUserRegistrationDetails, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserCredentialUsageDetails collection
+func (r *ReportRootUserCredentialUsageDetailsCollectionRequest) Get(ctx context.Context) ([]UserCredentialUsageDetails, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ReputationCategoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ReputationCategoryModel.go
new file mode 100644
index 00000000..b42108e3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ReputationCategoryModel.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/matterbridge/msgraph.go/beta/RequestObjectAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectAction.go
new file mode 100644
index 00000000..e37e70b1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectAction.go
@@ -0,0 +1,69 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RequestObjectStopRequestParameter undocumented
+type RequestObjectStopRequestParameter struct {
+}
+
+// RequestObjectRecordDecisionsRequestParameter undocumented
+type RequestObjectRecordDecisionsRequestParameter struct {
+ // ReviewResult undocumented
+ ReviewResult *string `json:"reviewResult,omitempty"`
+ // Justification undocumented
+ Justification *string `json:"justification,omitempty"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/RequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectModel.go
new file mode 100644
index 00000000..ccc09fc4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectModel.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/matterbridge/msgraph.go/beta/RequestObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectRequest.go
new file mode 100644
index 00000000..4183b946
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReviewDecision collection
+func (r *RequestObjectDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReviewDecision collection
+func (r *RequestObjectMyDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/RequiredPasswordTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RequiredPasswordTypeEnum.go
new file mode 100644
index 00000000..82bbdffc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RequiredPasswordTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RequiredPasswordType undocumented
+type RequiredPasswordType int
+
+const (
+ // RequiredPasswordTypeVDeviceDefault undocumented
+ RequiredPasswordTypeVDeviceDefault RequiredPasswordType = 0
+ // RequiredPasswordTypeVAlphanumeric undocumented
+ RequiredPasswordTypeVAlphanumeric RequiredPasswordType = 1
+ // RequiredPasswordTypeVNumeric undocumented
+ RequiredPasswordTypeVNumeric RequiredPasswordType = 2
+)
+
+// RequiredPasswordTypePDeviceDefault returns a pointer to RequiredPasswordTypeVDeviceDefault
+func RequiredPasswordTypePDeviceDefault() *RequiredPasswordType {
+ v := RequiredPasswordTypeVDeviceDefault
+ return &v
+}
+
+// RequiredPasswordTypePAlphanumeric returns a pointer to RequiredPasswordTypeVAlphanumeric
+func RequiredPasswordTypePAlphanumeric() *RequiredPasswordType {
+ v := RequiredPasswordTypeVAlphanumeric
+ return &v
+}
+
+// RequiredPasswordTypePNumeric returns a pointer to RequiredPasswordTypeVNumeric
+func RequiredPasswordTypePNumeric() *RequiredPasswordType {
+ v := RequiredPasswordTypeVNumeric
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RequiredResourceAccessModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RequiredResourceAccessModel.go
new file mode 100644
index 00000000..cf8fc609
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RequiredResourceAccessModel.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/matterbridge/msgraph.go/beta/RequirementProviderEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RequirementProviderEnum.go
new file mode 100644
index 00000000..0848e87d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RequirementProviderEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RequirementProvider undocumented
+type RequirementProvider int
+
+const (
+ // RequirementProviderVMFA undocumented
+ RequirementProviderVMFA RequirementProvider = 0
+ // RequirementProviderVCA undocumented
+ RequirementProviderVCA RequirementProvider = 1
+ // RequirementProviderVUnknownFutureValue undocumented
+ RequirementProviderVUnknownFutureValue RequirementProvider = 2
+)
+
+// RequirementProviderPMFA returns a pointer to RequirementProviderVMFA
+func RequirementProviderPMFA() *RequirementProvider {
+ v := RequirementProviderVMFA
+ return &v
+}
+
+// RequirementProviderPCA returns a pointer to RequirementProviderVCA
+func RequirementProviderPCA() *RequirementProvider {
+ v := RequirementProviderVCA
+ return &v
+}
+
+// RequirementProviderPUnknownFutureValue returns a pointer to RequirementProviderVUnknownFutureValue
+func RequirementProviderPUnknownFutureValue() *RequirementProvider {
+ v := RequirementProviderVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResetPasscodeActionResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResetPasscodeActionResultModel.go
new file mode 100644
index 00000000..b421b61d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResetPasscodeActionResultModel.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/matterbridge/msgraph.go/beta/ResourceAccessModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceAccessModel.go
new file mode 100644
index 00000000..8625c677
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceAccessModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceActionModel.go
new file mode 100644
index 00000000..e258fa4f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceActionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceOperationModel.go
new file mode 100644
index 00000000..de52fa1e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceOperationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceOperationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceOperationRequest.go
new file mode 100644
index 00000000..b1b94f07
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceOperationRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResourcePermissionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResourcePermissionModel.go
new file mode 100644
index 00000000..dd1aaf61
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResourcePermissionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResourcePropertiesModelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResourcePropertiesModelModel.go
new file mode 100644
index 00000000..55f23dc6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResourcePropertiesModelModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceReferenceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceReferenceModel.go
new file mode 100644
index 00000000..ba8e92e2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceReferenceModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionGrantModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionGrantModel.go
new file mode 100644
index 00000000..eca0b27b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionGrantModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionGrantRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionGrantRequest.go
new file mode 100644
index 00000000..dcb83ff1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionGrantRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/ResourceSpecificPermissionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionModel.go
new file mode 100644
index 00000000..c456bd0b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceVisualizationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceVisualizationModel.go
new file mode 100644
index 00000000..55a200c2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceVisualizationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ResponseStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResponseStatusModel.go
new file mode 100644
index 00000000..feb5a2e2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResponseStatusModel.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/matterbridge/msgraph.go/beta/ResponseTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResponseTypeEnum.go
new file mode 100644
index 00000000..7281cf5d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResponseTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResponseType undocumented
+type ResponseType int
+
+const (
+ // ResponseTypeVNone undocumented
+ ResponseTypeVNone ResponseType = 0
+ // ResponseTypeVOrganizer undocumented
+ ResponseTypeVOrganizer ResponseType = 1
+ // ResponseTypeVTentativelyAccepted undocumented
+ ResponseTypeVTentativelyAccepted ResponseType = 2
+ // ResponseTypeVAccepted undocumented
+ ResponseTypeVAccepted ResponseType = 3
+ // ResponseTypeVDeclined undocumented
+ ResponseTypeVDeclined ResponseType = 4
+ // ResponseTypeVNotResponded undocumented
+ ResponseTypeVNotResponded ResponseType = 5
+)
+
+// ResponseTypePNone returns a pointer to ResponseTypeVNone
+func ResponseTypePNone() *ResponseType {
+ v := ResponseTypeVNone
+ return &v
+}
+
+// ResponseTypePOrganizer returns a pointer to ResponseTypeVOrganizer
+func ResponseTypePOrganizer() *ResponseType {
+ v := ResponseTypeVOrganizer
+ return &v
+}
+
+// ResponseTypePTentativelyAccepted returns a pointer to ResponseTypeVTentativelyAccepted
+func ResponseTypePTentativelyAccepted() *ResponseType {
+ v := ResponseTypeVTentativelyAccepted
+ return &v
+}
+
+// ResponseTypePAccepted returns a pointer to ResponseTypeVAccepted
+func ResponseTypePAccepted() *ResponseType {
+ v := ResponseTypeVAccepted
+ return &v
+}
+
+// ResponseTypePDeclined returns a pointer to ResponseTypeVDeclined
+func ResponseTypePDeclined() *ResponseType {
+ v := ResponseTypeVDeclined
+ return &v
+}
+
+// ResponseTypePNotResponded returns a pointer to ResponseTypeVNotResponded
+func ResponseTypePNotResponded() *ResponseType {
+ v := ResponseTypeVNotResponded
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResponsiblePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResponsiblePolicyModel.go
new file mode 100644
index 00000000..6c549cfe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResponsiblePolicyModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResponsibleSensitiveTypeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResponsibleSensitiveTypeModel.go
new file mode 100644
index 00000000..2c9cf730
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResponsibleSensitiveTypeModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/RestoreActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RestoreActionModel.go
new file mode 100644
index 00000000..62679c24
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RestoreActionModel.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/matterbridge/msgraph.go/beta/RestrictedAppsStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsStateEnum.go
new file mode 100644
index 00000000..01456d1f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsStateEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RestrictedAppsState undocumented
+type RestrictedAppsState int
+
+const (
+ // RestrictedAppsStateVProhibitedApps undocumented
+ RestrictedAppsStateVProhibitedApps RestrictedAppsState = 0
+ // RestrictedAppsStateVNotApprovedApps undocumented
+ RestrictedAppsStateVNotApprovedApps RestrictedAppsState = 1
+)
+
+// RestrictedAppsStatePProhibitedApps returns a pointer to RestrictedAppsStateVProhibitedApps
+func RestrictedAppsStatePProhibitedApps() *RestrictedAppsState {
+ v := RestrictedAppsStateVProhibitedApps
+ return &v
+}
+
+// RestrictedAppsStatePNotApprovedApps returns a pointer to RestrictedAppsStateVNotApprovedApps
+func RestrictedAppsStatePNotApprovedApps() *RestrictedAppsState {
+ v := RestrictedAppsStateVNotApprovedApps
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsViolationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsViolationModel.go
new file mode 100644
index 00000000..f1951d18
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsViolationModel.go
@@ -0,0 +1,27 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsViolationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsViolationRequest.go
new file mode 100644
index 00000000..1473eee1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsViolationRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedSignInModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedSignInModel.go
new file mode 100644
index 00000000..ff90680b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedSignInModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/RestrictedSignInRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedSignInRequest.go
new file mode 100644
index 00000000..c81723fe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedSignInRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/RestrictionActionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RestrictionActionEnum.go
new file mode 100644
index 00000000..b0a8efb6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RestrictionActionEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RestrictionAction undocumented
+type RestrictionAction int
+
+const (
+ // RestrictionActionVWarn undocumented
+ RestrictionActionVWarn RestrictionAction = 0
+ // RestrictionActionVAudit undocumented
+ RestrictionActionVAudit RestrictionAction = 1
+ // RestrictionActionVBlock undocumented
+ RestrictionActionVBlock RestrictionAction = 2
+)
+
+// RestrictionActionPWarn returns a pointer to RestrictionActionVWarn
+func RestrictionActionPWarn() *RestrictionAction {
+ v := RestrictionActionVWarn
+ return &v
+}
+
+// RestrictionActionPAudit returns a pointer to RestrictionActionVAudit
+func RestrictionActionPAudit() *RestrictionAction {
+ v := RestrictionActionVAudit
+ return &v
+}
+
+// RestrictionActionPBlock returns a pointer to RestrictionActionVBlock
+func RestrictionActionPBlock() *RestrictionAction {
+ v := RestrictionActionVBlock
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RestrictionTriggerEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RestrictionTriggerEnum.go
new file mode 100644
index 00000000..7fc03727
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RestrictionTriggerEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RestrictionTrigger undocumented
+type RestrictionTrigger int
+
+const (
+ // RestrictionTriggerVCopyPaste undocumented
+ RestrictionTriggerVCopyPaste RestrictionTrigger = 0
+ // RestrictionTriggerVCopyToNetworkShare undocumented
+ RestrictionTriggerVCopyToNetworkShare RestrictionTrigger = 1
+ // RestrictionTriggerVCopyToRemovableMedia undocumented
+ RestrictionTriggerVCopyToRemovableMedia RestrictionTrigger = 2
+ // RestrictionTriggerVScreenCapture undocumented
+ RestrictionTriggerVScreenCapture RestrictionTrigger = 3
+ // RestrictionTriggerVPrint undocumented
+ RestrictionTriggerVPrint RestrictionTrigger = 4
+ // RestrictionTriggerVCloudEgress undocumented
+ RestrictionTriggerVCloudEgress RestrictionTrigger = 5
+ // RestrictionTriggerVUnallowedApps undocumented
+ RestrictionTriggerVUnallowedApps RestrictionTrigger = 6
+)
+
+// RestrictionTriggerPCopyPaste returns a pointer to RestrictionTriggerVCopyPaste
+func RestrictionTriggerPCopyPaste() *RestrictionTrigger {
+ v := RestrictionTriggerVCopyPaste
+ return &v
+}
+
+// RestrictionTriggerPCopyToNetworkShare returns a pointer to RestrictionTriggerVCopyToNetworkShare
+func RestrictionTriggerPCopyToNetworkShare() *RestrictionTrigger {
+ v := RestrictionTriggerVCopyToNetworkShare
+ return &v
+}
+
+// RestrictionTriggerPCopyToRemovableMedia returns a pointer to RestrictionTriggerVCopyToRemovableMedia
+func RestrictionTriggerPCopyToRemovableMedia() *RestrictionTrigger {
+ v := RestrictionTriggerVCopyToRemovableMedia
+ return &v
+}
+
+// RestrictionTriggerPScreenCapture returns a pointer to RestrictionTriggerVScreenCapture
+func RestrictionTriggerPScreenCapture() *RestrictionTrigger {
+ v := RestrictionTriggerVScreenCapture
+ return &v
+}
+
+// RestrictionTriggerPPrint returns a pointer to RestrictionTriggerVPrint
+func RestrictionTriggerPPrint() *RestrictionTrigger {
+ v := RestrictionTriggerVPrint
+ return &v
+}
+
+// RestrictionTriggerPCloudEgress returns a pointer to RestrictionTriggerVCloudEgress
+func RestrictionTriggerPCloudEgress() *RestrictionTrigger {
+ v := RestrictionTriggerVCloudEgress
+ return &v
+}
+
+// RestrictionTriggerPUnallowedApps returns a pointer to RestrictionTriggerVUnallowedApps
+func RestrictionTriggerPUnallowedApps() *RestrictionTrigger {
+ v := RestrictionTriggerVUnallowedApps
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResultInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResultInfoModel.go
new file mode 100644
index 00000000..9b34e8f9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResultInfoModel.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/matterbridge/msgraph.go/beta/ResultantAppStateDetailEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResultantAppStateDetailEnum.go
new file mode 100644
index 00000000..9e37b207
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResultantAppStateDetailEnum.go
@@ -0,0 +1,169 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResultantAppStateDetail undocumented
+type ResultantAppStateDetail int
+
+const (
+ // ResultantAppStateDetailVNoAdditionalDetails undocumented
+ ResultantAppStateDetailVNoAdditionalDetails ResultantAppStateDetail = 0
+ // ResultantAppStateDetailVDependencyFailedToInstall undocumented
+ ResultantAppStateDetailVDependencyFailedToInstall ResultantAppStateDetail = 1
+ // ResultantAppStateDetailVDependencyWithRequirementsNotMet undocumented
+ ResultantAppStateDetailVDependencyWithRequirementsNotMet ResultantAppStateDetail = 2
+ // ResultantAppStateDetailVDependencyPendingReboot undocumented
+ ResultantAppStateDetailVDependencyPendingReboot ResultantAppStateDetail = 3
+ // ResultantAppStateDetailVDependencyWithAutoInstallDisabled undocumented
+ ResultantAppStateDetailVDependencyWithAutoInstallDisabled ResultantAppStateDetail = 4
+ // ResultantAppStateDetailVSeeInstallErrorCode undocumented
+ ResultantAppStateDetailVSeeInstallErrorCode ResultantAppStateDetail = 2000
+ // ResultantAppStateDetailVAutoInstallDisabled undocumented
+ ResultantAppStateDetailVAutoInstallDisabled ResultantAppStateDetail = 3000
+ // ResultantAppStateDetailVSeeUninstallErrorCode undocumented
+ ResultantAppStateDetailVSeeUninstallErrorCode ResultantAppStateDetail = 4000
+ // ResultantAppStateDetailVPendingReboot undocumented
+ ResultantAppStateDetailVPendingReboot ResultantAppStateDetail = 5000
+ // ResultantAppStateDetailVInstallingDependencies undocumented
+ ResultantAppStateDetailVInstallingDependencies ResultantAppStateDetail = 5001
+ // ResultantAppStateDetailVPowerShellScriptRequirementNotMet undocumented
+ ResultantAppStateDetailVPowerShellScriptRequirementNotMet ResultantAppStateDetail = -1013
+ // ResultantAppStateDetailVRegistryRequirementNotMet undocumented
+ ResultantAppStateDetailVRegistryRequirementNotMet ResultantAppStateDetail = -1012
+ // ResultantAppStateDetailVFileSystemRequirementNotMet undocumented
+ ResultantAppStateDetailVFileSystemRequirementNotMet ResultantAppStateDetail = -1011
+ // ResultantAppStateDetailVPlatformNotApplicable undocumented
+ ResultantAppStateDetailVPlatformNotApplicable ResultantAppStateDetail = -1006
+ // ResultantAppStateDetailVMinimumCPUSpeedNotMet undocumented
+ ResultantAppStateDetailVMinimumCPUSpeedNotMet ResultantAppStateDetail = -1005
+ // ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet undocumented
+ ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet ResultantAppStateDetail = -1004
+ // ResultantAppStateDetailVMinimumPhysicalMemoryNotMet undocumented
+ ResultantAppStateDetailVMinimumPhysicalMemoryNotMet ResultantAppStateDetail = -1003
+ // ResultantAppStateDetailVMinimumOsVersionNotMet undocumented
+ ResultantAppStateDetailVMinimumOsVersionNotMet ResultantAppStateDetail = -1002
+ // ResultantAppStateDetailVMinimumDiskSpaceNotMet undocumented
+ ResultantAppStateDetailVMinimumDiskSpaceNotMet ResultantAppStateDetail = -1001
+ // ResultantAppStateDetailVProcessorArchitectureNotApplicable undocumented
+ ResultantAppStateDetailVProcessorArchitectureNotApplicable ResultantAppStateDetail = -1000
+)
+
+// ResultantAppStateDetailPNoAdditionalDetails returns a pointer to ResultantAppStateDetailVNoAdditionalDetails
+func ResultantAppStateDetailPNoAdditionalDetails() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVNoAdditionalDetails
+ return &v
+}
+
+// ResultantAppStateDetailPDependencyFailedToInstall returns a pointer to ResultantAppStateDetailVDependencyFailedToInstall
+func ResultantAppStateDetailPDependencyFailedToInstall() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVDependencyFailedToInstall
+ return &v
+}
+
+// ResultantAppStateDetailPDependencyWithRequirementsNotMet returns a pointer to ResultantAppStateDetailVDependencyWithRequirementsNotMet
+func ResultantAppStateDetailPDependencyWithRequirementsNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVDependencyWithRequirementsNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPDependencyPendingReboot returns a pointer to ResultantAppStateDetailVDependencyPendingReboot
+func ResultantAppStateDetailPDependencyPendingReboot() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVDependencyPendingReboot
+ return &v
+}
+
+// ResultantAppStateDetailPDependencyWithAutoInstallDisabled returns a pointer to ResultantAppStateDetailVDependencyWithAutoInstallDisabled
+func ResultantAppStateDetailPDependencyWithAutoInstallDisabled() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVDependencyWithAutoInstallDisabled
+ return &v
+}
+
+// ResultantAppStateDetailPSeeInstallErrorCode returns a pointer to ResultantAppStateDetailVSeeInstallErrorCode
+func ResultantAppStateDetailPSeeInstallErrorCode() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVSeeInstallErrorCode
+ return &v
+}
+
+// ResultantAppStateDetailPAutoInstallDisabled returns a pointer to ResultantAppStateDetailVAutoInstallDisabled
+func ResultantAppStateDetailPAutoInstallDisabled() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVAutoInstallDisabled
+ return &v
+}
+
+// ResultantAppStateDetailPSeeUninstallErrorCode returns a pointer to ResultantAppStateDetailVSeeUninstallErrorCode
+func ResultantAppStateDetailPSeeUninstallErrorCode() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVSeeUninstallErrorCode
+ return &v
+}
+
+// ResultantAppStateDetailPPendingReboot returns a pointer to ResultantAppStateDetailVPendingReboot
+func ResultantAppStateDetailPPendingReboot() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVPendingReboot
+ return &v
+}
+
+// ResultantAppStateDetailPInstallingDependencies returns a pointer to ResultantAppStateDetailVInstallingDependencies
+func ResultantAppStateDetailPInstallingDependencies() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVInstallingDependencies
+ return &v
+}
+
+// ResultantAppStateDetailPPowerShellScriptRequirementNotMet returns a pointer to ResultantAppStateDetailVPowerShellScriptRequirementNotMet
+func ResultantAppStateDetailPPowerShellScriptRequirementNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVPowerShellScriptRequirementNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPRegistryRequirementNotMet returns a pointer to ResultantAppStateDetailVRegistryRequirementNotMet
+func ResultantAppStateDetailPRegistryRequirementNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVRegistryRequirementNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPFileSystemRequirementNotMet returns a pointer to ResultantAppStateDetailVFileSystemRequirementNotMet
+func ResultantAppStateDetailPFileSystemRequirementNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVFileSystemRequirementNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPPlatformNotApplicable returns a pointer to ResultantAppStateDetailVPlatformNotApplicable
+func ResultantAppStateDetailPPlatformNotApplicable() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVPlatformNotApplicable
+ return &v
+}
+
+// ResultantAppStateDetailPMinimumCPUSpeedNotMet returns a pointer to ResultantAppStateDetailVMinimumCPUSpeedNotMet
+func ResultantAppStateDetailPMinimumCPUSpeedNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVMinimumCPUSpeedNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPMinimumLogicalProcessorCountNotMet returns a pointer to ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet
+func ResultantAppStateDetailPMinimumLogicalProcessorCountNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPMinimumPhysicalMemoryNotMet returns a pointer to ResultantAppStateDetailVMinimumPhysicalMemoryNotMet
+func ResultantAppStateDetailPMinimumPhysicalMemoryNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVMinimumPhysicalMemoryNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPMinimumOsVersionNotMet returns a pointer to ResultantAppStateDetailVMinimumOsVersionNotMet
+func ResultantAppStateDetailPMinimumOsVersionNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVMinimumOsVersionNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPMinimumDiskSpaceNotMet returns a pointer to ResultantAppStateDetailVMinimumDiskSpaceNotMet
+func ResultantAppStateDetailPMinimumDiskSpaceNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVMinimumDiskSpaceNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPProcessorArchitectureNotApplicable returns a pointer to ResultantAppStateDetailVProcessorArchitectureNotApplicable
+func ResultantAppStateDetailPProcessorArchitectureNotApplicable() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVProcessorArchitectureNotApplicable
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResultantAppStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResultantAppStateEnum.go
new file mode 100644
index 00000000..a4dae992
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ResultantAppStateEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResultantAppState undocumented
+type ResultantAppState int
+
+const (
+ // ResultantAppStateVInstalled undocumented
+ ResultantAppStateVInstalled ResultantAppState = 1
+ // ResultantAppStateVFailed undocumented
+ ResultantAppStateVFailed ResultantAppState = 2
+ // ResultantAppStateVNotInstalled undocumented
+ ResultantAppStateVNotInstalled ResultantAppState = 3
+ // ResultantAppStateVUninstallFailed undocumented
+ ResultantAppStateVUninstallFailed ResultantAppState = 4
+ // ResultantAppStateVPendingInstall undocumented
+ ResultantAppStateVPendingInstall ResultantAppState = 5
+ // ResultantAppStateVUnknown undocumented
+ ResultantAppStateVUnknown ResultantAppState = 99
+ // ResultantAppStateVNotApplicable undocumented
+ ResultantAppStateVNotApplicable ResultantAppState = -1
+)
+
+// ResultantAppStatePInstalled returns a pointer to ResultantAppStateVInstalled
+func ResultantAppStatePInstalled() *ResultantAppState {
+ v := ResultantAppStateVInstalled
+ return &v
+}
+
+// ResultantAppStatePFailed returns a pointer to ResultantAppStateVFailed
+func ResultantAppStatePFailed() *ResultantAppState {
+ v := ResultantAppStateVFailed
+ return &v
+}
+
+// ResultantAppStatePNotInstalled returns a pointer to ResultantAppStateVNotInstalled
+func ResultantAppStatePNotInstalled() *ResultantAppState {
+ v := ResultantAppStateVNotInstalled
+ return &v
+}
+
+// ResultantAppStatePUninstallFailed returns a pointer to ResultantAppStateVUninstallFailed
+func ResultantAppStatePUninstallFailed() *ResultantAppState {
+ v := ResultantAppStateVUninstallFailed
+ return &v
+}
+
+// ResultantAppStatePPendingInstall returns a pointer to ResultantAppStateVPendingInstall
+func ResultantAppStatePPendingInstall() *ResultantAppState {
+ v := ResultantAppStateVPendingInstall
+ return &v
+}
+
+// ResultantAppStatePUnknown returns a pointer to ResultantAppStateVUnknown
+func ResultantAppStatePUnknown() *ResultantAppState {
+ v := ResultantAppStateVUnknown
+ return &v
+}
+
+// ResultantAppStatePNotApplicable returns a pointer to ResultantAppStateVNotApplicable
+func ResultantAppStatePNotApplicable() *ResultantAppState {
+ v := ResultantAppStateVNotApplicable
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RevokeAppleVppLicensesActionResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RevokeAppleVppLicensesActionResultModel.go
new file mode 100644
index 00000000..e5fdc888
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RevokeAppleVppLicensesActionResultModel.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/matterbridge/msgraph.go/beta/RgbColorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RgbColorModel.go
new file mode 100644
index 00000000..4f1812b0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RgbColorModel.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/matterbridge/msgraph.go/beta/RiskDetailEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetailEnum.go
new file mode 100644
index 00000000..06a8d75e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetailEnum.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskDetail undocumented
+type RiskDetail int
+
+const (
+ // RiskDetailVNone undocumented
+ RiskDetailVNone RiskDetail = 0
+ // RiskDetailVAdminGeneratedTemporaryPassword undocumented
+ RiskDetailVAdminGeneratedTemporaryPassword RiskDetail = 1
+ // RiskDetailVUserPerformedSecuredPasswordChange undocumented
+ RiskDetailVUserPerformedSecuredPasswordChange RiskDetail = 2
+ // RiskDetailVUserPerformedSecuredPasswordReset undocumented
+ RiskDetailVUserPerformedSecuredPasswordReset RiskDetail = 3
+ // RiskDetailVAdminConfirmedSigninSafe undocumented
+ RiskDetailVAdminConfirmedSigninSafe RiskDetail = 4
+ // RiskDetailVAiConfirmedSigninSafe undocumented
+ RiskDetailVAiConfirmedSigninSafe RiskDetail = 5
+ // RiskDetailVUserPassedMFADrivenByRiskBasedPolicy undocumented
+ RiskDetailVUserPassedMFADrivenByRiskBasedPolicy RiskDetail = 6
+ // RiskDetailVAdminDismissedAllRiskForUser undocumented
+ RiskDetailVAdminDismissedAllRiskForUser RiskDetail = 7
+ // RiskDetailVAdminConfirmedSigninCompromised undocumented
+ RiskDetailVAdminConfirmedSigninCompromised RiskDetail = 8
+ // RiskDetailVHidden undocumented
+ RiskDetailVHidden RiskDetail = 9
+ // RiskDetailVAdminConfirmedUserCompromised undocumented
+ RiskDetailVAdminConfirmedUserCompromised RiskDetail = 10
+ // RiskDetailVUnknownFutureValue undocumented
+ RiskDetailVUnknownFutureValue RiskDetail = 11
+)
+
+// RiskDetailPNone returns a pointer to RiskDetailVNone
+func RiskDetailPNone() *RiskDetail {
+ v := RiskDetailVNone
+ return &v
+}
+
+// RiskDetailPAdminGeneratedTemporaryPassword returns a pointer to RiskDetailVAdminGeneratedTemporaryPassword
+func RiskDetailPAdminGeneratedTemporaryPassword() *RiskDetail {
+ v := RiskDetailVAdminGeneratedTemporaryPassword
+ return &v
+}
+
+// RiskDetailPUserPerformedSecuredPasswordChange returns a pointer to RiskDetailVUserPerformedSecuredPasswordChange
+func RiskDetailPUserPerformedSecuredPasswordChange() *RiskDetail {
+ v := RiskDetailVUserPerformedSecuredPasswordChange
+ return &v
+}
+
+// RiskDetailPUserPerformedSecuredPasswordReset returns a pointer to RiskDetailVUserPerformedSecuredPasswordReset
+func RiskDetailPUserPerformedSecuredPasswordReset() *RiskDetail {
+ v := RiskDetailVUserPerformedSecuredPasswordReset
+ return &v
+}
+
+// RiskDetailPAdminConfirmedSigninSafe returns a pointer to RiskDetailVAdminConfirmedSigninSafe
+func RiskDetailPAdminConfirmedSigninSafe() *RiskDetail {
+ v := RiskDetailVAdminConfirmedSigninSafe
+ return &v
+}
+
+// RiskDetailPAiConfirmedSigninSafe returns a pointer to RiskDetailVAiConfirmedSigninSafe
+func RiskDetailPAiConfirmedSigninSafe() *RiskDetail {
+ v := RiskDetailVAiConfirmedSigninSafe
+ return &v
+}
+
+// RiskDetailPUserPassedMFADrivenByRiskBasedPolicy returns a pointer to RiskDetailVUserPassedMFADrivenByRiskBasedPolicy
+func RiskDetailPUserPassedMFADrivenByRiskBasedPolicy() *RiskDetail {
+ v := RiskDetailVUserPassedMFADrivenByRiskBasedPolicy
+ return &v
+}
+
+// RiskDetailPAdminDismissedAllRiskForUser returns a pointer to RiskDetailVAdminDismissedAllRiskForUser
+func RiskDetailPAdminDismissedAllRiskForUser() *RiskDetail {
+ v := RiskDetailVAdminDismissedAllRiskForUser
+ return &v
+}
+
+// RiskDetailPAdminConfirmedSigninCompromised returns a pointer to RiskDetailVAdminConfirmedSigninCompromised
+func RiskDetailPAdminConfirmedSigninCompromised() *RiskDetail {
+ v := RiskDetailVAdminConfirmedSigninCompromised
+ return &v
+}
+
+// RiskDetailPHidden returns a pointer to RiskDetailVHidden
+func RiskDetailPHidden() *RiskDetail {
+ v := RiskDetailVHidden
+ return &v
+}
+
+// RiskDetailPAdminConfirmedUserCompromised returns a pointer to RiskDetailVAdminConfirmedUserCompromised
+func RiskDetailPAdminConfirmedUserCompromised() *RiskDetail {
+ v := RiskDetailVAdminConfirmedUserCompromised
+ return &v
+}
+
+// RiskDetailPUnknownFutureValue returns a pointer to RiskDetailVUnknownFutureValue
+func RiskDetailPUnknownFutureValue() *RiskDetail {
+ v := RiskDetailVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionModel.go
new file mode 100644
index 00000000..cdf1e979
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionModel.go
@@ -0,0 +1,49 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionRequest.go
new file mode 100644
index 00000000..1fe8f7e1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionRequest.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/matterbridge/msgraph.go/beta/RiskDetectionTimingTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionTimingTypeEnum.go
new file mode 100644
index 00000000..df08d43e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionTimingTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskDetectionTimingType undocumented
+type RiskDetectionTimingType int
+
+const (
+ // RiskDetectionTimingTypeVNotDefined undocumented
+ RiskDetectionTimingTypeVNotDefined RiskDetectionTimingType = 0
+ // RiskDetectionTimingTypeVRealtime undocumented
+ RiskDetectionTimingTypeVRealtime RiskDetectionTimingType = 1
+ // RiskDetectionTimingTypeVNearRealtime undocumented
+ RiskDetectionTimingTypeVNearRealtime RiskDetectionTimingType = 2
+ // RiskDetectionTimingTypeVOffline undocumented
+ RiskDetectionTimingTypeVOffline RiskDetectionTimingType = 3
+ // RiskDetectionTimingTypeVUnknownFutureValue undocumented
+ RiskDetectionTimingTypeVUnknownFutureValue RiskDetectionTimingType = 4
+)
+
+// RiskDetectionTimingTypePNotDefined returns a pointer to RiskDetectionTimingTypeVNotDefined
+func RiskDetectionTimingTypePNotDefined() *RiskDetectionTimingType {
+ v := RiskDetectionTimingTypeVNotDefined
+ return &v
+}
+
+// RiskDetectionTimingTypePRealtime returns a pointer to RiskDetectionTimingTypeVRealtime
+func RiskDetectionTimingTypePRealtime() *RiskDetectionTimingType {
+ v := RiskDetectionTimingTypeVRealtime
+ return &v
+}
+
+// RiskDetectionTimingTypePNearRealtime returns a pointer to RiskDetectionTimingTypeVNearRealtime
+func RiskDetectionTimingTypePNearRealtime() *RiskDetectionTimingType {
+ v := RiskDetectionTimingTypeVNearRealtime
+ return &v
+}
+
+// RiskDetectionTimingTypePOffline returns a pointer to RiskDetectionTimingTypeVOffline
+func RiskDetectionTimingTypePOffline() *RiskDetectionTimingType {
+ v := RiskDetectionTimingTypeVOffline
+ return &v
+}
+
+// RiskDetectionTimingTypePUnknownFutureValue returns a pointer to RiskDetectionTimingTypeVUnknownFutureValue
+func RiskDetectionTimingTypePUnknownFutureValue() *RiskDetectionTimingType {
+ v := RiskDetectionTimingTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RiskEventStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskEventStatusEnum.go
new file mode 100644
index 00000000..1ce8f8ac
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RiskEventStatusEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskEventStatus undocumented
+type RiskEventStatus int
+
+const (
+ // RiskEventStatusVActive undocumented
+ RiskEventStatusVActive RiskEventStatus = 0
+ // RiskEventStatusVRemediated undocumented
+ RiskEventStatusVRemediated RiskEventStatus = 1
+ // RiskEventStatusVDismissedAsFixed undocumented
+ RiskEventStatusVDismissedAsFixed RiskEventStatus = 2
+ // RiskEventStatusVDismissedAsFalsePositive undocumented
+ RiskEventStatusVDismissedAsFalsePositive RiskEventStatus = 3
+ // RiskEventStatusVDismissedAsIgnore undocumented
+ RiskEventStatusVDismissedAsIgnore RiskEventStatus = 4
+ // RiskEventStatusVLoginBlocked undocumented
+ RiskEventStatusVLoginBlocked RiskEventStatus = 5
+ // RiskEventStatusVClosedMFAAuto undocumented
+ RiskEventStatusVClosedMFAAuto RiskEventStatus = 6
+ // RiskEventStatusVClosedMultipleReasons undocumented
+ RiskEventStatusVClosedMultipleReasons RiskEventStatus = 7
+)
+
+// RiskEventStatusPActive returns a pointer to RiskEventStatusVActive
+func RiskEventStatusPActive() *RiskEventStatus {
+ v := RiskEventStatusVActive
+ return &v
+}
+
+// RiskEventStatusPRemediated returns a pointer to RiskEventStatusVRemediated
+func RiskEventStatusPRemediated() *RiskEventStatus {
+ v := RiskEventStatusVRemediated
+ return &v
+}
+
+// RiskEventStatusPDismissedAsFixed returns a pointer to RiskEventStatusVDismissedAsFixed
+func RiskEventStatusPDismissedAsFixed() *RiskEventStatus {
+ v := RiskEventStatusVDismissedAsFixed
+ return &v
+}
+
+// RiskEventStatusPDismissedAsFalsePositive returns a pointer to RiskEventStatusVDismissedAsFalsePositive
+func RiskEventStatusPDismissedAsFalsePositive() *RiskEventStatus {
+ v := RiskEventStatusVDismissedAsFalsePositive
+ return &v
+}
+
+// RiskEventStatusPDismissedAsIgnore returns a pointer to RiskEventStatusVDismissedAsIgnore
+func RiskEventStatusPDismissedAsIgnore() *RiskEventStatus {
+ v := RiskEventStatusVDismissedAsIgnore
+ return &v
+}
+
+// RiskEventStatusPLoginBlocked returns a pointer to RiskEventStatusVLoginBlocked
+func RiskEventStatusPLoginBlocked() *RiskEventStatus {
+ v := RiskEventStatusVLoginBlocked
+ return &v
+}
+
+// RiskEventStatusPClosedMFAAuto returns a pointer to RiskEventStatusVClosedMFAAuto
+func RiskEventStatusPClosedMFAAuto() *RiskEventStatus {
+ v := RiskEventStatusVClosedMFAAuto
+ return &v
+}
+
+// RiskEventStatusPClosedMultipleReasons returns a pointer to RiskEventStatusVClosedMultipleReasons
+func RiskEventStatusPClosedMultipleReasons() *RiskEventStatus {
+ v := RiskEventStatusVClosedMultipleReasons
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RiskEventTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskEventTypeEnum.go
new file mode 100644
index 00000000..658c818b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RiskEventTypeEnum.go
@@ -0,0 +1,129 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskEventType undocumented
+type RiskEventType int
+
+const (
+ // RiskEventTypeVUnlikelyTravel undocumented
+ RiskEventTypeVUnlikelyTravel RiskEventType = 0
+ // RiskEventTypeVAnonymizedIPAddress undocumented
+ RiskEventTypeVAnonymizedIPAddress RiskEventType = 1
+ // RiskEventTypeVMaliciousIPAddress undocumented
+ RiskEventTypeVMaliciousIPAddress RiskEventType = 2
+ // RiskEventTypeVUnfamiliarFeatures undocumented
+ RiskEventTypeVUnfamiliarFeatures RiskEventType = 3
+ // RiskEventTypeVMalwareInfectedIPAddress undocumented
+ RiskEventTypeVMalwareInfectedIPAddress RiskEventType = 4
+ // RiskEventTypeVSuspiciousIPAddress undocumented
+ RiskEventTypeVSuspiciousIPAddress RiskEventType = 5
+ // RiskEventTypeVLeakedCredentials undocumented
+ RiskEventTypeVLeakedCredentials RiskEventType = 6
+ // RiskEventTypeVInvestigationsThreatIntelligence undocumented
+ RiskEventTypeVInvestigationsThreatIntelligence RiskEventType = 7
+ // RiskEventTypeVGeneric undocumented
+ RiskEventTypeVGeneric RiskEventType = 8
+ // RiskEventTypeVAdminConfirmedUserCompromised undocumented
+ RiskEventTypeVAdminConfirmedUserCompromised RiskEventType = 9
+ // RiskEventTypeVMcasImpossibleTravel undocumented
+ RiskEventTypeVMcasImpossibleTravel RiskEventType = 10
+ // RiskEventTypeVMcasSuspiciousInboxManipulationRules undocumented
+ RiskEventTypeVMcasSuspiciousInboxManipulationRules RiskEventType = 11
+ // RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked undocumented
+ RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked RiskEventType = 12
+ // RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP undocumented
+ RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP RiskEventType = 13
+ // RiskEventTypeVUnknownFutureValue undocumented
+ RiskEventTypeVUnknownFutureValue RiskEventType = 14
+)
+
+// RiskEventTypePUnlikelyTravel returns a pointer to RiskEventTypeVUnlikelyTravel
+func RiskEventTypePUnlikelyTravel() *RiskEventType {
+ v := RiskEventTypeVUnlikelyTravel
+ return &v
+}
+
+// RiskEventTypePAnonymizedIPAddress returns a pointer to RiskEventTypeVAnonymizedIPAddress
+func RiskEventTypePAnonymizedIPAddress() *RiskEventType {
+ v := RiskEventTypeVAnonymizedIPAddress
+ return &v
+}
+
+// RiskEventTypePMaliciousIPAddress returns a pointer to RiskEventTypeVMaliciousIPAddress
+func RiskEventTypePMaliciousIPAddress() *RiskEventType {
+ v := RiskEventTypeVMaliciousIPAddress
+ return &v
+}
+
+// RiskEventTypePUnfamiliarFeatures returns a pointer to RiskEventTypeVUnfamiliarFeatures
+func RiskEventTypePUnfamiliarFeatures() *RiskEventType {
+ v := RiskEventTypeVUnfamiliarFeatures
+ return &v
+}
+
+// RiskEventTypePMalwareInfectedIPAddress returns a pointer to RiskEventTypeVMalwareInfectedIPAddress
+func RiskEventTypePMalwareInfectedIPAddress() *RiskEventType {
+ v := RiskEventTypeVMalwareInfectedIPAddress
+ return &v
+}
+
+// RiskEventTypePSuspiciousIPAddress returns a pointer to RiskEventTypeVSuspiciousIPAddress
+func RiskEventTypePSuspiciousIPAddress() *RiskEventType {
+ v := RiskEventTypeVSuspiciousIPAddress
+ return &v
+}
+
+// RiskEventTypePLeakedCredentials returns a pointer to RiskEventTypeVLeakedCredentials
+func RiskEventTypePLeakedCredentials() *RiskEventType {
+ v := RiskEventTypeVLeakedCredentials
+ return &v
+}
+
+// RiskEventTypePInvestigationsThreatIntelligence returns a pointer to RiskEventTypeVInvestigationsThreatIntelligence
+func RiskEventTypePInvestigationsThreatIntelligence() *RiskEventType {
+ v := RiskEventTypeVInvestigationsThreatIntelligence
+ return &v
+}
+
+// RiskEventTypePGeneric returns a pointer to RiskEventTypeVGeneric
+func RiskEventTypePGeneric() *RiskEventType {
+ v := RiskEventTypeVGeneric
+ return &v
+}
+
+// RiskEventTypePAdminConfirmedUserCompromised returns a pointer to RiskEventTypeVAdminConfirmedUserCompromised
+func RiskEventTypePAdminConfirmedUserCompromised() *RiskEventType {
+ v := RiskEventTypeVAdminConfirmedUserCompromised
+ return &v
+}
+
+// RiskEventTypePMcasImpossibleTravel returns a pointer to RiskEventTypeVMcasImpossibleTravel
+func RiskEventTypePMcasImpossibleTravel() *RiskEventType {
+ v := RiskEventTypeVMcasImpossibleTravel
+ return &v
+}
+
+// RiskEventTypePMcasSuspiciousInboxManipulationRules returns a pointer to RiskEventTypeVMcasSuspiciousInboxManipulationRules
+func RiskEventTypePMcasSuspiciousInboxManipulationRules() *RiskEventType {
+ v := RiskEventTypeVMcasSuspiciousInboxManipulationRules
+ return &v
+}
+
+// RiskEventTypePInvestigationsThreatIntelligenceSigninLinked returns a pointer to RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked
+func RiskEventTypePInvestigationsThreatIntelligenceSigninLinked() *RiskEventType {
+ v := RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked
+ return &v
+}
+
+// RiskEventTypePMaliciousIPAddressValidCredentialsBlockedIP returns a pointer to RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP
+func RiskEventTypePMaliciousIPAddressValidCredentialsBlockedIP() *RiskEventType {
+ v := RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP
+ return &v
+}
+
+// RiskEventTypePUnknownFutureValue returns a pointer to RiskEventTypeVUnknownFutureValue
+func RiskEventTypePUnknownFutureValue() *RiskEventType {
+ v := RiskEventTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RiskLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskLevelEnum.go
new file mode 100644
index 00000000..30456d93
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RiskLevelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskLevel undocumented
+type RiskLevel int
+
+const (
+ // RiskLevelVLow undocumented
+ RiskLevelVLow RiskLevel = 0
+ // RiskLevelVMedium undocumented
+ RiskLevelVMedium RiskLevel = 1
+ // RiskLevelVHigh undocumented
+ RiskLevelVHigh RiskLevel = 2
+ // RiskLevelVHidden undocumented
+ RiskLevelVHidden RiskLevel = 3
+ // RiskLevelVNone undocumented
+ RiskLevelVNone RiskLevel = 4
+ // RiskLevelVUnknownFutureValue undocumented
+ RiskLevelVUnknownFutureValue RiskLevel = 5
+)
+
+// RiskLevelPLow returns a pointer to RiskLevelVLow
+func RiskLevelPLow() *RiskLevel {
+ v := RiskLevelVLow
+ return &v
+}
+
+// RiskLevelPMedium returns a pointer to RiskLevelVMedium
+func RiskLevelPMedium() *RiskLevel {
+ v := RiskLevelVMedium
+ return &v
+}
+
+// RiskLevelPHigh returns a pointer to RiskLevelVHigh
+func RiskLevelPHigh() *RiskLevel {
+ v := RiskLevelVHigh
+ return &v
+}
+
+// RiskLevelPHidden returns a pointer to RiskLevelVHidden
+func RiskLevelPHidden() *RiskLevel {
+ v := RiskLevelVHidden
+ return &v
+}
+
+// RiskLevelPNone returns a pointer to RiskLevelVNone
+func RiskLevelPNone() *RiskLevel {
+ v := RiskLevelVNone
+ return &v
+}
+
+// RiskLevelPUnknownFutureValue returns a pointer to RiskLevelVUnknownFutureValue
+func RiskLevelPUnknownFutureValue() *RiskLevel {
+ v := RiskLevelVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RiskStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskStateEnum.go
new file mode 100644
index 00000000..bbfbfda5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RiskStateEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskState undocumented
+type RiskState int
+
+const (
+ // RiskStateVNone undocumented
+ RiskStateVNone RiskState = 0
+ // RiskStateVConfirmedSafe undocumented
+ RiskStateVConfirmedSafe RiskState = 1
+ // RiskStateVRemediated undocumented
+ RiskStateVRemediated RiskState = 2
+ // RiskStateVDismissed undocumented
+ RiskStateVDismissed RiskState = 3
+ // RiskStateVAtRisk undocumented
+ RiskStateVAtRisk RiskState = 4
+ // RiskStateVConfirmedCompromised undocumented
+ RiskStateVConfirmedCompromised RiskState = 5
+ // RiskStateVUnknownFutureValue undocumented
+ RiskStateVUnknownFutureValue RiskState = 6
+)
+
+// RiskStatePNone returns a pointer to RiskStateVNone
+func RiskStatePNone() *RiskState {
+ v := RiskStateVNone
+ return &v
+}
+
+// RiskStatePConfirmedSafe returns a pointer to RiskStateVConfirmedSafe
+func RiskStatePConfirmedSafe() *RiskState {
+ v := RiskStateVConfirmedSafe
+ return &v
+}
+
+// RiskStatePRemediated returns a pointer to RiskStateVRemediated
+func RiskStatePRemediated() *RiskState {
+ v := RiskStateVRemediated
+ return &v
+}
+
+// RiskStatePDismissed returns a pointer to RiskStateVDismissed
+func RiskStatePDismissed() *RiskState {
+ v := RiskStateVDismissed
+ return &v
+}
+
+// RiskStatePAtRisk returns a pointer to RiskStateVAtRisk
+func RiskStatePAtRisk() *RiskState {
+ v := RiskStateVAtRisk
+ return &v
+}
+
+// RiskStatePConfirmedCompromised returns a pointer to RiskStateVConfirmedCompromised
+func RiskStatePConfirmedCompromised() *RiskState {
+ v := RiskStateVConfirmedCompromised
+ return &v
+}
+
+// RiskStatePUnknownFutureValue returns a pointer to RiskStateVUnknownFutureValue
+func RiskStatePUnknownFutureValue() *RiskState {
+ v := RiskStateVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RiskUserActivityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskUserActivityModel.go
new file mode 100644
index 00000000..bb3a3d0e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RiskUserActivityModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/RiskyUserAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserAction.go
new file mode 100644
index 00000000..e67694ac
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserAction.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskyUserCollectionDismissRequestParameter undocumented
+type RiskyUserCollectionDismissRequestParameter struct {
+ // UserIDs undocumented
+ UserIDs []string `json:"userIds,omitempty"`
+}
+
+// RiskyUserCollectionConfirmCompromisedRequestParameter undocumented
+type RiskyUserCollectionConfirmCompromisedRequestParameter struct {
+ // UserIDs undocumented
+ UserIDs []string `json:"userIds,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserHistoryItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserHistoryItemModel.go
new file mode 100644
index 00000000..c5c5e716
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserHistoryItemModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/RiskyUserHistoryItemRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserHistoryItemRequest.go
new file mode 100644
index 00000000..cb2bfefa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserHistoryItemRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/RiskyUserModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserModel.go
new file mode 100644
index 00000000..42ee78e7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserModel.go
@@ -0,0 +1,31 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserRequest.go
new file mode 100644
index 00000000..1a5e2831
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RiskyUserHistoryItem collection
+func (r *RiskyUserHistoryCollectionRequest) Get(ctx context.Context) ([]RiskyUserHistoryItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/RoleAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentModel.go
new file mode 100644
index 00000000..af90ba07
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentModel.go
@@ -0,0 +1,21 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentRequest.go
new file mode 100644
index 00000000..62f0949b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// RoleDefinition is navigation property
+func (b *RoleAssignmentRequestBuilder) RoleDefinition() *RoleDefinitionRequestBuilder {
+ bb := &RoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinition"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentScopeTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentScopeTypeEnum.go
new file mode 100644
index 00000000..63f3ca62
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentScopeTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoleAssignmentScopeType undocumented
+type RoleAssignmentScopeType int
+
+const (
+ // RoleAssignmentScopeTypeVResourceScope undocumented
+ RoleAssignmentScopeTypeVResourceScope RoleAssignmentScopeType = 0
+ // RoleAssignmentScopeTypeVAllDevices undocumented
+ RoleAssignmentScopeTypeVAllDevices RoleAssignmentScopeType = 1
+ // RoleAssignmentScopeTypeVAllLicensedUsers undocumented
+ RoleAssignmentScopeTypeVAllLicensedUsers RoleAssignmentScopeType = 2
+ // RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers undocumented
+ RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers RoleAssignmentScopeType = 3
+)
+
+// RoleAssignmentScopeTypePResourceScope returns a pointer to RoleAssignmentScopeTypeVResourceScope
+func RoleAssignmentScopeTypePResourceScope() *RoleAssignmentScopeType {
+ v := RoleAssignmentScopeTypeVResourceScope
+ return &v
+}
+
+// RoleAssignmentScopeTypePAllDevices returns a pointer to RoleAssignmentScopeTypeVAllDevices
+func RoleAssignmentScopeTypePAllDevices() *RoleAssignmentScopeType {
+ v := RoleAssignmentScopeTypeVAllDevices
+ return &v
+}
+
+// RoleAssignmentScopeTypePAllLicensedUsers returns a pointer to RoleAssignmentScopeTypeVAllLicensedUsers
+func RoleAssignmentScopeTypePAllLicensedUsers() *RoleAssignmentScopeType {
+ v := RoleAssignmentScopeTypeVAllLicensedUsers
+ return &v
+}
+
+// RoleAssignmentScopeTypePAllDevicesAndLicensedUsers returns a pointer to RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers
+func RoleAssignmentScopeTypePAllDevicesAndLicensedUsers() *RoleAssignmentScopeType {
+ v := RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoleDefinitionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleDefinitionModel.go
new file mode 100644
index 00000000..203794d4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleDefinitionModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoleDefinitionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleDefinitionRequest.go
new file mode 100644
index 00000000..faecc59c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleDefinitionRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RoleAssignment collection
+func (r *RoleDefinitionRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]RoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoleManagementModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleManagementModel.go
new file mode 100644
index 00000000..d7f0d20f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleManagementModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoleManagement undocumented
+type RoleManagement struct {
+ // Entity is the base model of RoleManagement
+ Entity
+ // Directory undocumented
+ Directory *RbacApplication `json:"directory,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoleManagementRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleManagementRequest.go
new file mode 100644
index 00000000..f2ccc00f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleManagementRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Directory is navigation property
+func (b *RoleManagementRequestBuilder) Directory() *RbacApplicationRequestBuilder {
+ bb := &RbacApplicationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directory"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoleMembershipGovernanceCriteriaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleMembershipGovernanceCriteriaModel.go
new file mode 100644
index 00000000..5c911d39
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleMembershipGovernanceCriteriaModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RolePermissionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RolePermissionModel.go
new file mode 100644
index 00000000..c6aa4758
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RolePermissionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAction.go
new file mode 100644
index 00000000..78863bfc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAction.go
@@ -0,0 +1,196 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]RoleScopeTag, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]RoleScopeTagAutoAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAutoAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAutoAssignmentModel.go
new file mode 100644
index 00000000..c2c325de
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAutoAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAutoAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAutoAssignmentRequest.go
new file mode 100644
index 00000000..07a40740
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAutoAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagInfoModel.go
new file mode 100644
index 00000000..a028619e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagInfoModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagModel.go
new file mode 100644
index 00000000..08dd2bc2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagRequest.go
new file mode 100644
index 00000000..93b7de8b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RoleScopeTagAutoAssignment collection
+func (r *RoleScopeTagAssignmentsCollectionRequest) Get(ctx context.Context) ([]RoleScopeTagAutoAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/RoleSuccessStatisticsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleSuccessStatisticsModel.go
new file mode 100644
index 00000000..1b5aabcb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleSuccessStatisticsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/RoleSummaryStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoleSummaryStatusEnum.go
new file mode 100644
index 00000000..5c854b8d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoleSummaryStatusEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoleSummaryStatus undocumented
+type RoleSummaryStatus int
+
+const (
+ // RoleSummaryStatusVOk undocumented
+ RoleSummaryStatusVOk RoleSummaryStatus = 0
+ // RoleSummaryStatusVBad undocumented
+ RoleSummaryStatusVBad RoleSummaryStatus = 1
+)
+
+// RoleSummaryStatusPOk returns a pointer to RoleSummaryStatusVOk
+func RoleSummaryStatusPOk() *RoleSummaryStatus {
+ v := RoleSummaryStatusVOk
+ return &v
+}
+
+// RoleSummaryStatusPBad returns a pointer to RoleSummaryStatusVBad
+func RoleSummaryStatusPBad() *RoleSummaryStatus {
+ v := RoleSummaryStatusVBad
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoomListModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoomListModel.go
new file mode 100644
index 00000000..af959b5b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoomListModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/RoomListRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoomListRequest.go
new file mode 100644
index 00000000..f9acb281
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoomListRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Room collection
+func (r *RoomListRoomsCollectionRequest) Get(ctx context.Context) ([]Room, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/RoomModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoomModel.go
new file mode 100644
index 00000000..03a2f687
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoomModel.go
@@ -0,0 +1,35 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoomRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoomRequest.go
new file mode 100644
index 00000000..3a777c38
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoomRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RootModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RootModel.go
new file mode 100644
index 00000000..7c19a720
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RootModel.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/matterbridge/msgraph.go/beta/RotateBitLockerKeysDeviceActionResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RotateBitLockerKeysDeviceActionResultModel.go
new file mode 100644
index 00000000..d203e7bd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RotateBitLockerKeysDeviceActionResultModel.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/matterbridge/msgraph.go/beta/RoutingModeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoutingModeEnum.go
new file mode 100644
index 00000000..fe644d6c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoutingModeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoutingMode undocumented
+type RoutingMode int
+
+const (
+ // RoutingModeVOneToOne undocumented
+ RoutingModeVOneToOne RoutingMode = 0
+ // RoutingModeVMulticast undocumented
+ RoutingModeVMulticast RoutingMode = 1
+)
+
+// RoutingModePOneToOne returns a pointer to RoutingModeVOneToOne
+func RoutingModePOneToOne() *RoutingMode {
+ v := RoutingModeVOneToOne
+ return &v
+}
+
+// RoutingModePMulticast returns a pointer to RoutingModeVMulticast
+func RoutingModePMulticast() *RoutingMode {
+ v := RoutingModeVMulticast
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoutingPolicyEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoutingPolicyEnum.go
new file mode 100644
index 00000000..d0ec9fd8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoutingPolicyEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoutingPolicy undocumented
+type RoutingPolicy int
+
+const (
+ // RoutingPolicyVNone undocumented
+ RoutingPolicyVNone RoutingPolicy = 0
+ // RoutingPolicyVNoMissedCall undocumented
+ RoutingPolicyVNoMissedCall RoutingPolicy = 1
+ // RoutingPolicyVDisableForwardingExceptPhone undocumented
+ RoutingPolicyVDisableForwardingExceptPhone RoutingPolicy = 2
+ // RoutingPolicyVDisableForwarding undocumented
+ RoutingPolicyVDisableForwarding RoutingPolicy = 3
+ // RoutingPolicyVPreferSkypeForBusiness undocumented
+ RoutingPolicyVPreferSkypeForBusiness RoutingPolicy = 5
+ // RoutingPolicyVUnknownFutureValue undocumented
+ RoutingPolicyVUnknownFutureValue RoutingPolicy = 6
+)
+
+// RoutingPolicyPNone returns a pointer to RoutingPolicyVNone
+func RoutingPolicyPNone() *RoutingPolicy {
+ v := RoutingPolicyVNone
+ return &v
+}
+
+// RoutingPolicyPNoMissedCall returns a pointer to RoutingPolicyVNoMissedCall
+func RoutingPolicyPNoMissedCall() *RoutingPolicy {
+ v := RoutingPolicyVNoMissedCall
+ return &v
+}
+
+// RoutingPolicyPDisableForwardingExceptPhone returns a pointer to RoutingPolicyVDisableForwardingExceptPhone
+func RoutingPolicyPDisableForwardingExceptPhone() *RoutingPolicy {
+ v := RoutingPolicyVDisableForwardingExceptPhone
+ return &v
+}
+
+// RoutingPolicyPDisableForwarding returns a pointer to RoutingPolicyVDisableForwarding
+func RoutingPolicyPDisableForwarding() *RoutingPolicy {
+ v := RoutingPolicyVDisableForwarding
+ return &v
+}
+
+// RoutingPolicyPPreferSkypeForBusiness returns a pointer to RoutingPolicyVPreferSkypeForBusiness
+func RoutingPolicyPPreferSkypeForBusiness() *RoutingPolicy {
+ v := RoutingPolicyVPreferSkypeForBusiness
+ return &v
+}
+
+// RoutingPolicyPUnknownFutureValue returns a pointer to RoutingPolicyVUnknownFutureValue
+func RoutingPolicyPUnknownFutureValue() *RoutingPolicy {
+ v := RoutingPolicyVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RoutingTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoutingTypeEnum.go
new file mode 100644
index 00000000..2a587760
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RoutingTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoutingType undocumented
+type RoutingType int
+
+const (
+ // RoutingTypeVForwarded undocumented
+ RoutingTypeVForwarded RoutingType = 0
+ // RoutingTypeVLookup undocumented
+ RoutingTypeVLookup RoutingType = 1
+ // RoutingTypeVSelfFork undocumented
+ RoutingTypeVSelfFork RoutingType = 2
+)
+
+// RoutingTypePForwarded returns a pointer to RoutingTypeVForwarded
+func RoutingTypePForwarded() *RoutingType {
+ v := RoutingTypeVForwarded
+ return &v
+}
+
+// RoutingTypePLookup returns a pointer to RoutingTypeVLookup
+func RoutingTypePLookup() *RoutingType {
+ v := RoutingTypeVLookup
+ return &v
+}
+
+// RoutingTypePSelfFork returns a pointer to RoutingTypeVSelfFork
+func RoutingTypePSelfFork() *RoutingType {
+ v := RoutingTypeVSelfFork
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RubricCriterionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RubricCriterionModel.go
new file mode 100644
index 00000000..9a7311f8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RubricCriterionModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RubricLevelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RubricLevelModel.go
new file mode 100644
index 00000000..2c63ac01
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RubricLevelModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RubricQualityFeedbackModelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RubricQualityFeedbackModelModel.go
new file mode 100644
index 00000000..39ef7de7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RubricQualityFeedbackModelModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RubricQualityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RubricQualityModel.go
new file mode 100644
index 00000000..5e087327
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RubricQualityModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RubricQualitySelectedColumnModelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RubricQualitySelectedColumnModelModel.go
new file mode 100644
index 00000000..0443944c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RubricQualitySelectedColumnModelModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/RuleModeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RuleModeEnum.go
new file mode 100644
index 00000000..004aa202
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RuleModeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RuleMode undocumented
+type RuleMode int
+
+const (
+ // RuleModeVAudit undocumented
+ RuleModeVAudit RuleMode = 1
+ // RuleModeVAuditAndNotify undocumented
+ RuleModeVAuditAndNotify RuleMode = 2
+ // RuleModeVEnforce undocumented
+ RuleModeVEnforce RuleMode = 3
+ // RuleModeVPendingDeletion undocumented
+ RuleModeVPendingDeletion RuleMode = 4
+ // RuleModeVTest undocumented
+ RuleModeVTest RuleMode = 5
+)
+
+// RuleModePAudit returns a pointer to RuleModeVAudit
+func RuleModePAudit() *RuleMode {
+ v := RuleModeVAudit
+ return &v
+}
+
+// RuleModePAuditAndNotify returns a pointer to RuleModeVAuditAndNotify
+func RuleModePAuditAndNotify() *RuleMode {
+ v := RuleModeVAuditAndNotify
+ return &v
+}
+
+// RuleModePEnforce returns a pointer to RuleModeVEnforce
+func RuleModePEnforce() *RuleMode {
+ v := RuleModeVEnforce
+ return &v
+}
+
+// RuleModePPendingDeletion returns a pointer to RuleModeVPendingDeletion
+func RuleModePPendingDeletion() *RuleMode {
+ v := RuleModeVPendingDeletion
+ return &v
+}
+
+// RuleModePTest returns a pointer to RuleModeVTest
+func RuleModePTest() *RuleMode {
+ v := RuleModeVTest
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RunAsAccountTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RunAsAccountTypeEnum.go
new file mode 100644
index 00000000..ddb7e2a2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RunAsAccountTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RunAsAccountType undocumented
+type RunAsAccountType int
+
+const (
+ // RunAsAccountTypeVSystem undocumented
+ RunAsAccountTypeVSystem RunAsAccountType = 0
+ // RunAsAccountTypeVUser undocumented
+ RunAsAccountTypeVUser RunAsAccountType = 1
+)
+
+// RunAsAccountTypePSystem returns a pointer to RunAsAccountTypeVSystem
+func RunAsAccountTypePSystem() *RunAsAccountType {
+ v := RunAsAccountTypeVSystem
+ return &v
+}
+
+// RunAsAccountTypePUser returns a pointer to RunAsAccountTypeVUser
+func RunAsAccountTypePUser() *RunAsAccountType {
+ v := RunAsAccountTypeVUser
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RunScheduleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RunScheduleModel.go
new file mode 100644
index 00000000..d80439e1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RunScheduleModel.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/matterbridge/msgraph.go/beta/RunStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RunStateEnum.go
new file mode 100644
index 00000000..f25cf15a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/RunStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RunState undocumented
+type RunState int
+
+const (
+ // RunStateVUnknown undocumented
+ RunStateVUnknown RunState = 0
+ // RunStateVSuccess undocumented
+ RunStateVSuccess RunState = 1
+ // RunStateVFail undocumented
+ RunStateVFail RunState = 2
+ // RunStateVScriptError undocumented
+ RunStateVScriptError RunState = 3
+ // RunStateVPending undocumented
+ RunStateVPending RunState = 4
+ // RunStateVNotApplicable undocumented
+ RunStateVNotApplicable RunState = 5
+)
+
+// RunStatePUnknown returns a pointer to RunStateVUnknown
+func RunStatePUnknown() *RunState {
+ v := RunStateVUnknown
+ return &v
+}
+
+// RunStatePSuccess returns a pointer to RunStateVSuccess
+func RunStatePSuccess() *RunState {
+ v := RunStateVSuccess
+ return &v
+}
+
+// RunStatePFail returns a pointer to RunStateVFail
+func RunStatePFail() *RunState {
+ v := RunStateVFail
+ return &v
+}
+
+// RunStatePScriptError returns a pointer to RunStateVScriptError
+func RunStatePScriptError() *RunState {
+ v := RunStateVScriptError
+ return &v
+}
+
+// RunStatePPending returns a pointer to RunStateVPending
+func RunStatePPending() *RunState {
+ v := RunStateVPending
+ return &v
+}
+
+// RunStatePNotApplicable returns a pointer to RunStateVNotApplicable
+func RunStatePNotApplicable() *RunState {
+ v := RunStateVNotApplicable
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SafeSearchFilterTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SafeSearchFilterTypeEnum.go
new file mode 100644
index 00000000..946b93f4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SafeSearchFilterTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SafeSearchFilterType undocumented
+type SafeSearchFilterType int
+
+const (
+ // SafeSearchFilterTypeVUserDefined undocumented
+ SafeSearchFilterTypeVUserDefined SafeSearchFilterType = 0
+ // SafeSearchFilterTypeVStrict undocumented
+ SafeSearchFilterTypeVStrict SafeSearchFilterType = 1
+ // SafeSearchFilterTypeVModerate undocumented
+ SafeSearchFilterTypeVModerate SafeSearchFilterType = 2
+)
+
+// SafeSearchFilterTypePUserDefined returns a pointer to SafeSearchFilterTypeVUserDefined
+func SafeSearchFilterTypePUserDefined() *SafeSearchFilterType {
+ v := SafeSearchFilterTypeVUserDefined
+ return &v
+}
+
+// SafeSearchFilterTypePStrict returns a pointer to SafeSearchFilterTypeVStrict
+func SafeSearchFilterTypePStrict() *SafeSearchFilterType {
+ v := SafeSearchFilterTypeVStrict
+ return &v
+}
+
+// SafeSearchFilterTypePModerate returns a pointer to SafeSearchFilterTypeVModerate
+func SafeSearchFilterTypePModerate() *SafeSearchFilterType {
+ v := SafeSearchFilterTypeVModerate
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoLineModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoLineModel.go
new file mode 100644
index 00000000..72625881
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoLineModel.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"shipmentDate,omitempty"`
+ // Item undocumented
+ Item *Item `json:"item,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoLineRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoLineRequest.go
new file mode 100644
index 00000000..a4b4beac
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoLineRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoModel.go
new file mode 100644
index 00000000..7661783e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoModel.go
@@ -0,0 +1,75 @@
+// 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 *time.Time `json:"creditMemoDate,omitempty"`
+ // DueDate undocumented
+ DueDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoRequest.go
new file mode 100644
index 00000000..26a1b145
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoRequest.go
@@ -0,0 +1,160 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesCreditMemoLine collection
+func (r *SalesCreditMemoSalesCreditMemoLinesCollectionRequest) Get(ctx context.Context) ([]SalesCreditMemoLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceAction.go
new file mode 100644
index 00000000..d033b0c3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceAction.go
@@ -0,0 +1,155 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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 {
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceLineModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceLineModel.go
new file mode 100644
index 00000000..05f215c3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceLineModel.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"shipmentDate,omitempty"`
+ // Item undocumented
+ Item *Item `json:"item,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceLineRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceLineRequest.go
new file mode 100644
index 00000000..b239425e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceLineRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceModel.go
new file mode 100644
index 00000000..a76e578a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceModel.go
@@ -0,0 +1,87 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"invoiceDate,omitempty"`
+ // DueDate undocumented
+ DueDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceRequest.go
new file mode 100644
index 00000000..d8bc7a50
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceRequest.go
@@ -0,0 +1,167 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesInvoiceLine collection
+func (r *SalesInvoiceSalesInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]SalesInvoiceLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderLineModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderLineModel.go
new file mode 100644
index 00000000..ad81f625
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderLineModel.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderLineRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderLineRequest.go
new file mode 100644
index 00000000..e8f2e9e9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderLineRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderModel.go
new file mode 100644
index 00000000..3a4d5856
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderModel.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `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 *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderRequest.go
new file mode 100644
index 00000000..8cc16a42
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderRequest.go
@@ -0,0 +1,160 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesOrderLine collection
+func (r *SalesOrderSalesOrderLinesCollectionRequest) Get(ctx context.Context) ([]SalesOrderLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteAction.go
new file mode 100644
index 00000000..2641da0a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteAction.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SalesQuoteMakeInvoiceRequestParameter undocumented
+type SalesQuoteMakeInvoiceRequestParameter struct {
+}
+
+// SalesQuoteSendRequestParameter undocumented
+type SalesQuoteSendRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/SalesQuoteLineModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteLineModel.go
new file mode 100644
index 00000000..c622a210
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteLineModel.go
@@ -0,0 +1,53 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/SalesQuoteLineRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteLineRequest.go
new file mode 100644
index 00000000..dbcbee20
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteLineRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/SalesQuoteModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteModel.go
new file mode 100644
index 00000000..92040855
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteModel.go
@@ -0,0 +1,83 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"documentDate,omitempty"`
+ // DueDate undocumented
+ DueDate *time.Time `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 *time.Time `json:"validUntilDate,omitempty"`
+ // AcceptedDate undocumented
+ AcceptedDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteRequest.go
new file mode 100644
index 00000000..212cc4a5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteRequest.go
@@ -0,0 +1,167 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesQuoteLine collection
+func (r *SalesQuoteSalesQuoteLinesCollectionRequest) Get(ctx context.Context) ([]SalesQuoteLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleAction.go
new file mode 100644
index 00000000..a625d8d3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleAction.go
@@ -0,0 +1,44 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "time"
+)
+
+// 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"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestActorEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestActorEnum.go
new file mode 100644
index 00000000..b24f321c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestActorEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScheduleChangeRequestActor undocumented
+type ScheduleChangeRequestActor int
+
+const (
+ // ScheduleChangeRequestActorVSender undocumented
+ ScheduleChangeRequestActorVSender ScheduleChangeRequestActor = 0
+ // ScheduleChangeRequestActorVRecipient undocumented
+ ScheduleChangeRequestActorVRecipient ScheduleChangeRequestActor = 1
+ // ScheduleChangeRequestActorVManager undocumented
+ ScheduleChangeRequestActorVManager ScheduleChangeRequestActor = 2
+ // ScheduleChangeRequestActorVSystem undocumented
+ ScheduleChangeRequestActorVSystem ScheduleChangeRequestActor = 3
+ // ScheduleChangeRequestActorVUnknownFutureValue undocumented
+ ScheduleChangeRequestActorVUnknownFutureValue ScheduleChangeRequestActor = 4
+)
+
+// ScheduleChangeRequestActorPSender returns a pointer to ScheduleChangeRequestActorVSender
+func ScheduleChangeRequestActorPSender() *ScheduleChangeRequestActor {
+ v := ScheduleChangeRequestActorVSender
+ return &v
+}
+
+// ScheduleChangeRequestActorPRecipient returns a pointer to ScheduleChangeRequestActorVRecipient
+func ScheduleChangeRequestActorPRecipient() *ScheduleChangeRequestActor {
+ v := ScheduleChangeRequestActorVRecipient
+ return &v
+}
+
+// ScheduleChangeRequestActorPManager returns a pointer to ScheduleChangeRequestActorVManager
+func ScheduleChangeRequestActorPManager() *ScheduleChangeRequestActor {
+ v := ScheduleChangeRequestActorVManager
+ return &v
+}
+
+// ScheduleChangeRequestActorPSystem returns a pointer to ScheduleChangeRequestActorVSystem
+func ScheduleChangeRequestActorPSystem() *ScheduleChangeRequestActor {
+ v := ScheduleChangeRequestActorVSystem
+ return &v
+}
+
+// ScheduleChangeRequestActorPUnknownFutureValue returns a pointer to ScheduleChangeRequestActorVUnknownFutureValue
+func ScheduleChangeRequestActorPUnknownFutureValue() *ScheduleChangeRequestActor {
+ v := ScheduleChangeRequestActorVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectAction.go
new file mode 100644
index 00000000..147365d7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectAction.go
@@ -0,0 +1,69 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ScheduleChangeRequestObjectApproveRequestParameter undocumented
+type ScheduleChangeRequestObjectApproveRequestParameter struct {
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
+
+// ScheduleChangeRequestObjectDeclineRequestParameter undocumented
+type ScheduleChangeRequestObjectDeclineRequestParameter struct {
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectModel.go
new file mode 100644
index 00000000..0910232b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectRequest.go
new file mode 100644
index 00000000..6504bc2e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeStateEnum.go
new file mode 100644
index 00000000..81c1b871
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeStateEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScheduleChangeState undocumented
+type ScheduleChangeState int
+
+const (
+ // ScheduleChangeStateVPending undocumented
+ ScheduleChangeStateVPending ScheduleChangeState = 0
+ // ScheduleChangeStateVApproved undocumented
+ ScheduleChangeStateVApproved ScheduleChangeState = 1
+ // ScheduleChangeStateVDeclined undocumented
+ ScheduleChangeStateVDeclined ScheduleChangeState = 2
+ // ScheduleChangeStateVUnknownFutureValue undocumented
+ ScheduleChangeStateVUnknownFutureValue ScheduleChangeState = 3
+)
+
+// ScheduleChangeStatePPending returns a pointer to ScheduleChangeStateVPending
+func ScheduleChangeStatePPending() *ScheduleChangeState {
+ v := ScheduleChangeStateVPending
+ return &v
+}
+
+// ScheduleChangeStatePApproved returns a pointer to ScheduleChangeStateVApproved
+func ScheduleChangeStatePApproved() *ScheduleChangeState {
+ v := ScheduleChangeStateVApproved
+ return &v
+}
+
+// ScheduleChangeStatePDeclined returns a pointer to ScheduleChangeStateVDeclined
+func ScheduleChangeStatePDeclined() *ScheduleChangeState {
+ v := ScheduleChangeStateVDeclined
+ return &v
+}
+
+// ScheduleChangeStatePUnknownFutureValue returns a pointer to ScheduleChangeStateVUnknownFutureValue
+func ScheduleChangeStatePUnknownFutureValue() *ScheduleChangeState {
+ v := ScheduleChangeStateVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleEntityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleEntityModel.go
new file mode 100644
index 00000000..6581ede6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleEntityModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleEntityThemeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleEntityThemeEnum.go
new file mode 100644
index 00000000..528a9e1b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleEntityThemeEnum.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScheduleEntityTheme undocumented
+type ScheduleEntityTheme int
+
+const (
+ // ScheduleEntityThemeVWhite undocumented
+ ScheduleEntityThemeVWhite ScheduleEntityTheme = 0
+ // ScheduleEntityThemeVBlue undocumented
+ ScheduleEntityThemeVBlue ScheduleEntityTheme = 1
+ // ScheduleEntityThemeVGreen undocumented
+ ScheduleEntityThemeVGreen ScheduleEntityTheme = 2
+ // ScheduleEntityThemeVPurple undocumented
+ ScheduleEntityThemeVPurple ScheduleEntityTheme = 3
+ // ScheduleEntityThemeVPink undocumented
+ ScheduleEntityThemeVPink ScheduleEntityTheme = 4
+ // ScheduleEntityThemeVYellow undocumented
+ ScheduleEntityThemeVYellow ScheduleEntityTheme = 5
+ // ScheduleEntityThemeVGray undocumented
+ ScheduleEntityThemeVGray ScheduleEntityTheme = 6
+ // ScheduleEntityThemeVDarkBlue undocumented
+ ScheduleEntityThemeVDarkBlue ScheduleEntityTheme = 7
+ // ScheduleEntityThemeVDarkGreen undocumented
+ ScheduleEntityThemeVDarkGreen ScheduleEntityTheme = 8
+ // ScheduleEntityThemeVDarkPurple undocumented
+ ScheduleEntityThemeVDarkPurple ScheduleEntityTheme = 9
+ // ScheduleEntityThemeVDarkPink undocumented
+ ScheduleEntityThemeVDarkPink ScheduleEntityTheme = 10
+ // ScheduleEntityThemeVDarkYellow undocumented
+ ScheduleEntityThemeVDarkYellow ScheduleEntityTheme = 11
+ // ScheduleEntityThemeVUnknownFutureValue undocumented
+ ScheduleEntityThemeVUnknownFutureValue ScheduleEntityTheme = 12
+)
+
+// ScheduleEntityThemePWhite returns a pointer to ScheduleEntityThemeVWhite
+func ScheduleEntityThemePWhite() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVWhite
+ return &v
+}
+
+// ScheduleEntityThemePBlue returns a pointer to ScheduleEntityThemeVBlue
+func ScheduleEntityThemePBlue() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVBlue
+ return &v
+}
+
+// ScheduleEntityThemePGreen returns a pointer to ScheduleEntityThemeVGreen
+func ScheduleEntityThemePGreen() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVGreen
+ return &v
+}
+
+// ScheduleEntityThemePPurple returns a pointer to ScheduleEntityThemeVPurple
+func ScheduleEntityThemePPurple() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVPurple
+ return &v
+}
+
+// ScheduleEntityThemePPink returns a pointer to ScheduleEntityThemeVPink
+func ScheduleEntityThemePPink() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVPink
+ return &v
+}
+
+// ScheduleEntityThemePYellow returns a pointer to ScheduleEntityThemeVYellow
+func ScheduleEntityThemePYellow() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVYellow
+ return &v
+}
+
+// ScheduleEntityThemePGray returns a pointer to ScheduleEntityThemeVGray
+func ScheduleEntityThemePGray() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVGray
+ return &v
+}
+
+// ScheduleEntityThemePDarkBlue returns a pointer to ScheduleEntityThemeVDarkBlue
+func ScheduleEntityThemePDarkBlue() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVDarkBlue
+ return &v
+}
+
+// ScheduleEntityThemePDarkGreen returns a pointer to ScheduleEntityThemeVDarkGreen
+func ScheduleEntityThemePDarkGreen() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVDarkGreen
+ return &v
+}
+
+// ScheduleEntityThemePDarkPurple returns a pointer to ScheduleEntityThemeVDarkPurple
+func ScheduleEntityThemePDarkPurple() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVDarkPurple
+ return &v
+}
+
+// ScheduleEntityThemePDarkPink returns a pointer to ScheduleEntityThemeVDarkPink
+func ScheduleEntityThemePDarkPink() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVDarkPink
+ return &v
+}
+
+// ScheduleEntityThemePDarkYellow returns a pointer to ScheduleEntityThemeVDarkYellow
+func ScheduleEntityThemePDarkYellow() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVDarkYellow
+ return &v
+}
+
+// ScheduleEntityThemePUnknownFutureValue returns a pointer to ScheduleEntityThemeVUnknownFutureValue
+func ScheduleEntityThemePUnknownFutureValue() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleInformationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleInformationModel.go
new file mode 100644
index 00000000..77c4eb2b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleInformationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleItemModel.go
new file mode 100644
index 00000000..649b2bc2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleItemModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ScheduleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleModel.go
new file mode 100644
index 00000000..0accc93e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleRequest.go
new file mode 100644
index 00000000..41e02c25
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleRequest.go
@@ -0,0 +1,797 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OpenShiftChangeRequestObject collection
+func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) Get(ctx context.Context) ([]OpenShiftChangeRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OpenShift collection
+func (r *ScheduleOpenShiftsCollectionRequest) Get(ctx context.Context) ([]OpenShift, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SchedulingGroup collection
+func (r *ScheduleSchedulingGroupsCollectionRequest) Get(ctx context.Context) ([]SchedulingGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Shift collection
+func (r *ScheduleShiftsCollectionRequest) Get(ctx context.Context) ([]Shift, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SwapShiftsChangeRequestObject collection
+func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) Get(ctx context.Context) ([]SwapShiftsChangeRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TimeOffReason collection
+func (r *ScheduleTimeOffReasonsCollectionRequest) Get(ctx context.Context) ([]TimeOffReason, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TimeOffRequestObject collection
+func (r *ScheduleTimeOffRequestsCollectionRequest) Get(ctx context.Context) ([]TimeOffRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TimeOff collection
+func (r *ScheduleTimesOffCollectionRequest) Get(ctx context.Context) ([]TimeOff, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/SchedulingGroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SchedulingGroupModel.go
new file mode 100644
index 00000000..12ca976a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SchedulingGroupModel.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/matterbridge/msgraph.go/beta/SchedulingGroupRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SchedulingGroupRequest.go
new file mode 100644
index 00000000..4fba8a73
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SchedulingGroupRequest.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/matterbridge/msgraph.go/beta/SchemaExtensionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SchemaExtensionModel.go
new file mode 100644
index 00000000..da711215
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SchemaExtensionModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/SchemaExtensionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SchemaExtensionRequest.go
new file mode 100644
index 00000000..4d818b8e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SchemaExtensionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/SchemaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SchemaModel.go
new file mode 100644
index 00000000..da7ee3db
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SchemaModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SchemaRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SchemaRequest.go
new file mode 100644
index 00000000..3356bb60
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SchemaRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ScopeOperatorMultiValuedComparisonTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScopeOperatorMultiValuedComparisonTypeEnum.go
new file mode 100644
index 00000000..43bb4fa2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScopeOperatorMultiValuedComparisonTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScopeOperatorMultiValuedComparisonType undocumented
+type ScopeOperatorMultiValuedComparisonType int
+
+const (
+ // ScopeOperatorMultiValuedComparisonTypeVAll undocumented
+ ScopeOperatorMultiValuedComparisonTypeVAll ScopeOperatorMultiValuedComparisonType = 0
+ // ScopeOperatorMultiValuedComparisonTypeVAny undocumented
+ ScopeOperatorMultiValuedComparisonTypeVAny ScopeOperatorMultiValuedComparisonType = 1
+)
+
+// ScopeOperatorMultiValuedComparisonTypePAll returns a pointer to ScopeOperatorMultiValuedComparisonTypeVAll
+func ScopeOperatorMultiValuedComparisonTypePAll() *ScopeOperatorMultiValuedComparisonType {
+ v := ScopeOperatorMultiValuedComparisonTypeVAll
+ return &v
+}
+
+// ScopeOperatorMultiValuedComparisonTypePAny returns a pointer to ScopeOperatorMultiValuedComparisonTypeVAny
+func ScopeOperatorMultiValuedComparisonTypePAny() *ScopeOperatorMultiValuedComparisonType {
+ v := ScopeOperatorMultiValuedComparisonTypeVAny
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ScopeOperatorTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScopeOperatorTypeEnum.go
new file mode 100644
index 00000000..2516c9bc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScopeOperatorTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScopeOperatorType undocumented
+type ScopeOperatorType int
+
+const (
+ // ScopeOperatorTypeVBinary undocumented
+ ScopeOperatorTypeVBinary ScopeOperatorType = 0
+ // ScopeOperatorTypeVUnary undocumented
+ ScopeOperatorTypeVUnary ScopeOperatorType = 1
+)
+
+// ScopeOperatorTypePBinary returns a pointer to ScopeOperatorTypeVBinary
+func ScopeOperatorTypePBinary() *ScopeOperatorType {
+ v := ScopeOperatorTypeVBinary
+ return &v
+}
+
+// ScopeOperatorTypePUnary returns a pointer to ScopeOperatorTypeVUnary
+func ScopeOperatorTypePUnary() *ScopeOperatorType {
+ v := ScopeOperatorTypeVUnary
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ScopedRoleMembershipModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScopedRoleMembershipModel.go
new file mode 100644
index 00000000..78fabe4e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScopedRoleMembershipModel.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/matterbridge/msgraph.go/beta/ScopedRoleMembershipRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScopedRoleMembershipRequest.go
new file mode 100644
index 00000000..b1852f1e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScopedRoleMembershipRequest.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/matterbridge/msgraph.go/beta/ScreenSharingRoleEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScreenSharingRoleEnum.go
new file mode 100644
index 00000000..32362927
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ScreenSharingRoleEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScreenSharingRole undocumented
+type ScreenSharingRole int
+
+const (
+ // ScreenSharingRoleVViewer undocumented
+ ScreenSharingRoleVViewer ScreenSharingRole = 0
+ // ScreenSharingRoleVSharer undocumented
+ ScreenSharingRoleVSharer ScreenSharingRole = 1
+)
+
+// ScreenSharingRolePViewer returns a pointer to ScreenSharingRoleVViewer
+func ScreenSharingRolePViewer() *ScreenSharingRole {
+ v := ScreenSharingRoleVViewer
+ return &v
+}
+
+// ScreenSharingRolePSharer returns a pointer to ScreenSharingRoleVSharer
+func ScreenSharingRolePSharer() *ScreenSharingRole {
+ v := ScreenSharingRoleVSharer
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SearchAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/SearchAction.go
new file mode 100644
index 00000000..9cfafbfe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SearchAction.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// SearchQueryRequestParameter undocumented
+type SearchQueryRequestParameter struct {
+ // Requests undocumented
+ Requests []SearchRequestObject `json:"requests,omitempty"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]SearchResponse, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SearchHitModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SearchHitModel.go
new file mode 100644
index 00000000..4fce75d0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SearchHitModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SearchHitsContainerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SearchHitsContainerModel.go
new file mode 100644
index 00000000..118d3f6d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SearchHitsContainerModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SearchModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SearchModel.go
new file mode 100644
index 00000000..8c67910e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SearchModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Search undocumented
+type Search struct {
+ // Entity is the base model of Search
+ Entity
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SearchQueryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SearchQueryModel.go
new file mode 100644
index 00000000..b0693bbb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SearchQueryModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SearchQuery undocumented
+type SearchQuery struct {
+ // Object is the base model of SearchQuery
+ Object
+ // Query_string undocumented
+ Query_string *SearchQueryString `json:"query_string,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SearchQueryStringModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SearchQueryStringModel.go
new file mode 100644
index 00000000..039d6355
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SearchQueryStringModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SearchQueryString undocumented
+type SearchQueryString struct {
+ // Object is the base model of SearchQueryString
+ Object
+ // Query undocumented
+ Query *string `json:"query,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SearchRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SearchRequest.go
new file mode 100644
index 00000000..6cb8c66f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SearchRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SearchRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SearchRequestObjectModel.go
new file mode 100644
index 00000000..4fdf557c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SearchRequestObjectModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SearchResponseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SearchResponseModel.go
new file mode 100644
index 00000000..6f598315
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SearchResponseModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SearchResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SearchResultModel.go
new file mode 100644
index 00000000..7ebdfe92
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SearchResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/SectionGroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SectionGroupModel.go
new file mode 100644
index 00000000..05e2af47
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SectionGroupModel.go
@@ -0,0 +1,21 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SectionGroupRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SectionGroupRequest.go
new file mode 100644
index 00000000..6ea95afc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SectionGroupRequest.go
@@ -0,0 +1,247 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SectionGroup collection
+func (r *SectionGroupSectionGroupsCollectionRequest) Get(ctx context.Context) ([]SectionGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnenoteSection collection
+func (r *SectionGroupSectionsCollectionRequest) Get(ctx context.Context) ([]OnenoteSection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/SectionLinksModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SectionLinksModel.go
new file mode 100644
index 00000000..4b4427fd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SectionLinksModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/SecureAssessmentAccountTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecureAssessmentAccountTypeEnum.go
new file mode 100644
index 00000000..948b6b7e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecureAssessmentAccountTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecureAssessmentAccountType undocumented
+type SecureAssessmentAccountType int
+
+const (
+ // SecureAssessmentAccountTypeVAzureADAccount undocumented
+ SecureAssessmentAccountTypeVAzureADAccount SecureAssessmentAccountType = 0
+ // SecureAssessmentAccountTypeVDomainAccount undocumented
+ SecureAssessmentAccountTypeVDomainAccount SecureAssessmentAccountType = 1
+ // SecureAssessmentAccountTypeVLocalAccount undocumented
+ SecureAssessmentAccountTypeVLocalAccount SecureAssessmentAccountType = 2
+ // SecureAssessmentAccountTypeVLocalGuestAccount undocumented
+ SecureAssessmentAccountTypeVLocalGuestAccount SecureAssessmentAccountType = 3
+)
+
+// SecureAssessmentAccountTypePAzureADAccount returns a pointer to SecureAssessmentAccountTypeVAzureADAccount
+func SecureAssessmentAccountTypePAzureADAccount() *SecureAssessmentAccountType {
+ v := SecureAssessmentAccountTypeVAzureADAccount
+ return &v
+}
+
+// SecureAssessmentAccountTypePDomainAccount returns a pointer to SecureAssessmentAccountTypeVDomainAccount
+func SecureAssessmentAccountTypePDomainAccount() *SecureAssessmentAccountType {
+ v := SecureAssessmentAccountTypeVDomainAccount
+ return &v
+}
+
+// SecureAssessmentAccountTypePLocalAccount returns a pointer to SecureAssessmentAccountTypeVLocalAccount
+func SecureAssessmentAccountTypePLocalAccount() *SecureAssessmentAccountType {
+ v := SecureAssessmentAccountTypeVLocalAccount
+ return &v
+}
+
+// SecureAssessmentAccountTypePLocalGuestAccount returns a pointer to SecureAssessmentAccountTypeVLocalGuestAccount
+func SecureAssessmentAccountTypePLocalGuestAccount() *SecureAssessmentAccountType {
+ v := SecureAssessmentAccountTypeVLocalGuestAccount
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecureBootWithDMATypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecureBootWithDMATypeEnum.go
new file mode 100644
index 00000000..ee7a28d7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecureBootWithDMATypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecureBootWithDMAType undocumented
+type SecureBootWithDMAType int
+
+const (
+ // SecureBootWithDMATypeVNotConfigured undocumented
+ SecureBootWithDMATypeVNotConfigured SecureBootWithDMAType = 0
+ // SecureBootWithDMATypeVWithoutDMA undocumented
+ SecureBootWithDMATypeVWithoutDMA SecureBootWithDMAType = 1
+ // SecureBootWithDMATypeVWithDMA undocumented
+ SecureBootWithDMATypeVWithDMA SecureBootWithDMAType = 3
+)
+
+// SecureBootWithDMATypePNotConfigured returns a pointer to SecureBootWithDMATypeVNotConfigured
+func SecureBootWithDMATypePNotConfigured() *SecureBootWithDMAType {
+ v := SecureBootWithDMATypeVNotConfigured
+ return &v
+}
+
+// SecureBootWithDMATypePWithoutDMA returns a pointer to SecureBootWithDMATypeVWithoutDMA
+func SecureBootWithDMATypePWithoutDMA() *SecureBootWithDMAType {
+ v := SecureBootWithDMATypeVWithoutDMA
+ return &v
+}
+
+// SecureBootWithDMATypePWithDMA returns a pointer to SecureBootWithDMATypeVWithDMA
+func SecureBootWithDMATypePWithDMA() *SecureBootWithDMAType {
+ v := SecureBootWithDMATypeVWithDMA
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlProfileModel.go
new file mode 100644
index 00000000..632bf170
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlProfileModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlProfileRequest.go
new file mode 100644
index 00000000..b53e8da9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/SecureScoreControlStateUpdateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlStateUpdateModel.go
new file mode 100644
index 00000000..d2acf342
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlStateUpdateModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/SecureScoreModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreModel.go
new file mode 100644
index 00000000..675a3a00
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreModel.go
@@ -0,0 +1,31 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreRequest.go
new file mode 100644
index 00000000..74dcfb9c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionAction.go
new file mode 100644
index 00000000..840381ad
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SecurityActionCancelSecurityActionRequestParameter undocumented
+type SecurityActionCancelSecurityActionRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/SecurityActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionModel.go
new file mode 100644
index 00000000..da7e1ae0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionRequest.go
new file mode 100644
index 00000000..e58f8727
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionStateModel.go
new file mode 100644
index 00000000..1acd0a42
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionStateModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineCategoryStateSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineCategoryStateSummaryModel.go
new file mode 100644
index 00000000..c121a750
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineCategoryStateSummaryModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineCategoryStateSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineCategoryStateSummaryRequest.go
new file mode 100644
index 00000000..8c6302f5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineCategoryStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineComplianceStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineComplianceStateEnum.go
new file mode 100644
index 00000000..c6ef69ce
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineComplianceStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecurityBaselineComplianceState undocumented
+type SecurityBaselineComplianceState int
+
+const (
+ // SecurityBaselineComplianceStateVUnknown undocumented
+ SecurityBaselineComplianceStateVUnknown SecurityBaselineComplianceState = 0
+ // SecurityBaselineComplianceStateVSecure undocumented
+ SecurityBaselineComplianceStateVSecure SecurityBaselineComplianceState = 1
+ // SecurityBaselineComplianceStateVNotApplicable undocumented
+ SecurityBaselineComplianceStateVNotApplicable SecurityBaselineComplianceState = 2
+ // SecurityBaselineComplianceStateVNotSecure undocumented
+ SecurityBaselineComplianceStateVNotSecure SecurityBaselineComplianceState = 3
+ // SecurityBaselineComplianceStateVError undocumented
+ SecurityBaselineComplianceStateVError SecurityBaselineComplianceState = 4
+ // SecurityBaselineComplianceStateVConflict undocumented
+ SecurityBaselineComplianceStateVConflict SecurityBaselineComplianceState = 5
+)
+
+// SecurityBaselineComplianceStatePUnknown returns a pointer to SecurityBaselineComplianceStateVUnknown
+func SecurityBaselineComplianceStatePUnknown() *SecurityBaselineComplianceState {
+ v := SecurityBaselineComplianceStateVUnknown
+ return &v
+}
+
+// SecurityBaselineComplianceStatePSecure returns a pointer to SecurityBaselineComplianceStateVSecure
+func SecurityBaselineComplianceStatePSecure() *SecurityBaselineComplianceState {
+ v := SecurityBaselineComplianceStateVSecure
+ return &v
+}
+
+// SecurityBaselineComplianceStatePNotApplicable returns a pointer to SecurityBaselineComplianceStateVNotApplicable
+func SecurityBaselineComplianceStatePNotApplicable() *SecurityBaselineComplianceState {
+ v := SecurityBaselineComplianceStateVNotApplicable
+ return &v
+}
+
+// SecurityBaselineComplianceStatePNotSecure returns a pointer to SecurityBaselineComplianceStateVNotSecure
+func SecurityBaselineComplianceStatePNotSecure() *SecurityBaselineComplianceState {
+ v := SecurityBaselineComplianceStateVNotSecure
+ return &v
+}
+
+// SecurityBaselineComplianceStatePError returns a pointer to SecurityBaselineComplianceStateVError
+func SecurityBaselineComplianceStatePError() *SecurityBaselineComplianceState {
+ v := SecurityBaselineComplianceStateVError
+ return &v
+}
+
+// SecurityBaselineComplianceStatePConflict returns a pointer to SecurityBaselineComplianceStateVConflict
+func SecurityBaselineComplianceStatePConflict() *SecurityBaselineComplianceState {
+ v := SecurityBaselineComplianceStateVConflict
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineDeviceStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineDeviceStateModel.go
new file mode 100644
index 00000000..7fd1c614
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineDeviceStateModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineDeviceStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineDeviceStateRequest.go
new file mode 100644
index 00000000..a2b113eb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineDeviceStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineSettingStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineSettingStateModel.go
new file mode 100644
index 00000000..4f9dc982
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineSettingStateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineSettingStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineSettingStateRequest.go
new file mode 100644
index 00000000..d7a02e75
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineSettingStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateModel.go
new file mode 100644
index 00000000..7621e310
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateRequest.go
new file mode 100644
index 00000000..640e9bd7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SecurityBaselineSettingState collection
+func (r *SecurityBaselineStateSettingStatesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineSettingState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateSummaryModel.go
new file mode 100644
index 00000000..18f50bd6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateSummaryModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateSummaryRequest.go
new file mode 100644
index 00000000..5f9f605f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineTemplateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineTemplateModel.go
new file mode 100644
index 00000000..96a2a22f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineTemplateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineTemplateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineTemplateRequest.go
new file mode 100644
index 00000000..84cbe176
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineTemplateRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SecurityBaselineCategoryStateSummary collection
+func (r *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineCategoryStateSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SecurityBaselineDeviceState collection
+func (r *SecurityBaselineTemplateDeviceStatesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/SecurityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityModel.go
new file mode 100644
index 00000000..acaa4719
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityNetworkProtocolEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityNetworkProtocolEnum.go
new file mode 100644
index 00000000..fe6bc653
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityNetworkProtocolEnum.go
@@ -0,0 +1,201 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecurityNetworkProtocol undocumented
+type SecurityNetworkProtocol int
+
+const (
+ // SecurityNetworkProtocolVIP undocumented
+ SecurityNetworkProtocolVIP SecurityNetworkProtocol = 0
+ // SecurityNetworkProtocolVICMP undocumented
+ SecurityNetworkProtocolVICMP SecurityNetworkProtocol = 1
+ // SecurityNetworkProtocolVIGMP undocumented
+ SecurityNetworkProtocolVIGMP SecurityNetworkProtocol = 2
+ // SecurityNetworkProtocolVGgp undocumented
+ SecurityNetworkProtocolVGgp SecurityNetworkProtocol = 3
+ // SecurityNetworkProtocolVIpv4 undocumented
+ SecurityNetworkProtocolVIpv4 SecurityNetworkProtocol = 4
+ // SecurityNetworkProtocolVTCP undocumented
+ SecurityNetworkProtocolVTCP SecurityNetworkProtocol = 6
+ // SecurityNetworkProtocolVPup undocumented
+ SecurityNetworkProtocolVPup SecurityNetworkProtocol = 12
+ // SecurityNetworkProtocolVUDP undocumented
+ SecurityNetworkProtocolVUDP SecurityNetworkProtocol = 17
+ // SecurityNetworkProtocolVIdp undocumented
+ SecurityNetworkProtocolVIdp SecurityNetworkProtocol = 22
+ // SecurityNetworkProtocolVIpv6 undocumented
+ SecurityNetworkProtocolVIpv6 SecurityNetworkProtocol = 41
+ // SecurityNetworkProtocolVIpv6RoutingHeader undocumented
+ SecurityNetworkProtocolVIpv6RoutingHeader SecurityNetworkProtocol = 43
+ // SecurityNetworkProtocolVIpv6FragmentHeader undocumented
+ SecurityNetworkProtocolVIpv6FragmentHeader SecurityNetworkProtocol = 44
+ // SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload undocumented
+ SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload SecurityNetworkProtocol = 50
+ // SecurityNetworkProtocolVIPSecAuthenticationHeader undocumented
+ SecurityNetworkProtocolVIPSecAuthenticationHeader SecurityNetworkProtocol = 51
+ // SecurityNetworkProtocolVICMPV6 undocumented
+ SecurityNetworkProtocolVICMPV6 SecurityNetworkProtocol = 58
+ // SecurityNetworkProtocolVIpv6NoNextHeader undocumented
+ SecurityNetworkProtocolVIpv6NoNextHeader SecurityNetworkProtocol = 59
+ // SecurityNetworkProtocolVIpv6DestinationOptions undocumented
+ SecurityNetworkProtocolVIpv6DestinationOptions SecurityNetworkProtocol = 60
+ // SecurityNetworkProtocolVNd undocumented
+ SecurityNetworkProtocolVNd SecurityNetworkProtocol = 77
+ // SecurityNetworkProtocolVRaw undocumented
+ SecurityNetworkProtocolVRaw SecurityNetworkProtocol = 255
+ // SecurityNetworkProtocolVIpx undocumented
+ SecurityNetworkProtocolVIpx SecurityNetworkProtocol = 1000
+ // SecurityNetworkProtocolVSpx undocumented
+ SecurityNetworkProtocolVSpx SecurityNetworkProtocol = 1256
+ // SecurityNetworkProtocolVSpxII undocumented
+ SecurityNetworkProtocolVSpxII SecurityNetworkProtocol = 1257
+ // SecurityNetworkProtocolVUnknownFutureValue undocumented
+ SecurityNetworkProtocolVUnknownFutureValue SecurityNetworkProtocol = 32767
+ // SecurityNetworkProtocolVUnknown undocumented
+ SecurityNetworkProtocolVUnknown SecurityNetworkProtocol = -1
+)
+
+// SecurityNetworkProtocolPIP returns a pointer to SecurityNetworkProtocolVIP
+func SecurityNetworkProtocolPIP() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIP
+ return &v
+}
+
+// SecurityNetworkProtocolPICMP returns a pointer to SecurityNetworkProtocolVICMP
+func SecurityNetworkProtocolPICMP() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVICMP
+ return &v
+}
+
+// SecurityNetworkProtocolPIGMP returns a pointer to SecurityNetworkProtocolVIGMP
+func SecurityNetworkProtocolPIGMP() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIGMP
+ return &v
+}
+
+// SecurityNetworkProtocolPGgp returns a pointer to SecurityNetworkProtocolVGgp
+func SecurityNetworkProtocolPGgp() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVGgp
+ return &v
+}
+
+// SecurityNetworkProtocolPIpv4 returns a pointer to SecurityNetworkProtocolVIpv4
+func SecurityNetworkProtocolPIpv4() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIpv4
+ return &v
+}
+
+// SecurityNetworkProtocolPTCP returns a pointer to SecurityNetworkProtocolVTCP
+func SecurityNetworkProtocolPTCP() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVTCP
+ return &v
+}
+
+// SecurityNetworkProtocolPPup returns a pointer to SecurityNetworkProtocolVPup
+func SecurityNetworkProtocolPPup() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVPup
+ return &v
+}
+
+// SecurityNetworkProtocolPUDP returns a pointer to SecurityNetworkProtocolVUDP
+func SecurityNetworkProtocolPUDP() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVUDP
+ return &v
+}
+
+// SecurityNetworkProtocolPIdp returns a pointer to SecurityNetworkProtocolVIdp
+func SecurityNetworkProtocolPIdp() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIdp
+ return &v
+}
+
+// SecurityNetworkProtocolPIpv6 returns a pointer to SecurityNetworkProtocolVIpv6
+func SecurityNetworkProtocolPIpv6() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIpv6
+ return &v
+}
+
+// SecurityNetworkProtocolPIpv6RoutingHeader returns a pointer to SecurityNetworkProtocolVIpv6RoutingHeader
+func SecurityNetworkProtocolPIpv6RoutingHeader() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIpv6RoutingHeader
+ return &v
+}
+
+// SecurityNetworkProtocolPIpv6FragmentHeader returns a pointer to SecurityNetworkProtocolVIpv6FragmentHeader
+func SecurityNetworkProtocolPIpv6FragmentHeader() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIpv6FragmentHeader
+ return &v
+}
+
+// SecurityNetworkProtocolPIPSecEncapsulatingSecurityPayload returns a pointer to SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload
+func SecurityNetworkProtocolPIPSecEncapsulatingSecurityPayload() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload
+ return &v
+}
+
+// SecurityNetworkProtocolPIPSecAuthenticationHeader returns a pointer to SecurityNetworkProtocolVIPSecAuthenticationHeader
+func SecurityNetworkProtocolPIPSecAuthenticationHeader() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIPSecAuthenticationHeader
+ return &v
+}
+
+// SecurityNetworkProtocolPICMPV6 returns a pointer to SecurityNetworkProtocolVICMPV6
+func SecurityNetworkProtocolPICMPV6() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVICMPV6
+ return &v
+}
+
+// SecurityNetworkProtocolPIpv6NoNextHeader returns a pointer to SecurityNetworkProtocolVIpv6NoNextHeader
+func SecurityNetworkProtocolPIpv6NoNextHeader() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIpv6NoNextHeader
+ return &v
+}
+
+// SecurityNetworkProtocolPIpv6DestinationOptions returns a pointer to SecurityNetworkProtocolVIpv6DestinationOptions
+func SecurityNetworkProtocolPIpv6DestinationOptions() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIpv6DestinationOptions
+ return &v
+}
+
+// SecurityNetworkProtocolPNd returns a pointer to SecurityNetworkProtocolVNd
+func SecurityNetworkProtocolPNd() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVNd
+ return &v
+}
+
+// SecurityNetworkProtocolPRaw returns a pointer to SecurityNetworkProtocolVRaw
+func SecurityNetworkProtocolPRaw() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVRaw
+ return &v
+}
+
+// SecurityNetworkProtocolPIpx returns a pointer to SecurityNetworkProtocolVIpx
+func SecurityNetworkProtocolPIpx() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIpx
+ return &v
+}
+
+// SecurityNetworkProtocolPSpx returns a pointer to SecurityNetworkProtocolVSpx
+func SecurityNetworkProtocolPSpx() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVSpx
+ return &v
+}
+
+// SecurityNetworkProtocolPSpxII returns a pointer to SecurityNetworkProtocolVSpxII
+func SecurityNetworkProtocolPSpxII() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVSpxII
+ return &v
+}
+
+// SecurityNetworkProtocolPUnknownFutureValue returns a pointer to SecurityNetworkProtocolVUnknownFutureValue
+func SecurityNetworkProtocolPUnknownFutureValue() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVUnknownFutureValue
+ return &v
+}
+
+// SecurityNetworkProtocolPUnknown returns a pointer to SecurityNetworkProtocolVUnknown
+func SecurityNetworkProtocolPUnknown() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVUnknown
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityProviderStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityProviderStatusModel.go
new file mode 100644
index 00000000..47ee0254
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityProviderStatusModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityRequest.go
new file mode 100644
index 00000000..73d336f4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityRequest.go
@@ -0,0 +1,1173 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Alert collection
+func (r *SecurityAlertsCollectionRequest) Get(ctx context.Context) ([]Alert, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CloudAppSecurityProfile collection
+func (r *SecurityCloudAppSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]CloudAppSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DomainSecurityProfile collection
+func (r *SecurityDomainSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]DomainSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for FileSecurityProfile collection
+func (r *SecurityFileSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]FileSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for HostSecurityProfile collection
+func (r *SecurityHostSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]HostSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IPSecurityProfile collection
+func (r *SecurityIPSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]IPSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProviderTenantSetting collection
+func (r *SecurityProviderTenantSettingsCollectionRequest) Get(ctx context.Context) ([]ProviderTenantSetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SecureScoreControlProfile collection
+func (r *SecuritySecureScoreControlProfilesCollectionRequest) Get(ctx context.Context) ([]SecureScoreControlProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SecureScore collection
+func (r *SecuritySecureScoresCollectionRequest) Get(ctx context.Context) ([]SecureScore, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SecurityAction collection
+func (r *SecuritySecurityActionsCollectionRequest) Get(ctx context.Context) ([]SecurityAction, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TiIndicator collection
+func (r *SecurityTiIndicatorsCollectionRequest) Get(ctx context.Context) ([]TiIndicator, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserSecurityProfile collection
+func (r *SecurityUserSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]UserSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityVendorInformationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityVendorInformationModel.go
new file mode 100644
index 00000000..7e7f1c2f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SecurityVendorInformationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/SensitiveContentEvidenceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SensitiveContentEvidenceModel.go
new file mode 100644
index 00000000..32f72be1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SensitiveContentEvidenceModel.go
@@ -0,0 +1,15 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SensitiveContentLocationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SensitiveContentLocationModel.go
new file mode 100644
index 00000000..a03a0314
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SensitiveContentLocationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SensitiveTypeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SensitiveTypeModel.go
new file mode 100644
index 00000000..f45b4ab8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SensitiveTypeModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/SensitiveTypeRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SensitiveTypeRequest.go
new file mode 100644
index 00000000..45ad6a70
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SensitiveTypeRequest.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/matterbridge/msgraph.go/beta/SensitivityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityEnum.go
new file mode 100644
index 00000000..9f532ca7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Sensitivity undocumented
+type Sensitivity int
+
+const (
+ // SensitivityVNormal undocumented
+ SensitivityVNormal Sensitivity = 0
+ // SensitivityVPersonal undocumented
+ SensitivityVPersonal Sensitivity = 1
+ // SensitivityVPrivate undocumented
+ SensitivityVPrivate Sensitivity = 2
+ // SensitivityVConfidential undocumented
+ SensitivityVConfidential Sensitivity = 3
+)
+
+// SensitivityPNormal returns a pointer to SensitivityVNormal
+func SensitivityPNormal() *Sensitivity {
+ v := SensitivityVNormal
+ return &v
+}
+
+// SensitivityPPersonal returns a pointer to SensitivityVPersonal
+func SensitivityPPersonal() *Sensitivity {
+ v := SensitivityVPersonal
+ return &v
+}
+
+// SensitivityPPrivate returns a pointer to SensitivityVPrivate
+func SensitivityPPrivate() *Sensitivity {
+ v := SensitivityVPrivate
+ return &v
+}
+
+// SensitivityPConfidential returns a pointer to SensitivityVConfidential
+func SensitivityPConfidential() *Sensitivity {
+ v := SensitivityVConfidential
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelAction.go
new file mode 100644
index 00000000..d1179cbe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelAction.go
@@ -0,0 +1,56 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SensitivityLabelCollectionEvaluateRequestParameter undocumented
+type SensitivityLabelCollectionEvaluateRequestParameter struct {
+ // DiscoveredSensitiveTypes undocumented
+ DiscoveredSensitiveTypes []DiscoveredSensitiveType `json:"discoveredSensitiveTypes,omitempty"`
+ // CurrentLabel undocumented
+ CurrentLabel *CurrentLabel `json:"currentLabel,omitempty"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/SensitivityLabelModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelModel.go
new file mode 100644
index 00000000..3036b8af
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelModel.go
@@ -0,0 +1,33 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelRequest.go
new file mode 100644
index 00000000..3b0120d8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SensitivityLabel collection
+func (r *SensitivityLabelSublabelsCollectionRequest) Get(ctx context.Context) ([]SensitivityLabel, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/SensitivityPolicySettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityPolicySettingsModel.go
new file mode 100644
index 00000000..594b5c79
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityPolicySettingsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/SensitivityPolicySettingsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityPolicySettingsRequest.go
new file mode 100644
index 00000000..1347c3ae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityPolicySettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ServiceHostedMediaConfigModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ServiceHostedMediaConfigModel.go
new file mode 100644
index 00000000..f228c380
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ServiceHostedMediaConfigModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ServiceInformationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ServiceInformationModel.go
new file mode 100644
index 00000000..a6883d3b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ServiceInformationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ServicePlanInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ServicePlanInfoModel.go
new file mode 100644
index 00000000..8bca1e17
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ServicePlanInfoModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalAction.go
new file mode 100644
index 00000000..6718618c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalAction.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/ServicePrincipalModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalModel.go
new file mode 100644
index 00000000..132dbb62
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalModel.go
@@ -0,0 +1,75 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ServicePrincipalRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalRequest.go
new file mode 100644
index 00000000..948319c8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalRequest.go
@@ -0,0 +1,992 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppRoleAssignment collection
+func (r *ServicePrincipalAppRoleAssignedToCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppRoleAssignment collection
+func (r *ServicePrincipalAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalCreatedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for LicenseDetails collection
+func (r *ServicePrincipalLicenseDetailsCollectionRequest) Get(ctx context.Context) ([]LicenseDetails, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OAuth2PermissionGrant collection
+func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Get(ctx context.Context) ([]OAuth2PermissionGrant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalOwnedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalPoliciesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ServiceStartTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ServiceStartTypeEnum.go
new file mode 100644
index 00000000..08f0cd31
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ServiceStartTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ServiceStartType undocumented
+type ServiceStartType int
+
+const (
+ // ServiceStartTypeVManual undocumented
+ ServiceStartTypeVManual ServiceStartType = 0
+ // ServiceStartTypeVAutomatic undocumented
+ ServiceStartTypeVAutomatic ServiceStartType = 1
+ // ServiceStartTypeVDisabled undocumented
+ ServiceStartTypeVDisabled ServiceStartType = 2
+)
+
+// ServiceStartTypePManual returns a pointer to ServiceStartTypeVManual
+func ServiceStartTypePManual() *ServiceStartType {
+ v := ServiceStartTypeVManual
+ return &v
+}
+
+// ServiceStartTypePAutomatic returns a pointer to ServiceStartTypeVAutomatic
+func ServiceStartTypePAutomatic() *ServiceStartType {
+ v := ServiceStartTypeVAutomatic
+ return &v
+}
+
+// ServiceStartTypePDisabled returns a pointer to ServiceStartTypeVDisabled
+func ServiceStartTypePDisabled() *ServiceStartType {
+ v := ServiceStartTypeVDisabled
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SettingSourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SettingSourceModel.go
new file mode 100644
index 00000000..d136884e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SettingSourceModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SettingStateDeviceSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SettingStateDeviceSummaryModel.go
new file mode 100644
index 00000000..27a85e76
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SettingStateDeviceSummaryModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SettingStateDeviceSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SettingStateDeviceSummaryRequest.go
new file mode 100644
index 00000000..f7612727
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SettingStateDeviceSummaryRequest.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/matterbridge/msgraph.go/beta/SettingTemplateValueModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SettingTemplateValueModel.go
new file mode 100644
index 00000000..be0e77b2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SettingTemplateValueModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SettingValueModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SettingValueModel.go
new file mode 100644
index 00000000..5eb31390
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SettingValueModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/SettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SettingsModel.go
new file mode 100644
index 00000000..fb153674
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SettingsModel.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/matterbridge/msgraph.go/beta/SetupStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SetupStatusEnum.go
new file mode 100644
index 00000000..9d80d981
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SetupStatusEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SetupStatus undocumented
+type SetupStatus int
+
+const (
+ // SetupStatusVUnknown undocumented
+ SetupStatusVUnknown SetupStatus = 0
+ // SetupStatusVNotRegisteredYet undocumented
+ SetupStatusVNotRegisteredYet SetupStatus = 1
+ // SetupStatusVRegisteredSetupNotStarted undocumented
+ SetupStatusVRegisteredSetupNotStarted SetupStatus = 2
+ // SetupStatusVRegisteredSetupInProgress undocumented
+ SetupStatusVRegisteredSetupInProgress SetupStatus = 3
+ // SetupStatusVRegistrationAndSetupCompleted undocumented
+ SetupStatusVRegistrationAndSetupCompleted SetupStatus = 4
+ // SetupStatusVRegistrationFailed undocumented
+ SetupStatusVRegistrationFailed SetupStatus = 5
+ // SetupStatusVRegistrationTimedOut undocumented
+ SetupStatusVRegistrationTimedOut SetupStatus = 6
+ // SetupStatusVDisabled undocumented
+ SetupStatusVDisabled SetupStatus = 7
+)
+
+// SetupStatusPUnknown returns a pointer to SetupStatusVUnknown
+func SetupStatusPUnknown() *SetupStatus {
+ v := SetupStatusVUnknown
+ return &v
+}
+
+// SetupStatusPNotRegisteredYet returns a pointer to SetupStatusVNotRegisteredYet
+func SetupStatusPNotRegisteredYet() *SetupStatus {
+ v := SetupStatusVNotRegisteredYet
+ return &v
+}
+
+// SetupStatusPRegisteredSetupNotStarted returns a pointer to SetupStatusVRegisteredSetupNotStarted
+func SetupStatusPRegisteredSetupNotStarted() *SetupStatus {
+ v := SetupStatusVRegisteredSetupNotStarted
+ return &v
+}
+
+// SetupStatusPRegisteredSetupInProgress returns a pointer to SetupStatusVRegisteredSetupInProgress
+func SetupStatusPRegisteredSetupInProgress() *SetupStatus {
+ v := SetupStatusVRegisteredSetupInProgress
+ return &v
+}
+
+// SetupStatusPRegistrationAndSetupCompleted returns a pointer to SetupStatusVRegistrationAndSetupCompleted
+func SetupStatusPRegistrationAndSetupCompleted() *SetupStatus {
+ v := SetupStatusVRegistrationAndSetupCompleted
+ return &v
+}
+
+// SetupStatusPRegistrationFailed returns a pointer to SetupStatusVRegistrationFailed
+func SetupStatusPRegistrationFailed() *SetupStatus {
+ v := SetupStatusVRegistrationFailed
+ return &v
+}
+
+// SetupStatusPRegistrationTimedOut returns a pointer to SetupStatusVRegistrationTimedOut
+func SetupStatusPRegistrationTimedOut() *SetupStatus {
+ v := SetupStatusVRegistrationTimedOut
+ return &v
+}
+
+// SetupStatusPDisabled returns a pointer to SetupStatusVDisabled
+func SetupStatusPDisabled() *SetupStatus {
+ v := SetupStatusVDisabled
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ShareActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ShareActionModel.go
new file mode 100644
index 00000000..daaaea45
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ShareActionModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityPagesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityPagesModel.go
new file mode 100644
index 00000000..7c11cd37
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityPagesModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharePointActivityPages undocumented
+type SharePointActivityPages struct {
+ // Entity is the base model of SharePointActivityPages
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // VisitedPageCount undocumented
+ VisitedPageCount *int `json:"visitedPageCount,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityUserCountsModel.go
new file mode 100644
index 00000000..b85ae65c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityUserCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharePointActivityUserCounts undocumented
+type SharePointActivityUserCounts struct {
+ // Entity is the base model of SharePointActivityUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityUserDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityUserDetailModel.go
new file mode 100644
index 00000000..89f755d9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityUserDetailModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharePointActivityUserDetail undocumented
+type SharePointActivityUserDetail struct {
+ // Entity is the base model of SharePointActivityUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *time.Time `json:"deletedDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageDetailModel.go
new file mode 100644
index 00000000..0e7ea2c5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageDetailModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharePointSiteUsageDetail undocumented
+type SharePointSiteUsageDetail struct {
+ // Entity is the base model of SharePointSiteUsageDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageFileCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageFileCountsModel.go
new file mode 100644
index 00000000..26b20898
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageFileCountsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharePointSiteUsageFileCounts undocumented
+type SharePointSiteUsageFileCounts struct {
+ // Entity is the base model of SharePointSiteUsageFileCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsagePagesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsagePagesModel.go
new file mode 100644
index 00000000..6e5257c7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsagePagesModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharePointSiteUsagePages undocumented
+type SharePointSiteUsagePages struct {
+ // Entity is the base model of SharePointSiteUsagePages
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // SiteType undocumented
+ SiteType *string `json:"siteType,omitempty"`
+ // PageViewCount undocumented
+ PageViewCount *int `json:"pageViewCount,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageSiteCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageSiteCountsModel.go
new file mode 100644
index 00000000..cb80a5db
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageSiteCountsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharePointSiteUsageSiteCounts undocumented
+type SharePointSiteUsageSiteCounts struct {
+ // Entity is the base model of SharePointSiteUsageSiteCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharedAppleDeviceUserModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharedAppleDeviceUserModel.go
new file mode 100644
index 00000000..9d3e9036
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharedAppleDeviceUserModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharedDriveItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharedDriveItemModel.go
new file mode 100644
index 00000000..eccdd6c0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharedDriveItemModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharedDriveItemRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharedDriveItemRequest.go
new file mode 100644
index 00000000..23efd9f4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharedDriveItemRequest.go
@@ -0,0 +1,181 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItem collection
+func (r *SharedDriveItemItemsCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharedInsightModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharedInsightModel.go
new file mode 100644
index 00000000..9919f412
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharedInsightModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharedInsightRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharedInsightRequest.go
new file mode 100644
index 00000000..0065f4f4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharedInsightRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/SharedModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharedModel.go
new file mode 100644
index 00000000..add0c749
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharedModel.go
@@ -0,0 +1,19 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAccountDeletionPolicyTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAccountDeletionPolicyTypeEnum.go
new file mode 100644
index 00000000..ccadb6db
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAccountDeletionPolicyTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SharedPCAccountDeletionPolicyType undocumented
+type SharedPCAccountDeletionPolicyType int
+
+const (
+ // SharedPCAccountDeletionPolicyTypeVImmediate undocumented
+ SharedPCAccountDeletionPolicyTypeVImmediate SharedPCAccountDeletionPolicyType = 0
+ // SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold undocumented
+ SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold SharedPCAccountDeletionPolicyType = 1
+ // SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold undocumented
+ SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold SharedPCAccountDeletionPolicyType = 2
+)
+
+// SharedPCAccountDeletionPolicyTypePImmediate returns a pointer to SharedPCAccountDeletionPolicyTypeVImmediate
+func SharedPCAccountDeletionPolicyTypePImmediate() *SharedPCAccountDeletionPolicyType {
+ v := SharedPCAccountDeletionPolicyTypeVImmediate
+ return &v
+}
+
+// SharedPCAccountDeletionPolicyTypePDiskSpaceThreshold returns a pointer to SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold
+func SharedPCAccountDeletionPolicyTypePDiskSpaceThreshold() *SharedPCAccountDeletionPolicyType {
+ v := SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold
+ return &v
+}
+
+// SharedPCAccountDeletionPolicyTypePDiskSpaceThresholdOrInactiveThreshold returns a pointer to SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold
+func SharedPCAccountDeletionPolicyTypePDiskSpaceThresholdOrInactiveThreshold() *SharedPCAccountDeletionPolicyType {
+ v := SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAccountManagerPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAccountManagerPolicyModel.go
new file mode 100644
index 00000000..ead9f7d3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAccountManagerPolicyModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAllowedAccountTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAllowedAccountTypeEnum.go
new file mode 100644
index 00000000..2ec0ae8e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAllowedAccountTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SharedPCAllowedAccountType undocumented
+type SharedPCAllowedAccountType int
+
+const (
+ // SharedPCAllowedAccountTypeVNotConfigured undocumented
+ SharedPCAllowedAccountTypeVNotConfigured SharedPCAllowedAccountType = 0
+ // SharedPCAllowedAccountTypeVGuest undocumented
+ SharedPCAllowedAccountTypeVGuest SharedPCAllowedAccountType = 1
+ // SharedPCAllowedAccountTypeVDomain undocumented
+ SharedPCAllowedAccountTypeVDomain SharedPCAllowedAccountType = 2
+)
+
+// SharedPCAllowedAccountTypePNotConfigured returns a pointer to SharedPCAllowedAccountTypeVNotConfigured
+func SharedPCAllowedAccountTypePNotConfigured() *SharedPCAllowedAccountType {
+ v := SharedPCAllowedAccountTypeVNotConfigured
+ return &v
+}
+
+// SharedPCAllowedAccountTypePGuest returns a pointer to SharedPCAllowedAccountTypeVGuest
+func SharedPCAllowedAccountTypePGuest() *SharedPCAllowedAccountType {
+ v := SharedPCAllowedAccountTypeVGuest
+ return &v
+}
+
+// SharedPCAllowedAccountTypePDomain returns a pointer to SharedPCAllowedAccountTypeVDomain
+func SharedPCAllowedAccountTypePDomain() *SharedPCAllowedAccountType {
+ v := SharedPCAllowedAccountTypeVDomain
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCConfigurationModel.go
new file mode 100644
index 00000000..597001c5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCConfigurationModel.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `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/matterbridge/msgraph.go/beta/SharepointIDsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharepointIDsModel.go
new file mode 100644
index 00000000..a2d419ad
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharepointIDsModel.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/matterbridge/msgraph.go/beta/SharingDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharingDetailModel.go
new file mode 100644
index 00000000..11f7737f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharingDetailModel.go
@@ -0,0 +1,21 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharingInvitationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharingInvitationModel.go
new file mode 100644
index 00000000..114d9300
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharingInvitationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharingLinkModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharingLinkModel.go
new file mode 100644
index 00000000..7e68294f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SharingLinkModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ShiftActivityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ShiftActivityModel.go
new file mode 100644
index 00000000..9119998d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ShiftActivityModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ShiftChangeRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ShiftChangeRequestObjectModel.go
new file mode 100644
index 00000000..4cedc851
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ShiftChangeRequestObjectModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ShiftItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ShiftItemModel.go
new file mode 100644
index 00000000..c9486d12
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ShiftItemModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ShiftModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ShiftModel.go
new file mode 100644
index 00000000..c6473680
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ShiftModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ShiftRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ShiftRequest.go
new file mode 100644
index 00000000..efe3a1ba
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ShiftRequest.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/matterbridge/msgraph.go/beta/ShipmentMethodModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ShipmentMethodModel.go
new file mode 100644
index 00000000..06a0985c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ShipmentMethodModel.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/matterbridge/msgraph.go/beta/ShipmentMethodRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ShipmentMethodRequest.go
new file mode 100644
index 00000000..a9c6c10c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ShipmentMethodRequest.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/matterbridge/msgraph.go/beta/SideLoadingKeyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SideLoadingKeyModel.go
new file mode 100644
index 00000000..13e64b1b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SideLoadingKeyModel.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/matterbridge/msgraph.go/beta/SideLoadingKeyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SideLoadingKeyRequest.go
new file mode 100644
index 00000000..9bc07030
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SideLoadingKeyRequest.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/matterbridge/msgraph.go/beta/SignInActivityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SignInActivityModel.go
new file mode 100644
index 00000000..199ccc67
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SignInActivityModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SignInAssistantOptionsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SignInAssistantOptionsEnum.go
new file mode 100644
index 00000000..8838651d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SignInAssistantOptionsEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SignInAssistantOptions undocumented
+type SignInAssistantOptions int
+
+const (
+ // SignInAssistantOptionsVNotConfigured undocumented
+ SignInAssistantOptionsVNotConfigured SignInAssistantOptions = 0
+ // SignInAssistantOptionsVDisabled undocumented
+ SignInAssistantOptionsVDisabled SignInAssistantOptions = 1
+)
+
+// SignInAssistantOptionsPNotConfigured returns a pointer to SignInAssistantOptionsVNotConfigured
+func SignInAssistantOptionsPNotConfigured() *SignInAssistantOptions {
+ v := SignInAssistantOptionsVNotConfigured
+ return &v
+}
+
+// SignInAssistantOptionsPDisabled returns a pointer to SignInAssistantOptionsVDisabled
+func SignInAssistantOptionsPDisabled() *SignInAssistantOptions {
+ v := SignInAssistantOptionsVDisabled
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SignInFrequencySessionControlModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SignInFrequencySessionControlModel.go
new file mode 100644
index 00000000..0d0452e2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SignInFrequencySessionControlModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SignInLocationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SignInLocationModel.go
new file mode 100644
index 00000000..78e5cd48
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SignInLocationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SignInModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SignInModel.go
new file mode 100644
index 00000000..d351dca0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SignInModel.go
@@ -0,0 +1,83 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SignInRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SignInRequest.go
new file mode 100644
index 00000000..9e0df0a2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SignInRequest.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/matterbridge/msgraph.go/beta/SignInStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SignInStatusModel.go
new file mode 100644
index 00000000..d465764c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SignInStatusModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/SigninFrequencyTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SigninFrequencyTypeEnum.go
new file mode 100644
index 00000000..49e5211b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SigninFrequencyTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SigninFrequencyType undocumented
+type SigninFrequencyType int
+
+const (
+ // SigninFrequencyTypeVDays undocumented
+ SigninFrequencyTypeVDays SigninFrequencyType = 0
+ // SigninFrequencyTypeVHours undocumented
+ SigninFrequencyTypeVHours SigninFrequencyType = 1
+)
+
+// SigninFrequencyTypePDays returns a pointer to SigninFrequencyTypeVDays
+func SigninFrequencyTypePDays() *SigninFrequencyType {
+ v := SigninFrequencyTypeVDays
+ return &v
+}
+
+// SigninFrequencyTypePHours returns a pointer to SigninFrequencyTypeVHours
+func SigninFrequencyTypePHours() *SigninFrequencyType {
+ v := SigninFrequencyTypeVHours
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SingleSignOnExtensionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SingleSignOnExtensionModel.go
new file mode 100644
index 00000000..269868eb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SingleSignOnExtensionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SingleSignOnExtension undocumented
+type SingleSignOnExtension struct {
+ // Object is the base model of SingleSignOnExtension
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SingleValueLegacyExtendedPropertyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SingleValueLegacyExtendedPropertyModel.go
new file mode 100644
index 00000000..6107ba5a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SingleValueLegacyExtendedPropertyModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/SingleValueLegacyExtendedPropertyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SingleValueLegacyExtendedPropertyRequest.go
new file mode 100644
index 00000000..f5659f59
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SingleValueLegacyExtendedPropertyRequest.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/matterbridge/msgraph.go/beta/SiteAccessTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SiteAccessTypeEnum.go
new file mode 100644
index 00000000..c8c508b5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SiteAccessTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SiteAccessType undocumented
+type SiteAccessType int
+
+const (
+ // SiteAccessTypeVBlock undocumented
+ SiteAccessTypeVBlock SiteAccessType = 0
+ // SiteAccessTypeVFull undocumented
+ SiteAccessTypeVFull SiteAccessType = 1
+ // SiteAccessTypeVLimited undocumented
+ SiteAccessTypeVLimited SiteAccessType = 2
+)
+
+// SiteAccessTypePBlock returns a pointer to SiteAccessTypeVBlock
+func SiteAccessTypePBlock() *SiteAccessType {
+ v := SiteAccessTypeVBlock
+ return &v
+}
+
+// SiteAccessTypePFull returns a pointer to SiteAccessTypeVFull
+func SiteAccessTypePFull() *SiteAccessType {
+ v := SiteAccessTypeVFull
+ return &v
+}
+
+// SiteAccessTypePLimited returns a pointer to SiteAccessTypeVLimited
+func SiteAccessTypePLimited() *SiteAccessType {
+ v := SiteAccessTypeVLimited
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SiteAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/SiteAction.go
new file mode 100644
index 00000000..e7384b13
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SiteAction.go
@@ -0,0 +1,220 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SiteActivitySummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SiteActivitySummaryModel.go
new file mode 100644
index 00000000..dfd61016
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SiteActivitySummaryModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SiteActivitySummary undocumented
+type SiteActivitySummary struct {
+ // Entity is the base model of SiteActivitySummary
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SiteCollectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SiteCollectionModel.go
new file mode 100644
index 00000000..5e5a7d89
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SiteCollectionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SiteModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SiteModel.go
new file mode 100644
index 00000000..aa3f845d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SiteModel.go
@@ -0,0 +1,37 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SitePageAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/SitePageAction.go
new file mode 100644
index 00000000..772557f7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SitePageAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SitePagePublishRequestParameter undocumented
+type SitePagePublishRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/SitePageDataModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SitePageDataModel.go
new file mode 100644
index 00000000..a3aacb22
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SitePageDataModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SitePageData undocumented
+type SitePageData struct {
+ // Object is the base model of SitePageData
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SitePageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SitePageModel.go
new file mode 100644
index 00000000..d086f204
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SitePageModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SitePageRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SitePageRequest.go
new file mode 100644
index 00000000..42fd9c42
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SitePageRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SiteRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SiteRequest.go
new file mode 100644
index 00000000..903c7c16
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SiteRequest.go
@@ -0,0 +1,724 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ColumnDefinition collection
+func (r *SiteColumnsCollectionRequest) Get(ctx context.Context) ([]ColumnDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ContentType collection
+func (r *SiteContentTypesCollectionRequest) Get(ctx context.Context) ([]ContentType, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Drive collection
+func (r *SiteDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BaseItem collection
+func (r *SiteItemsCollectionRequest) Get(ctx context.Context) ([]BaseItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for List collection
+func (r *SiteListsCollectionRequest) Get(ctx context.Context) ([]List, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SitePage collection
+func (r *SitePagesCollectionRequest) Get(ctx context.Context) ([]SitePage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Site collection
+func (r *SiteSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/SiteSecurityLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SiteSecurityLevelEnum.go
new file mode 100644
index 00000000..585c0d7a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SiteSecurityLevelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SiteSecurityLevel undocumented
+type SiteSecurityLevel int
+
+const (
+ // SiteSecurityLevelVUserDefined undocumented
+ SiteSecurityLevelVUserDefined SiteSecurityLevel = 0
+ // SiteSecurityLevelVLow undocumented
+ SiteSecurityLevelVLow SiteSecurityLevel = 1
+ // SiteSecurityLevelVMediumLow undocumented
+ SiteSecurityLevelVMediumLow SiteSecurityLevel = 2
+ // SiteSecurityLevelVMedium undocumented
+ SiteSecurityLevelVMedium SiteSecurityLevel = 3
+ // SiteSecurityLevelVMediumHigh undocumented
+ SiteSecurityLevelVMediumHigh SiteSecurityLevel = 4
+ // SiteSecurityLevelVHigh undocumented
+ SiteSecurityLevelVHigh SiteSecurityLevel = 5
+)
+
+// SiteSecurityLevelPUserDefined returns a pointer to SiteSecurityLevelVUserDefined
+func SiteSecurityLevelPUserDefined() *SiteSecurityLevel {
+ v := SiteSecurityLevelVUserDefined
+ return &v
+}
+
+// SiteSecurityLevelPLow returns a pointer to SiteSecurityLevelVLow
+func SiteSecurityLevelPLow() *SiteSecurityLevel {
+ v := SiteSecurityLevelVLow
+ return &v
+}
+
+// SiteSecurityLevelPMediumLow returns a pointer to SiteSecurityLevelVMediumLow
+func SiteSecurityLevelPMediumLow() *SiteSecurityLevel {
+ v := SiteSecurityLevelVMediumLow
+ return &v
+}
+
+// SiteSecurityLevelPMedium returns a pointer to SiteSecurityLevelVMedium
+func SiteSecurityLevelPMedium() *SiteSecurityLevel {
+ v := SiteSecurityLevelVMedium
+ return &v
+}
+
+// SiteSecurityLevelPMediumHigh returns a pointer to SiteSecurityLevelVMediumHigh
+func SiteSecurityLevelPMediumHigh() *SiteSecurityLevel {
+ v := SiteSecurityLevelVMediumHigh
+ return &v
+}
+
+// SiteSecurityLevelPHigh returns a pointer to SiteSecurityLevelVHigh
+func SiteSecurityLevelPHigh() *SiteSecurityLevel {
+ v := SiteSecurityLevelVHigh
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SiteUsageStorageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SiteUsageStorageModel.go
new file mode 100644
index 00000000..a7b7e1b1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SiteUsageStorageModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SiteUsageStorage undocumented
+type SiteUsageStorage struct {
+ // Entity is the base model of SiteUsageStorage
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // SiteType undocumented
+ SiteType *string `json:"siteType,omitempty"`
+ // StorageUsedInBytes undocumented
+ StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SizeRangeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SizeRangeModel.go
new file mode 100644
index 00000000..18580abd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SizeRangeModel.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/matterbridge/msgraph.go/beta/SkillProficiencyLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyLevelEnum.go
new file mode 100644
index 00000000..60747247
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyLevelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SkillProficiencyLevel undocumented
+type SkillProficiencyLevel int
+
+const (
+ // SkillProficiencyLevelVElementary undocumented
+ SkillProficiencyLevelVElementary SkillProficiencyLevel = 0
+ // SkillProficiencyLevelVLimitedWorking undocumented
+ SkillProficiencyLevelVLimitedWorking SkillProficiencyLevel = 1
+ // SkillProficiencyLevelVGeneralProfessional undocumented
+ SkillProficiencyLevelVGeneralProfessional SkillProficiencyLevel = 2
+ // SkillProficiencyLevelVAdvancedProfessional undocumented
+ SkillProficiencyLevelVAdvancedProfessional SkillProficiencyLevel = 3
+ // SkillProficiencyLevelVExpert undocumented
+ SkillProficiencyLevelVExpert SkillProficiencyLevel = 4
+ // SkillProficiencyLevelVUnknownFutureValue undocumented
+ SkillProficiencyLevelVUnknownFutureValue SkillProficiencyLevel = 5
+)
+
+// SkillProficiencyLevelPElementary returns a pointer to SkillProficiencyLevelVElementary
+func SkillProficiencyLevelPElementary() *SkillProficiencyLevel {
+ v := SkillProficiencyLevelVElementary
+ return &v
+}
+
+// SkillProficiencyLevelPLimitedWorking returns a pointer to SkillProficiencyLevelVLimitedWorking
+func SkillProficiencyLevelPLimitedWorking() *SkillProficiencyLevel {
+ v := SkillProficiencyLevelVLimitedWorking
+ return &v
+}
+
+// SkillProficiencyLevelPGeneralProfessional returns a pointer to SkillProficiencyLevelVGeneralProfessional
+func SkillProficiencyLevelPGeneralProfessional() *SkillProficiencyLevel {
+ v := SkillProficiencyLevelVGeneralProfessional
+ return &v
+}
+
+// SkillProficiencyLevelPAdvancedProfessional returns a pointer to SkillProficiencyLevelVAdvancedProfessional
+func SkillProficiencyLevelPAdvancedProfessional() *SkillProficiencyLevel {
+ v := SkillProficiencyLevelVAdvancedProfessional
+ return &v
+}
+
+// SkillProficiencyLevelPExpert returns a pointer to SkillProficiencyLevelVExpert
+func SkillProficiencyLevelPExpert() *SkillProficiencyLevel {
+ v := SkillProficiencyLevelVExpert
+ return &v
+}
+
+// SkillProficiencyLevelPUnknownFutureValue returns a pointer to SkillProficiencyLevelVUnknownFutureValue
+func SkillProficiencyLevelPUnknownFutureValue() *SkillProficiencyLevel {
+ v := SkillProficiencyLevelVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyModel.go
new file mode 100644
index 00000000..6ea43aa2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyModel.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/matterbridge/msgraph.go/beta/SkillProficiencyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyRequest.go
new file mode 100644
index 00000000..44f4462e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyRequest.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/matterbridge/msgraph.go/beta/SkypeForBusinessActivityCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityCountsModel.go
new file mode 100644
index 00000000..6e624580
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityCountsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityUserCountsModel.go
new file mode 100644
index 00000000..643c4aa5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityUserCountsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityUserDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityUserDetailModel.go
new file mode 100644
index 00000000..5fc685f1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityUserDetailModel.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"peerToPeerLastActivityDate,omitempty"`
+ // OrganizedConferenceLastActivityDate undocumented
+ OrganizedConferenceLastActivityDate *time.Time `json:"organizedConferenceLastActivityDate,omitempty"`
+ // ParticipatedConferenceLastActivityDate undocumented
+ ParticipatedConferenceLastActivityDate *time.Time `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 *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *time.Time `json:"deletedDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
+ // AssignedProducts undocumented
+ AssignedProducts []string `json:"assignedProducts,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageDistributionUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageDistributionUserCountsModel.go
new file mode 100644
index 00000000..4545572c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageDistributionUserCountsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessDeviceUsageDistributionUserCounts undocumented
+type SkypeForBusinessDeviceUsageDistributionUserCounts struct {
+ // Entity is the base model of SkypeForBusinessDeviceUsageDistributionUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageUserCountsModel.go
new file mode 100644
index 00000000..d2f5c8d0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageUserCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessDeviceUsageUserCounts undocumented
+type SkypeForBusinessDeviceUsageUserCounts struct {
+ // Entity is the base model of SkypeForBusinessDeviceUsageUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageUserDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageUserDetailModel.go
new file mode 100644
index 00000000..ff242698
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageUserDetailModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessDeviceUsageUserDetail undocumented
+type SkypeForBusinessDeviceUsageUserDetail struct {
+ // Entity is the base model of SkypeForBusinessDeviceUsageUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityCountsModel.go
new file mode 100644
index 00000000..71e84d14
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityCountsModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityMinuteCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityMinuteCountsModel.go
new file mode 100644
index 00000000..b042a86b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityMinuteCountsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityUserCountsModel.go
new file mode 100644
index 00000000..8bd2343a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityUserCountsModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityCountsModel.go
new file mode 100644
index 00000000..b5fa3ff8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityMinuteCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityMinuteCountsModel.go
new file mode 100644
index 00000000..dd691722
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityMinuteCountsModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessParticipantActivityMinuteCounts undocumented
+type SkypeForBusinessParticipantActivityMinuteCounts struct {
+ // Entity is the base model of SkypeForBusinessParticipantActivityMinuteCounts
+ Entity
+ // Audiovideo undocumented
+ Audiovideo *int `json:"audiovideo,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityUserCountsModel.go
new file mode 100644
index 00000000..54f9c284
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityUserCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityCountsModel.go
new file mode 100644
index 00000000..ed2045fa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityMinuteCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityMinuteCountsModel.go
new file mode 100644
index 00000000..efdeb3b6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityMinuteCountsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityUserCountsModel.go
new file mode 100644
index 00000000..b24c3036
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityUserCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SoftwareUpdateStatusSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SoftwareUpdateStatusSummaryModel.go
new file mode 100644
index 00000000..df8638a8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SoftwareUpdateStatusSummaryModel.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/matterbridge/msgraph.go/beta/SoftwareUpdateStatusSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SoftwareUpdateStatusSummaryRequest.go
new file mode 100644
index 00000000..5e20be15
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SoftwareUpdateStatusSummaryRequest.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/matterbridge/msgraph.go/beta/SpecialFolderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SpecialFolderModel.go
new file mode 100644
index 00000000..68793e68
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SpecialFolderModel.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/matterbridge/msgraph.go/beta/StagedFeatureNameEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/StagedFeatureNameEnum.go
new file mode 100644
index 00000000..06280b49
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/StagedFeatureNameEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StagedFeatureName undocumented
+type StagedFeatureName int
+
+const (
+ // StagedFeatureNameVPassthroughAuthentication undocumented
+ StagedFeatureNameVPassthroughAuthentication StagedFeatureName = 0
+ // StagedFeatureNameVSeamlessSso undocumented
+ StagedFeatureNameVSeamlessSso StagedFeatureName = 1
+ // StagedFeatureNameVPasswordHashSync undocumented
+ StagedFeatureNameVPasswordHashSync StagedFeatureName = 2
+ // StagedFeatureNameVUnknownFutureValue undocumented
+ StagedFeatureNameVUnknownFutureValue StagedFeatureName = 3
+)
+
+// StagedFeatureNamePPassthroughAuthentication returns a pointer to StagedFeatureNameVPassthroughAuthentication
+func StagedFeatureNamePPassthroughAuthentication() *StagedFeatureName {
+ v := StagedFeatureNameVPassthroughAuthentication
+ return &v
+}
+
+// StagedFeatureNamePSeamlessSso returns a pointer to StagedFeatureNameVSeamlessSso
+func StagedFeatureNamePSeamlessSso() *StagedFeatureName {
+ v := StagedFeatureNameVSeamlessSso
+ return &v
+}
+
+// StagedFeatureNamePPasswordHashSync returns a pointer to StagedFeatureNameVPasswordHashSync
+func StagedFeatureNamePPasswordHashSync() *StagedFeatureName {
+ v := StagedFeatureNameVPasswordHashSync
+ return &v
+}
+
+// StagedFeatureNamePUnknownFutureValue returns a pointer to StagedFeatureNameVUnknownFutureValue
+func StagedFeatureNamePUnknownFutureValue() *StagedFeatureName {
+ v := StagedFeatureNameVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/StandardTimeZoneOffsetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/StandardTimeZoneOffsetModel.go
new file mode 100644
index 00000000..a3bc5cc2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/StandardTimeZoneOffsetModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// StandardTimeZoneOffset undocumented
+type StandardTimeZoneOffset struct {
+ // Object is the base model of StandardTimeZoneOffset
+ Object
+ // Time undocumented
+ Time *time.Time `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/matterbridge/msgraph.go/beta/StateManagementSettingEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/StateManagementSettingEnum.go
new file mode 100644
index 00000000..792b8625
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/StateManagementSettingEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StateManagementSetting undocumented
+type StateManagementSetting int
+
+const (
+ // StateManagementSettingVNotConfigured undocumented
+ StateManagementSettingVNotConfigured StateManagementSetting = 0
+ // StateManagementSettingVBlocked undocumented
+ StateManagementSettingVBlocked StateManagementSetting = 1
+ // StateManagementSettingVAllowed undocumented
+ StateManagementSettingVAllowed StateManagementSetting = 2
+)
+
+// StateManagementSettingPNotConfigured returns a pointer to StateManagementSettingVNotConfigured
+func StateManagementSettingPNotConfigured() *StateManagementSetting {
+ v := StateManagementSettingVNotConfigured
+ return &v
+}
+
+// StateManagementSettingPBlocked returns a pointer to StateManagementSettingVBlocked
+func StateManagementSettingPBlocked() *StateManagementSetting {
+ v := StateManagementSettingVBlocked
+ return &v
+}
+
+// StateManagementSettingPAllowed returns a pointer to StateManagementSettingVAllowed
+func StateManagementSettingPAllowed() *StateManagementSetting {
+ v := StateManagementSettingVAllowed
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/StatusBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/StatusBaseModel.go
new file mode 100644
index 00000000..70bb3fd1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/StatusBaseModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/StatusDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/StatusDetailsModel.go
new file mode 100644
index 00000000..56d0342b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/StatusDetailsModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/StatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/StatusEnum.go
new file mode 100644
index 00000000..5678a333
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/StatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Status undocumented
+type Status int
+
+const (
+ // StatusVActive undocumented
+ StatusVActive Status = 0
+ // StatusVUpdated undocumented
+ StatusVUpdated Status = 1
+ // StatusVDeleted undocumented
+ StatusVDeleted Status = 2
+ // StatusVIgnored undocumented
+ StatusVIgnored Status = 3
+ // StatusVUnknownFutureValue undocumented
+ StatusVUnknownFutureValue Status = 4
+)
+
+// StatusPActive returns a pointer to StatusVActive
+func StatusPActive() *Status {
+ v := StatusVActive
+ return &v
+}
+
+// StatusPUpdated returns a pointer to StatusVUpdated
+func StatusPUpdated() *Status {
+ v := StatusVUpdated
+ return &v
+}
+
+// StatusPDeleted returns a pointer to StatusVDeleted
+func StatusPDeleted() *Status {
+ v := StatusVDeleted
+ return &v
+}
+
+// StatusPIgnored returns a pointer to StatusVIgnored
+func StatusPIgnored() *Status {
+ v := StatusVIgnored
+ return &v
+}
+
+// StatusPUnknownFutureValue returns a pointer to StatusVUnknownFutureValue
+func StatusPUnknownFutureValue() *Status {
+ v := StatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/StoragePlanInformationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/StoragePlanInformationModel.go
new file mode 100644
index 00000000..95a52ce8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/StoragePlanInformationModel.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/matterbridge/msgraph.go/beta/StringKeyAttributeMappingSourceValuePairModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyAttributeMappingSourceValuePairModel.go
new file mode 100644
index 00000000..02493ed5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyAttributeMappingSourceValuePairModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyLongValuePairModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyLongValuePairModel.go
new file mode 100644
index 00000000..e449961f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyLongValuePairModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyObjectValuePairModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyObjectValuePairModel.go
new file mode 100644
index 00000000..920fc605
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyObjectValuePairModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StringKeyObjectValuePair undocumented
+type StringKeyObjectValuePair struct {
+ // Object is the base model of StringKeyObjectValuePair
+ Object
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyStringValuePairModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyStringValuePairModel.go
new file mode 100644
index 00000000..833d298f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyStringValuePairModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/SubjectAlternativeNameTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SubjectAlternativeNameTypeEnum.go
new file mode 100644
index 00000000..e9bd9e07
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SubjectAlternativeNameTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SubjectAlternativeNameType undocumented
+type SubjectAlternativeNameType int
+
+const (
+ // SubjectAlternativeNameTypeVNone undocumented
+ SubjectAlternativeNameTypeVNone SubjectAlternativeNameType = 0
+ // SubjectAlternativeNameTypeVEmailAddress undocumented
+ SubjectAlternativeNameTypeVEmailAddress SubjectAlternativeNameType = 1
+ // SubjectAlternativeNameTypeVUserPrincipalName undocumented
+ SubjectAlternativeNameTypeVUserPrincipalName SubjectAlternativeNameType = 2
+ // SubjectAlternativeNameTypeVCustomAzureADAttribute undocumented
+ SubjectAlternativeNameTypeVCustomAzureADAttribute SubjectAlternativeNameType = 4
+ // SubjectAlternativeNameTypeVDomainNameService undocumented
+ SubjectAlternativeNameTypeVDomainNameService SubjectAlternativeNameType = 8
+)
+
+// SubjectAlternativeNameTypePNone returns a pointer to SubjectAlternativeNameTypeVNone
+func SubjectAlternativeNameTypePNone() *SubjectAlternativeNameType {
+ v := SubjectAlternativeNameTypeVNone
+ return &v
+}
+
+// SubjectAlternativeNameTypePEmailAddress returns a pointer to SubjectAlternativeNameTypeVEmailAddress
+func SubjectAlternativeNameTypePEmailAddress() *SubjectAlternativeNameType {
+ v := SubjectAlternativeNameTypeVEmailAddress
+ return &v
+}
+
+// SubjectAlternativeNameTypePUserPrincipalName returns a pointer to SubjectAlternativeNameTypeVUserPrincipalName
+func SubjectAlternativeNameTypePUserPrincipalName() *SubjectAlternativeNameType {
+ v := SubjectAlternativeNameTypeVUserPrincipalName
+ return &v
+}
+
+// SubjectAlternativeNameTypePCustomAzureADAttribute returns a pointer to SubjectAlternativeNameTypeVCustomAzureADAttribute
+func SubjectAlternativeNameTypePCustomAzureADAttribute() *SubjectAlternativeNameType {
+ v := SubjectAlternativeNameTypeVCustomAzureADAttribute
+ return &v
+}
+
+// SubjectAlternativeNameTypePDomainNameService returns a pointer to SubjectAlternativeNameTypeVDomainNameService
+func SubjectAlternativeNameTypePDomainNameService() *SubjectAlternativeNameType {
+ v := SubjectAlternativeNameTypeVDomainNameService
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SubjectNameFormatEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SubjectNameFormatEnum.go
new file mode 100644
index 00000000..bb9a5725
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SubjectNameFormatEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SubjectNameFormat undocumented
+type SubjectNameFormat int
+
+const (
+ // SubjectNameFormatVCommonName undocumented
+ SubjectNameFormatVCommonName SubjectNameFormat = 0
+ // SubjectNameFormatVCommonNameIncludingEmail undocumented
+ SubjectNameFormatVCommonNameIncludingEmail SubjectNameFormat = 1
+ // SubjectNameFormatVCommonNameAsEmail undocumented
+ SubjectNameFormatVCommonNameAsEmail SubjectNameFormat = 2
+ // SubjectNameFormatVCustom undocumented
+ SubjectNameFormatVCustom SubjectNameFormat = 3
+ // SubjectNameFormatVCommonNameAsIMEI undocumented
+ SubjectNameFormatVCommonNameAsIMEI SubjectNameFormat = 5
+ // SubjectNameFormatVCommonNameAsSerialNumber undocumented
+ SubjectNameFormatVCommonNameAsSerialNumber SubjectNameFormat = 6
+ // SubjectNameFormatVCommonNameAsAadDeviceID undocumented
+ SubjectNameFormatVCommonNameAsAadDeviceID SubjectNameFormat = 7
+ // SubjectNameFormatVCommonNameAsIntuneDeviceID undocumented
+ SubjectNameFormatVCommonNameAsIntuneDeviceID SubjectNameFormat = 8
+ // SubjectNameFormatVCommonNameAsDurableDeviceID undocumented
+ SubjectNameFormatVCommonNameAsDurableDeviceID SubjectNameFormat = 9
+)
+
+// SubjectNameFormatPCommonName returns a pointer to SubjectNameFormatVCommonName
+func SubjectNameFormatPCommonName() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonName
+ return &v
+}
+
+// SubjectNameFormatPCommonNameIncludingEmail returns a pointer to SubjectNameFormatVCommonNameIncludingEmail
+func SubjectNameFormatPCommonNameIncludingEmail() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonNameIncludingEmail
+ return &v
+}
+
+// SubjectNameFormatPCommonNameAsEmail returns a pointer to SubjectNameFormatVCommonNameAsEmail
+func SubjectNameFormatPCommonNameAsEmail() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonNameAsEmail
+ return &v
+}
+
+// SubjectNameFormatPCustom returns a pointer to SubjectNameFormatVCustom
+func SubjectNameFormatPCustom() *SubjectNameFormat {
+ v := SubjectNameFormatVCustom
+ return &v
+}
+
+// SubjectNameFormatPCommonNameAsIMEI returns a pointer to SubjectNameFormatVCommonNameAsIMEI
+func SubjectNameFormatPCommonNameAsIMEI() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonNameAsIMEI
+ return &v
+}
+
+// SubjectNameFormatPCommonNameAsSerialNumber returns a pointer to SubjectNameFormatVCommonNameAsSerialNumber
+func SubjectNameFormatPCommonNameAsSerialNumber() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonNameAsSerialNumber
+ return &v
+}
+
+// SubjectNameFormatPCommonNameAsAadDeviceID returns a pointer to SubjectNameFormatVCommonNameAsAadDeviceID
+func SubjectNameFormatPCommonNameAsAadDeviceID() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonNameAsAadDeviceID
+ return &v
+}
+
+// SubjectNameFormatPCommonNameAsIntuneDeviceID returns a pointer to SubjectNameFormatVCommonNameAsIntuneDeviceID
+func SubjectNameFormatPCommonNameAsIntuneDeviceID() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonNameAsIntuneDeviceID
+ return &v
+}
+
+// SubjectNameFormatPCommonNameAsDurableDeviceID returns a pointer to SubjectNameFormatVCommonNameAsDurableDeviceID
+func SubjectNameFormatPCommonNameAsDurableDeviceID() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonNameAsDurableDeviceID
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SubscribeToToneOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SubscribeToToneOperationModel.go
new file mode 100644
index 00000000..e7c70138
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SubscribeToToneOperationModel.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/matterbridge/msgraph.go/beta/SubscribedSKUModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SubscribedSKUModel.go
new file mode 100644
index 00000000..45947da3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SubscribedSKUModel.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/matterbridge/msgraph.go/beta/SubscribedSKURequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SubscribedSKURequest.go
new file mode 100644
index 00000000..2f446f06
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SubscribedSKURequest.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/matterbridge/msgraph.go/beta/SubscriptionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SubscriptionModel.go
new file mode 100644
index 00000000..b36cb605
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SubscriptionModel.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/matterbridge/msgraph.go/beta/SubscriptionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SubscriptionRequest.go
new file mode 100644
index 00000000..8cc22431
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SubscriptionRequest.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/matterbridge/msgraph.go/beta/SuspiciousIPRiskEventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SuspiciousIPRiskEventModel.go
new file mode 100644
index 00000000..11870b5e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SuspiciousIPRiskEventModel.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/matterbridge/msgraph.go/beta/SuspiciousIPRiskEventRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SuspiciousIPRiskEventRequest.go
new file mode 100644
index 00000000..e79d0d72
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SuspiciousIPRiskEventRequest.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/matterbridge/msgraph.go/beta/SwapShiftsChangeRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SwapShiftsChangeRequestObjectModel.go
new file mode 100644
index 00000000..a8fffde0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SwapShiftsChangeRequestObjectModel.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/matterbridge/msgraph.go/beta/SwapShiftsChangeRequestObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SwapShiftsChangeRequestObjectRequest.go
new file mode 100644
index 00000000..717cc288
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SwapShiftsChangeRequestObjectRequest.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/matterbridge/msgraph.go/beta/SymantecCodeSigningCertificateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SymantecCodeSigningCertificateModel.go
new file mode 100644
index 00000000..3588802b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SymantecCodeSigningCertificateModel.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/matterbridge/msgraph.go/beta/SymantecCodeSigningCertificateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SymantecCodeSigningCertificateRequest.go
new file mode 100644
index 00000000..acd23845
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SymantecCodeSigningCertificateRequest.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/matterbridge/msgraph.go/beta/SynchronizationErrorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationErrorModel.go
new file mode 100644
index 00000000..645c33f1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationErrorModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobAction.go
new file mode 100644
index 00000000..f9d36e41
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobAction.go
@@ -0,0 +1,239 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobModel.go
new file mode 100644
index 00000000..3c018828
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRequest.go
new file mode 100644
index 00000000..e805af59
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Schema is navigation property
+func (b *SynchronizationJobRequestBuilder) Schema() *SynchronizationSchemaRequestBuilder {
+ bb := &SynchronizationSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schema"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRestartCriteriaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRestartCriteriaModel.go
new file mode 100644
index 00000000..5b1ef836
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRestartCriteriaModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationJobRestartCriteria undocumented
+type SynchronizationJobRestartCriteria struct {
+ // Object is the base model of SynchronizationJobRestartCriteria
+ Object
+ // ResetScope undocumented
+ ResetScope *SynchronizationJobRestartScope `json:"resetScope,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRestartScopeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRestartScopeEnum.go
new file mode 100644
index 00000000..225deaab
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRestartScopeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationJobRestartScope undocumented
+type SynchronizationJobRestartScope int
+
+const (
+ // SynchronizationJobRestartScopeVForceDeletes undocumented
+ SynchronizationJobRestartScopeVForceDeletes SynchronizationJobRestartScope = 32
+ // SynchronizationJobRestartScopeVFull undocumented
+ SynchronizationJobRestartScopeVFull SynchronizationJobRestartScope = 15
+ // SynchronizationJobRestartScopeVQuarantineState undocumented
+ SynchronizationJobRestartScopeVQuarantineState SynchronizationJobRestartScope = 8
+ // SynchronizationJobRestartScopeVWatermark undocumented
+ SynchronizationJobRestartScopeVWatermark SynchronizationJobRestartScope = 4
+ // SynchronizationJobRestartScopeVEscrows undocumented
+ SynchronizationJobRestartScopeVEscrows SynchronizationJobRestartScope = 2
+ // SynchronizationJobRestartScopeVConnectorDataStore undocumented
+ SynchronizationJobRestartScopeVConnectorDataStore SynchronizationJobRestartScope = 1
+ // SynchronizationJobRestartScopeVNone undocumented
+ SynchronizationJobRestartScopeVNone SynchronizationJobRestartScope = 0
+)
+
+// SynchronizationJobRestartScopePForceDeletes returns a pointer to SynchronizationJobRestartScopeVForceDeletes
+func SynchronizationJobRestartScopePForceDeletes() *SynchronizationJobRestartScope {
+ v := SynchronizationJobRestartScopeVForceDeletes
+ return &v
+}
+
+// SynchronizationJobRestartScopePFull returns a pointer to SynchronizationJobRestartScopeVFull
+func SynchronizationJobRestartScopePFull() *SynchronizationJobRestartScope {
+ v := SynchronizationJobRestartScopeVFull
+ return &v
+}
+
+// SynchronizationJobRestartScopePQuarantineState returns a pointer to SynchronizationJobRestartScopeVQuarantineState
+func SynchronizationJobRestartScopePQuarantineState() *SynchronizationJobRestartScope {
+ v := SynchronizationJobRestartScopeVQuarantineState
+ return &v
+}
+
+// SynchronizationJobRestartScopePWatermark returns a pointer to SynchronizationJobRestartScopeVWatermark
+func SynchronizationJobRestartScopePWatermark() *SynchronizationJobRestartScope {
+ v := SynchronizationJobRestartScopeVWatermark
+ return &v
+}
+
+// SynchronizationJobRestartScopePEscrows returns a pointer to SynchronizationJobRestartScopeVEscrows
+func SynchronizationJobRestartScopePEscrows() *SynchronizationJobRestartScope {
+ v := SynchronizationJobRestartScopeVEscrows
+ return &v
+}
+
+// SynchronizationJobRestartScopePConnectorDataStore returns a pointer to SynchronizationJobRestartScopeVConnectorDataStore
+func SynchronizationJobRestartScopePConnectorDataStore() *SynchronizationJobRestartScope {
+ v := SynchronizationJobRestartScopeVConnectorDataStore
+ return &v
+}
+
+// SynchronizationJobRestartScopePNone returns a pointer to SynchronizationJobRestartScopeVNone
+func SynchronizationJobRestartScopePNone() *SynchronizationJobRestartScope {
+ v := SynchronizationJobRestartScopeVNone
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationModel.go
new file mode 100644
index 00000000..af84ca87
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationProgressModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationProgressModel.go
new file mode 100644
index 00000000..841ea485
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationProgressModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationQuarantineModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationQuarantineModel.go
new file mode 100644
index 00000000..523317bc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationQuarantineModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationRequest.go
new file mode 100644
index 00000000..f60d9d84
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SynchronizationJob collection
+func (r *SynchronizationJobsCollectionRequest) Get(ctx context.Context) ([]SynchronizationJob, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SynchronizationTemplate collection
+func (r *SynchronizationTemplatesCollectionRequest) Get(ctx context.Context) ([]SynchronizationTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationRuleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationRuleModel.go
new file mode 100644
index 00000000..cd397621
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationRuleModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationScheduleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationScheduleModel.go
new file mode 100644
index 00000000..94d81fc5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationScheduleModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SynchronizationSchedule undocumented
+type SynchronizationSchedule struct {
+ // Object is the base model of SynchronizationSchedule
+ Object
+ // Expiration undocumented
+ Expiration *time.Time `json:"expiration,omitempty"`
+ // Interval undocumented
+ Interval *time.Duration `json:"interval,omitempty"`
+ // State undocumented
+ State *SynchronizationScheduleState `json:"state,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationScheduleStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationScheduleStateEnum.go
new file mode 100644
index 00000000..4646c96c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationScheduleStateEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationScheduleState undocumented
+type SynchronizationScheduleState int
+
+const (
+ // SynchronizationScheduleStateVActive undocumented
+ SynchronizationScheduleStateVActive SynchronizationScheduleState = 0
+ // SynchronizationScheduleStateVDisabled undocumented
+ SynchronizationScheduleStateVDisabled SynchronizationScheduleState = 1
+)
+
+// SynchronizationScheduleStatePActive returns a pointer to SynchronizationScheduleStateVActive
+func SynchronizationScheduleStatePActive() *SynchronizationScheduleState {
+ v := SynchronizationScheduleStateVActive
+ return &v
+}
+
+// SynchronizationScheduleStatePDisabled returns a pointer to SynchronizationScheduleStateVDisabled
+func SynchronizationScheduleStatePDisabled() *SynchronizationScheduleState {
+ v := SynchronizationScheduleStateVDisabled
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaAction.go
new file mode 100644
index 00000000..2023d320
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaAction.go
@@ -0,0 +1,42 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/SynchronizationSchemaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaModel.go
new file mode 100644
index 00000000..181e87b5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaRequest.go
new file mode 100644
index 00000000..5c2eb541
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryDefinition collection
+func (r *SynchronizationSchemaDirectoriesCollectionRequest) Get(ctx context.Context) ([]DirectoryDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSecretEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSecretEnum.go
new file mode 100644
index 00000000..5ce97939
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSecretEnum.go
@@ -0,0 +1,305 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationSecret undocumented
+type SynchronizationSecret int
+
+const (
+ // SynchronizationSecretVNone undocumented
+ SynchronizationSecretVNone SynchronizationSecret = 0
+ // SynchronizationSecretVUserName undocumented
+ SynchronizationSecretVUserName SynchronizationSecret = 1
+ // SynchronizationSecretVPassword undocumented
+ SynchronizationSecretVPassword SynchronizationSecret = 2
+ // SynchronizationSecretVSecretToken undocumented
+ SynchronizationSecretVSecretToken SynchronizationSecret = 3
+ // SynchronizationSecretVAppKey undocumented
+ SynchronizationSecretVAppKey SynchronizationSecret = 4
+ // SynchronizationSecretVBaseAddress undocumented
+ SynchronizationSecretVBaseAddress SynchronizationSecret = 5
+ // SynchronizationSecretVClientIdentifier undocumented
+ SynchronizationSecretVClientIdentifier SynchronizationSecret = 6
+ // SynchronizationSecretVClientSecret undocumented
+ SynchronizationSecretVClientSecret SynchronizationSecret = 7
+ // SynchronizationSecretVSingleSignOnType undocumented
+ SynchronizationSecretVSingleSignOnType SynchronizationSecret = 11
+ // SynchronizationSecretVSandbox undocumented
+ SynchronizationSecretVSandbox SynchronizationSecret = 12
+ // SynchronizationSecretVURL undocumented
+ SynchronizationSecretVURL SynchronizationSecret = 13
+ // SynchronizationSecretVDomain undocumented
+ SynchronizationSecretVDomain SynchronizationSecret = 14
+ // SynchronizationSecretVConsumerKey undocumented
+ SynchronizationSecretVConsumerKey SynchronizationSecret = 15
+ // SynchronizationSecretVConsumerSecret undocumented
+ SynchronizationSecretVConsumerSecret SynchronizationSecret = 16
+ // SynchronizationSecretVTokenKey undocumented
+ SynchronizationSecretVTokenKey SynchronizationSecret = 17
+ // SynchronizationSecretVTokenExpiration undocumented
+ SynchronizationSecretVTokenExpiration SynchronizationSecret = 18
+ // SynchronizationSecretVOauth2AccessToken undocumented
+ SynchronizationSecretVOauth2AccessToken SynchronizationSecret = 19
+ // SynchronizationSecretVOauth2AccessTokenCreationTime undocumented
+ SynchronizationSecretVOauth2AccessTokenCreationTime SynchronizationSecret = 20
+ // SynchronizationSecretVOauth2RefreshToken undocumented
+ SynchronizationSecretVOauth2RefreshToken SynchronizationSecret = 21
+ // SynchronizationSecretVSyncAll undocumented
+ SynchronizationSecretVSyncAll SynchronizationSecret = 22
+ // SynchronizationSecretVInstanceName undocumented
+ SynchronizationSecretVInstanceName SynchronizationSecret = 24
+ // SynchronizationSecretVOauth2ClientID undocumented
+ SynchronizationSecretVOauth2ClientID SynchronizationSecret = 27
+ // SynchronizationSecretVOauth2ClientSecret undocumented
+ SynchronizationSecretVOauth2ClientSecret SynchronizationSecret = 28
+ // SynchronizationSecretVCompanyID undocumented
+ SynchronizationSecretVCompanyID SynchronizationSecret = 29
+ // SynchronizationSecretVUpdateKeyOnSoftDelete undocumented
+ SynchronizationSecretVUpdateKeyOnSoftDelete SynchronizationSecret = 30
+ // SynchronizationSecretVSynchronizationSchedule undocumented
+ SynchronizationSecretVSynchronizationSchedule SynchronizationSecret = 33
+ // SynchronizationSecretVSystemOfRecord undocumented
+ SynchronizationSecretVSystemOfRecord SynchronizationSecret = 34
+ // SynchronizationSecretVSandboxName undocumented
+ SynchronizationSecretVSandboxName SynchronizationSecret = 35
+ // SynchronizationSecretVEnforceDomain undocumented
+ SynchronizationSecretVEnforceDomain SynchronizationSecret = 36
+ // SynchronizationSecretVSyncNotificationSettings undocumented
+ SynchronizationSecretVSyncNotificationSettings SynchronizationSecret = 37
+ // SynchronizationSecretVServer undocumented
+ SynchronizationSecretVServer SynchronizationSecret = 70
+ // SynchronizationSecretVPerformInboundEntitlementGrants undocumented
+ SynchronizationSecretVPerformInboundEntitlementGrants SynchronizationSecret = 100
+ // SynchronizationSecretVHardDeletesEnabled undocumented
+ SynchronizationSecretVHardDeletesEnabled SynchronizationSecret = 101
+ // SynchronizationSecretVSyncAgentCompatibilityKey undocumented
+ SynchronizationSecretVSyncAgentCompatibilityKey SynchronizationSecret = 102
+ // SynchronizationSecretVSyncAgentADContainer undocumented
+ SynchronizationSecretVSyncAgentADContainer SynchronizationSecret = 103
+ // SynchronizationSecretVValidateDomain undocumented
+ SynchronizationSecretVValidateDomain SynchronizationSecret = 206
+ // SynchronizationSecretVTestReferences undocumented
+ SynchronizationSecretVTestReferences SynchronizationSecret = 207
+)
+
+// SynchronizationSecretPNone returns a pointer to SynchronizationSecretVNone
+func SynchronizationSecretPNone() *SynchronizationSecret {
+ v := SynchronizationSecretVNone
+ return &v
+}
+
+// SynchronizationSecretPUserName returns a pointer to SynchronizationSecretVUserName
+func SynchronizationSecretPUserName() *SynchronizationSecret {
+ v := SynchronizationSecretVUserName
+ return &v
+}
+
+// SynchronizationSecretPPassword returns a pointer to SynchronizationSecretVPassword
+func SynchronizationSecretPPassword() *SynchronizationSecret {
+ v := SynchronizationSecretVPassword
+ return &v
+}
+
+// SynchronizationSecretPSecretToken returns a pointer to SynchronizationSecretVSecretToken
+func SynchronizationSecretPSecretToken() *SynchronizationSecret {
+ v := SynchronizationSecretVSecretToken
+ return &v
+}
+
+// SynchronizationSecretPAppKey returns a pointer to SynchronizationSecretVAppKey
+func SynchronizationSecretPAppKey() *SynchronizationSecret {
+ v := SynchronizationSecretVAppKey
+ return &v
+}
+
+// SynchronizationSecretPBaseAddress returns a pointer to SynchronizationSecretVBaseAddress
+func SynchronizationSecretPBaseAddress() *SynchronizationSecret {
+ v := SynchronizationSecretVBaseAddress
+ return &v
+}
+
+// SynchronizationSecretPClientIdentifier returns a pointer to SynchronizationSecretVClientIdentifier
+func SynchronizationSecretPClientIdentifier() *SynchronizationSecret {
+ v := SynchronizationSecretVClientIdentifier
+ return &v
+}
+
+// SynchronizationSecretPClientSecret returns a pointer to SynchronizationSecretVClientSecret
+func SynchronizationSecretPClientSecret() *SynchronizationSecret {
+ v := SynchronizationSecretVClientSecret
+ return &v
+}
+
+// SynchronizationSecretPSingleSignOnType returns a pointer to SynchronizationSecretVSingleSignOnType
+func SynchronizationSecretPSingleSignOnType() *SynchronizationSecret {
+ v := SynchronizationSecretVSingleSignOnType
+ return &v
+}
+
+// SynchronizationSecretPSandbox returns a pointer to SynchronizationSecretVSandbox
+func SynchronizationSecretPSandbox() *SynchronizationSecret {
+ v := SynchronizationSecretVSandbox
+ return &v
+}
+
+// SynchronizationSecretPURL returns a pointer to SynchronizationSecretVURL
+func SynchronizationSecretPURL() *SynchronizationSecret {
+ v := SynchronizationSecretVURL
+ return &v
+}
+
+// SynchronizationSecretPDomain returns a pointer to SynchronizationSecretVDomain
+func SynchronizationSecretPDomain() *SynchronizationSecret {
+ v := SynchronizationSecretVDomain
+ return &v
+}
+
+// SynchronizationSecretPConsumerKey returns a pointer to SynchronizationSecretVConsumerKey
+func SynchronizationSecretPConsumerKey() *SynchronizationSecret {
+ v := SynchronizationSecretVConsumerKey
+ return &v
+}
+
+// SynchronizationSecretPConsumerSecret returns a pointer to SynchronizationSecretVConsumerSecret
+func SynchronizationSecretPConsumerSecret() *SynchronizationSecret {
+ v := SynchronizationSecretVConsumerSecret
+ return &v
+}
+
+// SynchronizationSecretPTokenKey returns a pointer to SynchronizationSecretVTokenKey
+func SynchronizationSecretPTokenKey() *SynchronizationSecret {
+ v := SynchronizationSecretVTokenKey
+ return &v
+}
+
+// SynchronizationSecretPTokenExpiration returns a pointer to SynchronizationSecretVTokenExpiration
+func SynchronizationSecretPTokenExpiration() *SynchronizationSecret {
+ v := SynchronizationSecretVTokenExpiration
+ return &v
+}
+
+// SynchronizationSecretPOauth2AccessToken returns a pointer to SynchronizationSecretVOauth2AccessToken
+func SynchronizationSecretPOauth2AccessToken() *SynchronizationSecret {
+ v := SynchronizationSecretVOauth2AccessToken
+ return &v
+}
+
+// SynchronizationSecretPOauth2AccessTokenCreationTime returns a pointer to SynchronizationSecretVOauth2AccessTokenCreationTime
+func SynchronizationSecretPOauth2AccessTokenCreationTime() *SynchronizationSecret {
+ v := SynchronizationSecretVOauth2AccessTokenCreationTime
+ return &v
+}
+
+// SynchronizationSecretPOauth2RefreshToken returns a pointer to SynchronizationSecretVOauth2RefreshToken
+func SynchronizationSecretPOauth2RefreshToken() *SynchronizationSecret {
+ v := SynchronizationSecretVOauth2RefreshToken
+ return &v
+}
+
+// SynchronizationSecretPSyncAll returns a pointer to SynchronizationSecretVSyncAll
+func SynchronizationSecretPSyncAll() *SynchronizationSecret {
+ v := SynchronizationSecretVSyncAll
+ return &v
+}
+
+// SynchronizationSecretPInstanceName returns a pointer to SynchronizationSecretVInstanceName
+func SynchronizationSecretPInstanceName() *SynchronizationSecret {
+ v := SynchronizationSecretVInstanceName
+ return &v
+}
+
+// SynchronizationSecretPOauth2ClientID returns a pointer to SynchronizationSecretVOauth2ClientID
+func SynchronizationSecretPOauth2ClientID() *SynchronizationSecret {
+ v := SynchronizationSecretVOauth2ClientID
+ return &v
+}
+
+// SynchronizationSecretPOauth2ClientSecret returns a pointer to SynchronizationSecretVOauth2ClientSecret
+func SynchronizationSecretPOauth2ClientSecret() *SynchronizationSecret {
+ v := SynchronizationSecretVOauth2ClientSecret
+ return &v
+}
+
+// SynchronizationSecretPCompanyID returns a pointer to SynchronizationSecretVCompanyID
+func SynchronizationSecretPCompanyID() *SynchronizationSecret {
+ v := SynchronizationSecretVCompanyID
+ return &v
+}
+
+// SynchronizationSecretPUpdateKeyOnSoftDelete returns a pointer to SynchronizationSecretVUpdateKeyOnSoftDelete
+func SynchronizationSecretPUpdateKeyOnSoftDelete() *SynchronizationSecret {
+ v := SynchronizationSecretVUpdateKeyOnSoftDelete
+ return &v
+}
+
+// SynchronizationSecretPSynchronizationSchedule returns a pointer to SynchronizationSecretVSynchronizationSchedule
+func SynchronizationSecretPSynchronizationSchedule() *SynchronizationSecret {
+ v := SynchronizationSecretVSynchronizationSchedule
+ return &v
+}
+
+// SynchronizationSecretPSystemOfRecord returns a pointer to SynchronizationSecretVSystemOfRecord
+func SynchronizationSecretPSystemOfRecord() *SynchronizationSecret {
+ v := SynchronizationSecretVSystemOfRecord
+ return &v
+}
+
+// SynchronizationSecretPSandboxName returns a pointer to SynchronizationSecretVSandboxName
+func SynchronizationSecretPSandboxName() *SynchronizationSecret {
+ v := SynchronizationSecretVSandboxName
+ return &v
+}
+
+// SynchronizationSecretPEnforceDomain returns a pointer to SynchronizationSecretVEnforceDomain
+func SynchronizationSecretPEnforceDomain() *SynchronizationSecret {
+ v := SynchronizationSecretVEnforceDomain
+ return &v
+}
+
+// SynchronizationSecretPSyncNotificationSettings returns a pointer to SynchronizationSecretVSyncNotificationSettings
+func SynchronizationSecretPSyncNotificationSettings() *SynchronizationSecret {
+ v := SynchronizationSecretVSyncNotificationSettings
+ return &v
+}
+
+// SynchronizationSecretPServer returns a pointer to SynchronizationSecretVServer
+func SynchronizationSecretPServer() *SynchronizationSecret {
+ v := SynchronizationSecretVServer
+ return &v
+}
+
+// SynchronizationSecretPPerformInboundEntitlementGrants returns a pointer to SynchronizationSecretVPerformInboundEntitlementGrants
+func SynchronizationSecretPPerformInboundEntitlementGrants() *SynchronizationSecret {
+ v := SynchronizationSecretVPerformInboundEntitlementGrants
+ return &v
+}
+
+// SynchronizationSecretPHardDeletesEnabled returns a pointer to SynchronizationSecretVHardDeletesEnabled
+func SynchronizationSecretPHardDeletesEnabled() *SynchronizationSecret {
+ v := SynchronizationSecretVHardDeletesEnabled
+ return &v
+}
+
+// SynchronizationSecretPSyncAgentCompatibilityKey returns a pointer to SynchronizationSecretVSyncAgentCompatibilityKey
+func SynchronizationSecretPSyncAgentCompatibilityKey() *SynchronizationSecret {
+ v := SynchronizationSecretVSyncAgentCompatibilityKey
+ return &v
+}
+
+// SynchronizationSecretPSyncAgentADContainer returns a pointer to SynchronizationSecretVSyncAgentADContainer
+func SynchronizationSecretPSyncAgentADContainer() *SynchronizationSecret {
+ v := SynchronizationSecretVSyncAgentADContainer
+ return &v
+}
+
+// SynchronizationSecretPValidateDomain returns a pointer to SynchronizationSecretVValidateDomain
+func SynchronizationSecretPValidateDomain() *SynchronizationSecret {
+ v := SynchronizationSecretVValidateDomain
+ return &v
+}
+
+// SynchronizationSecretPTestReferences returns a pointer to SynchronizationSecretVTestReferences
+func SynchronizationSecretPTestReferences() *SynchronizationSecret {
+ v := SynchronizationSecretVTestReferences
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSecretKeyStringValuePairModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSecretKeyStringValuePairModel.go
new file mode 100644
index 00000000..e20e91c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSecretKeyStringValuePairModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationStatusCodeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationStatusCodeEnum.go
new file mode 100644
index 00000000..e99bfd22
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationStatusCodeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationStatusCode undocumented
+type SynchronizationStatusCode int
+
+const (
+ // SynchronizationStatusCodeVNotConfigured undocumented
+ SynchronizationStatusCodeVNotConfigured SynchronizationStatusCode = 0
+ // SynchronizationStatusCodeVNotRun undocumented
+ SynchronizationStatusCodeVNotRun SynchronizationStatusCode = 1
+ // SynchronizationStatusCodeVActive undocumented
+ SynchronizationStatusCodeVActive SynchronizationStatusCode = 2
+ // SynchronizationStatusCodeVPaused undocumented
+ SynchronizationStatusCodeVPaused SynchronizationStatusCode = 3
+ // SynchronizationStatusCodeVQuarantine undocumented
+ SynchronizationStatusCodeVQuarantine SynchronizationStatusCode = 4
+)
+
+// SynchronizationStatusCodePNotConfigured returns a pointer to SynchronizationStatusCodeVNotConfigured
+func SynchronizationStatusCodePNotConfigured() *SynchronizationStatusCode {
+ v := SynchronizationStatusCodeVNotConfigured
+ return &v
+}
+
+// SynchronizationStatusCodePNotRun returns a pointer to SynchronizationStatusCodeVNotRun
+func SynchronizationStatusCodePNotRun() *SynchronizationStatusCode {
+ v := SynchronizationStatusCodeVNotRun
+ return &v
+}
+
+// SynchronizationStatusCodePActive returns a pointer to SynchronizationStatusCodeVActive
+func SynchronizationStatusCodePActive() *SynchronizationStatusCode {
+ v := SynchronizationStatusCodeVActive
+ return &v
+}
+
+// SynchronizationStatusCodePPaused returns a pointer to SynchronizationStatusCodeVPaused
+func SynchronizationStatusCodePPaused() *SynchronizationStatusCode {
+ v := SynchronizationStatusCodeVPaused
+ return &v
+}
+
+// SynchronizationStatusCodePQuarantine returns a pointer to SynchronizationStatusCodeVQuarantine
+func SynchronizationStatusCodePQuarantine() *SynchronizationStatusCode {
+ v := SynchronizationStatusCodeVQuarantine
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationStatusModel.go
new file mode 100644
index 00000000..8438dc04
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationStatusModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTaskExecutionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTaskExecutionModel.go
new file mode 100644
index 00000000..6a453e9c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTaskExecutionModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTaskExecutionResultEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTaskExecutionResultEnum.go
new file mode 100644
index 00000000..c1f8d40b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTaskExecutionResultEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationTaskExecutionResult undocumented
+type SynchronizationTaskExecutionResult int
+
+const (
+ // SynchronizationTaskExecutionResultVSucceeded undocumented
+ SynchronizationTaskExecutionResultVSucceeded SynchronizationTaskExecutionResult = 0
+ // SynchronizationTaskExecutionResultVFailed undocumented
+ SynchronizationTaskExecutionResultVFailed SynchronizationTaskExecutionResult = 1
+ // SynchronizationTaskExecutionResultVEntryLevelErrors undocumented
+ SynchronizationTaskExecutionResultVEntryLevelErrors SynchronizationTaskExecutionResult = 2
+)
+
+// SynchronizationTaskExecutionResultPSucceeded returns a pointer to SynchronizationTaskExecutionResultVSucceeded
+func SynchronizationTaskExecutionResultPSucceeded() *SynchronizationTaskExecutionResult {
+ v := SynchronizationTaskExecutionResultVSucceeded
+ return &v
+}
+
+// SynchronizationTaskExecutionResultPFailed returns a pointer to SynchronizationTaskExecutionResultVFailed
+func SynchronizationTaskExecutionResultPFailed() *SynchronizationTaskExecutionResult {
+ v := SynchronizationTaskExecutionResultVFailed
+ return &v
+}
+
+// SynchronizationTaskExecutionResultPEntryLevelErrors returns a pointer to SynchronizationTaskExecutionResultVEntryLevelErrors
+func SynchronizationTaskExecutionResultPEntryLevelErrors() *SynchronizationTaskExecutionResult {
+ v := SynchronizationTaskExecutionResultVEntryLevelErrors
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTemplateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTemplateModel.go
new file mode 100644
index 00000000..2455343b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTemplateModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/SynchronizationTemplateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTemplateRequest.go
new file mode 100644
index 00000000..768685bc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTemplateRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/SystemFacetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SystemFacetModel.go
new file mode 100644
index 00000000..0b0de01c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/SystemFacetModel.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/matterbridge/msgraph.go/beta/TargetPolicyEndpointsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TargetPolicyEndpointsModel.go
new file mode 100644
index 00000000..8b29b97f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TargetPolicyEndpointsModel.go
@@ -0,0 +1,11 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TargetResourceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TargetResourceModel.go
new file mode 100644
index 00000000..3e9b15d0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TargetResourceModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationAction.go
new file mode 100644
index 00000000..5ce26e54
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationAction.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/matterbridge/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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationModel.go
new file mode 100644
index 00000000..404acfd7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationModel.go
@@ -0,0 +1,19 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationPolicySetItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationPolicySetItemModel.go
new file mode 100644
index 00000000..a0d57d32
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationPolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TargetedManagedAppConfigurationPolicySetItem A class containing the properties used for Targeted managed app configuration PolicySetItem.
+type TargetedManagedAppConfigurationPolicySetItem struct {
+ // PolicySetItem is the base model of TargetedManagedAppConfigurationPolicySetItem
+ PolicySetItem
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationRequest.go
new file mode 100644
index 00000000..f0c68b10
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedMobileApp collection
+func (r *TargetedManagedAppConfigurationAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TargetedManagedAppPolicyAssignment collection
+func (r *TargetedManagedAppConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]TargetedManagedAppPolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppPolicyAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppPolicyAssignmentModel.go
new file mode 100644
index 00000000..7b355662
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppPolicyAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppPolicyAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppPolicyAssignmentRequest.go
new file mode 100644
index 00000000..6f7ccb91
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppPolicyAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionAction.go
new file mode 100644
index 00000000..70dc8a1b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TargetedManagedAppProtectionAssignRequestParameter undocumented
+type TargetedManagedAppProtectionAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionModel.go
new file mode 100644
index 00000000..15ed5d6b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionRequest.go
new file mode 100644
index 00000000..80107161
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TargetedManagedAppPolicyAssignment collection
+func (r *TargetedManagedAppProtectionAssignmentsCollectionRequest) Get(ctx context.Context) ([]TargetedManagedAppPolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/TaskStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/TaskStatusEnum.go
new file mode 100644
index 00000000..9bf968be
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TaskStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TaskStatus undocumented
+type TaskStatus int
+
+const (
+ // TaskStatusVNotStarted undocumented
+ TaskStatusVNotStarted TaskStatus = 0
+ // TaskStatusVInProgress undocumented
+ TaskStatusVInProgress TaskStatus = 1
+ // TaskStatusVCompleted undocumented
+ TaskStatusVCompleted TaskStatus = 2
+ // TaskStatusVWaitingOnOthers undocumented
+ TaskStatusVWaitingOnOthers TaskStatus = 3
+ // TaskStatusVDeferred undocumented
+ TaskStatusVDeferred TaskStatus = 4
+)
+
+// TaskStatusPNotStarted returns a pointer to TaskStatusVNotStarted
+func TaskStatusPNotStarted() *TaskStatus {
+ v := TaskStatusVNotStarted
+ return &v
+}
+
+// TaskStatusPInProgress returns a pointer to TaskStatusVInProgress
+func TaskStatusPInProgress() *TaskStatus {
+ v := TaskStatusVInProgress
+ return &v
+}
+
+// TaskStatusPCompleted returns a pointer to TaskStatusVCompleted
+func TaskStatusPCompleted() *TaskStatus {
+ v := TaskStatusVCompleted
+ return &v
+}
+
+// TaskStatusPWaitingOnOthers returns a pointer to TaskStatusVWaitingOnOthers
+func TaskStatusPWaitingOnOthers() *TaskStatus {
+ v := TaskStatusVWaitingOnOthers
+ return &v
+}
+
+// TaskStatusPDeferred returns a pointer to TaskStatusVDeferred
+func TaskStatusPDeferred() *TaskStatus {
+ v := TaskStatusVDeferred
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TaxAreaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TaxAreaModel.go
new file mode 100644
index 00000000..b9ba71bf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TaxAreaModel.go
@@ -0,0 +1,19 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TaxAreaRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TaxAreaRequest.go
new file mode 100644
index 00000000..7b1d7e7d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TaxAreaRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TaxGroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TaxGroupModel.go
new file mode 100644
index 00000000..c10642df
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TaxGroupModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/TaxGroupRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TaxGroupRequest.go
new file mode 100644
index 00000000..4564f59c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TaxGroupRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/TeamAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamAction.go
new file mode 100644
index 00000000..88e9862e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamAction.go
@@ -0,0 +1,109 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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 {
+}
+
+//
+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/matterbridge/msgraph.go/beta/TeamClassSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamClassSettingsModel.go
new file mode 100644
index 00000000..a603d37a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamClassSettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamClassSettings undocumented
+type TeamClassSettings struct {
+ // Object is the base model of TeamClassSettings
+ Object
+ // NotifyGuardiansAboutAssignments undocumented
+ NotifyGuardiansAboutAssignments *bool `json:"notifyGuardiansAboutAssignments,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamDiscoverySettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamDiscoverySettingsModel.go
new file mode 100644
index 00000000..913d9a60
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamDiscoverySettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamDiscoverySettings undocumented
+type TeamDiscoverySettings struct {
+ // Object is the base model of TeamDiscoverySettings
+ Object
+ // ShowInTeamsSearchAndSuggestions undocumented
+ ShowInTeamsSearchAndSuggestions *bool `json:"showInTeamsSearchAndSuggestions,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamFunSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamFunSettingsModel.go
new file mode 100644
index 00000000..6efc8cda
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamFunSettingsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamGuestSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamGuestSettingsModel.go
new file mode 100644
index 00000000..d343a43c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamGuestSettingsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamMemberSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamMemberSettingsModel.go
new file mode 100644
index 00000000..843c0b7e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamMemberSettingsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamMessagingSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamMessagingSettingsModel.go
new file mode 100644
index 00000000..0adb0b4f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamMessagingSettingsModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/TeamModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamModel.go
new file mode 100644
index 00000000..b1a90fc0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamModel.go
@@ -0,0 +1,55 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamRequest.go
new file mode 100644
index 00000000..515aa187
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamRequest.go
@@ -0,0 +1,550 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsCatalogApp collection
+func (r *TeamAppsCollectionRequest) Get(ctx context.Context) ([]TeamsCatalogApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Channel collection
+func (r *TeamChannelsCollectionRequest) Get(ctx context.Context) ([]Channel, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsAppInstallation collection
+func (r *TeamInstalledAppsCollectionRequest) Get(ctx context.Context) ([]TeamsAppInstallation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsAsyncOperation collection
+func (r *TeamOperationsCollectionRequest) Get(ctx context.Context) ([]TeamsAsyncOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for User collection
+func (r *TeamOwnersCollectionRequest) Get(ctx context.Context) ([]User, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/TeamSpecializationEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamSpecializationEnum.go
new file mode 100644
index 00000000..6ee244bb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamSpecializationEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamSpecialization undocumented
+type TeamSpecialization int
+
+const (
+ // TeamSpecializationVNone undocumented
+ TeamSpecializationVNone TeamSpecialization = 0
+ // TeamSpecializationVEducationStandard undocumented
+ TeamSpecializationVEducationStandard TeamSpecialization = 1
+ // TeamSpecializationVEducationClass undocumented
+ TeamSpecializationVEducationClass TeamSpecialization = 2
+ // TeamSpecializationVEducationProfessionalLearningCommunity undocumented
+ TeamSpecializationVEducationProfessionalLearningCommunity TeamSpecialization = 3
+ // TeamSpecializationVEducationStaff undocumented
+ TeamSpecializationVEducationStaff TeamSpecialization = 4
+ // TeamSpecializationVHealthcareStandard undocumented
+ TeamSpecializationVHealthcareStandard TeamSpecialization = 5
+ // TeamSpecializationVHealthcareCareCoordination undocumented
+ TeamSpecializationVHealthcareCareCoordination TeamSpecialization = 6
+ // TeamSpecializationVUnknownFutureValue undocumented
+ TeamSpecializationVUnknownFutureValue TeamSpecialization = 7
+)
+
+// TeamSpecializationPNone returns a pointer to TeamSpecializationVNone
+func TeamSpecializationPNone() *TeamSpecialization {
+ v := TeamSpecializationVNone
+ return &v
+}
+
+// TeamSpecializationPEducationStandard returns a pointer to TeamSpecializationVEducationStandard
+func TeamSpecializationPEducationStandard() *TeamSpecialization {
+ v := TeamSpecializationVEducationStandard
+ return &v
+}
+
+// TeamSpecializationPEducationClass returns a pointer to TeamSpecializationVEducationClass
+func TeamSpecializationPEducationClass() *TeamSpecialization {
+ v := TeamSpecializationVEducationClass
+ return &v
+}
+
+// TeamSpecializationPEducationProfessionalLearningCommunity returns a pointer to TeamSpecializationVEducationProfessionalLearningCommunity
+func TeamSpecializationPEducationProfessionalLearningCommunity() *TeamSpecialization {
+ v := TeamSpecializationVEducationProfessionalLearningCommunity
+ return &v
+}
+
+// TeamSpecializationPEducationStaff returns a pointer to TeamSpecializationVEducationStaff
+func TeamSpecializationPEducationStaff() *TeamSpecialization {
+ v := TeamSpecializationVEducationStaff
+ return &v
+}
+
+// TeamSpecializationPHealthcareStandard returns a pointer to TeamSpecializationVHealthcareStandard
+func TeamSpecializationPHealthcareStandard() *TeamSpecialization {
+ v := TeamSpecializationVHealthcareStandard
+ return &v
+}
+
+// TeamSpecializationPHealthcareCareCoordination returns a pointer to TeamSpecializationVHealthcareCareCoordination
+func TeamSpecializationPHealthcareCareCoordination() *TeamSpecialization {
+ v := TeamSpecializationVHealthcareCareCoordination
+ return &v
+}
+
+// TeamSpecializationPUnknownFutureValue returns a pointer to TeamSpecializationVUnknownFutureValue
+func TeamSpecializationPUnknownFutureValue() *TeamSpecialization {
+ v := TeamSpecializationVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamVisibilityTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamVisibilityTypeEnum.go
new file mode 100644
index 00000000..592c139b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamVisibilityTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamVisibilityType undocumented
+type TeamVisibilityType int
+
+const (
+ // TeamVisibilityTypeVPrivate undocumented
+ TeamVisibilityTypeVPrivate TeamVisibilityType = 0
+ // TeamVisibilityTypeVPublic undocumented
+ TeamVisibilityTypeVPublic TeamVisibilityType = 1
+ // TeamVisibilityTypeVHiddenMembership undocumented
+ TeamVisibilityTypeVHiddenMembership TeamVisibilityType = 2
+ // TeamVisibilityTypeVUnknownFutureValue undocumented
+ TeamVisibilityTypeVUnknownFutureValue TeamVisibilityType = 3
+)
+
+// TeamVisibilityTypePPrivate returns a pointer to TeamVisibilityTypeVPrivate
+func TeamVisibilityTypePPrivate() *TeamVisibilityType {
+ v := TeamVisibilityTypeVPrivate
+ return &v
+}
+
+// TeamVisibilityTypePPublic returns a pointer to TeamVisibilityTypeVPublic
+func TeamVisibilityTypePPublic() *TeamVisibilityType {
+ v := TeamVisibilityTypeVPublic
+ return &v
+}
+
+// TeamVisibilityTypePHiddenMembership returns a pointer to TeamVisibilityTypeVHiddenMembership
+func TeamVisibilityTypePHiddenMembership() *TeamVisibilityType {
+ v := TeamVisibilityTypeVHiddenMembership
+ return &v
+}
+
+// TeamVisibilityTypePUnknownFutureValue returns a pointer to TeamVisibilityTypeVUnknownFutureValue
+func TeamVisibilityTypePUnknownFutureValue() *TeamVisibilityType {
+ v := TeamVisibilityTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDefinitionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDefinitionModel.go
new file mode 100644
index 00000000..d5c6c771
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDefinitionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDefinitionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDefinitionRequest.go
new file mode 100644
index 00000000..1177a74d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDefinitionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDistributionMethodEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDistributionMethodEnum.go
new file mode 100644
index 00000000..184f3a2f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDistributionMethodEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamsAppDistributionMethod undocumented
+type TeamsAppDistributionMethod int
+
+const (
+ // TeamsAppDistributionMethodVStore undocumented
+ TeamsAppDistributionMethodVStore TeamsAppDistributionMethod = 0
+ // TeamsAppDistributionMethodVOrganization undocumented
+ TeamsAppDistributionMethodVOrganization TeamsAppDistributionMethod = 1
+ // TeamsAppDistributionMethodVSideloaded undocumented
+ TeamsAppDistributionMethodVSideloaded TeamsAppDistributionMethod = 2
+ // TeamsAppDistributionMethodVUnknownFutureValue undocumented
+ TeamsAppDistributionMethodVUnknownFutureValue TeamsAppDistributionMethod = 3
+)
+
+// TeamsAppDistributionMethodPStore returns a pointer to TeamsAppDistributionMethodVStore
+func TeamsAppDistributionMethodPStore() *TeamsAppDistributionMethod {
+ v := TeamsAppDistributionMethodVStore
+ return &v
+}
+
+// TeamsAppDistributionMethodPOrganization returns a pointer to TeamsAppDistributionMethodVOrganization
+func TeamsAppDistributionMethodPOrganization() *TeamsAppDistributionMethod {
+ v := TeamsAppDistributionMethodVOrganization
+ return &v
+}
+
+// TeamsAppDistributionMethodPSideloaded returns a pointer to TeamsAppDistributionMethodVSideloaded
+func TeamsAppDistributionMethodPSideloaded() *TeamsAppDistributionMethod {
+ v := TeamsAppDistributionMethodVSideloaded
+ return &v
+}
+
+// TeamsAppDistributionMethodPUnknownFutureValue returns a pointer to TeamsAppDistributionMethodVUnknownFutureValue
+func TeamsAppDistributionMethodPUnknownFutureValue() *TeamsAppDistributionMethod {
+ v := TeamsAppDistributionMethodVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationAction.go
new file mode 100644
index 00000000..5e67c216
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TeamsAppInstallationUpgradeRequestParameter undocumented
+type TeamsAppInstallationUpgradeRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/TeamsAppInstallationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationModel.go
new file mode 100644
index 00000000..fa3e3243
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationRequest.go
new file mode 100644
index 00000000..29e4a308
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppModel.go
new file mode 100644
index 00000000..eb9c0a83
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppRequest.go
new file mode 100644
index 00000000..1684764c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsAppDefinition collection
+func (r *TeamsAppAppDefinitionsCollectionRequest) Get(ctx context.Context) ([]TeamsAppDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationModel.go
new file mode 100644
index 00000000..b1ed964d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationRequest.go
new file mode 100644
index 00000000..4a239ca8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationStatusEnum.go
new file mode 100644
index 00000000..f1741240
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamsAsyncOperationStatus undocumented
+type TeamsAsyncOperationStatus int
+
+const (
+ // TeamsAsyncOperationStatusVInvalid undocumented
+ TeamsAsyncOperationStatusVInvalid TeamsAsyncOperationStatus = 0
+ // TeamsAsyncOperationStatusVNotStarted undocumented
+ TeamsAsyncOperationStatusVNotStarted TeamsAsyncOperationStatus = 1
+ // TeamsAsyncOperationStatusVInProgress undocumented
+ TeamsAsyncOperationStatusVInProgress TeamsAsyncOperationStatus = 2
+ // TeamsAsyncOperationStatusVSucceeded undocumented
+ TeamsAsyncOperationStatusVSucceeded TeamsAsyncOperationStatus = 3
+ // TeamsAsyncOperationStatusVFailed undocumented
+ TeamsAsyncOperationStatusVFailed TeamsAsyncOperationStatus = 4
+ // TeamsAsyncOperationStatusVUnknownFutureValue undocumented
+ TeamsAsyncOperationStatusVUnknownFutureValue TeamsAsyncOperationStatus = 5
+)
+
+// TeamsAsyncOperationStatusPInvalid returns a pointer to TeamsAsyncOperationStatusVInvalid
+func TeamsAsyncOperationStatusPInvalid() *TeamsAsyncOperationStatus {
+ v := TeamsAsyncOperationStatusVInvalid
+ return &v
+}
+
+// TeamsAsyncOperationStatusPNotStarted returns a pointer to TeamsAsyncOperationStatusVNotStarted
+func TeamsAsyncOperationStatusPNotStarted() *TeamsAsyncOperationStatus {
+ v := TeamsAsyncOperationStatusVNotStarted
+ return &v
+}
+
+// TeamsAsyncOperationStatusPInProgress returns a pointer to TeamsAsyncOperationStatusVInProgress
+func TeamsAsyncOperationStatusPInProgress() *TeamsAsyncOperationStatus {
+ v := TeamsAsyncOperationStatusVInProgress
+ return &v
+}
+
+// TeamsAsyncOperationStatusPSucceeded returns a pointer to TeamsAsyncOperationStatusVSucceeded
+func TeamsAsyncOperationStatusPSucceeded() *TeamsAsyncOperationStatus {
+ v := TeamsAsyncOperationStatusVSucceeded
+ return &v
+}
+
+// TeamsAsyncOperationStatusPFailed returns a pointer to TeamsAsyncOperationStatusVFailed
+func TeamsAsyncOperationStatusPFailed() *TeamsAsyncOperationStatus {
+ v := TeamsAsyncOperationStatusVFailed
+ return &v
+}
+
+// TeamsAsyncOperationStatusPUnknownFutureValue returns a pointer to TeamsAsyncOperationStatusVUnknownFutureValue
+func TeamsAsyncOperationStatusPUnknownFutureValue() *TeamsAsyncOperationStatus {
+ v := TeamsAsyncOperationStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationTypeEnum.go
new file mode 100644
index 00000000..beaf7756
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamsAsyncOperationType undocumented
+type TeamsAsyncOperationType int
+
+const (
+ // TeamsAsyncOperationTypeVInvalid undocumented
+ TeamsAsyncOperationTypeVInvalid TeamsAsyncOperationType = 0
+ // TeamsAsyncOperationTypeVCloneTeam undocumented
+ TeamsAsyncOperationTypeVCloneTeam TeamsAsyncOperationType = 1
+ // TeamsAsyncOperationTypeVArchiveTeam undocumented
+ TeamsAsyncOperationTypeVArchiveTeam TeamsAsyncOperationType = 2
+ // TeamsAsyncOperationTypeVUnarchiveTeam undocumented
+ TeamsAsyncOperationTypeVUnarchiveTeam TeamsAsyncOperationType = 3
+ // TeamsAsyncOperationTypeVCreateTeam undocumented
+ TeamsAsyncOperationTypeVCreateTeam TeamsAsyncOperationType = 4
+ // TeamsAsyncOperationTypeVUnknownFutureValue undocumented
+ TeamsAsyncOperationTypeVUnknownFutureValue TeamsAsyncOperationType = 5
+)
+
+// TeamsAsyncOperationTypePInvalid returns a pointer to TeamsAsyncOperationTypeVInvalid
+func TeamsAsyncOperationTypePInvalid() *TeamsAsyncOperationType {
+ v := TeamsAsyncOperationTypeVInvalid
+ return &v
+}
+
+// TeamsAsyncOperationTypePCloneTeam returns a pointer to TeamsAsyncOperationTypeVCloneTeam
+func TeamsAsyncOperationTypePCloneTeam() *TeamsAsyncOperationType {
+ v := TeamsAsyncOperationTypeVCloneTeam
+ return &v
+}
+
+// TeamsAsyncOperationTypePArchiveTeam returns a pointer to TeamsAsyncOperationTypeVArchiveTeam
+func TeamsAsyncOperationTypePArchiveTeam() *TeamsAsyncOperationType {
+ v := TeamsAsyncOperationTypeVArchiveTeam
+ return &v
+}
+
+// TeamsAsyncOperationTypePUnarchiveTeam returns a pointer to TeamsAsyncOperationTypeVUnarchiveTeam
+func TeamsAsyncOperationTypePUnarchiveTeam() *TeamsAsyncOperationType {
+ v := TeamsAsyncOperationTypeVUnarchiveTeam
+ return &v
+}
+
+// TeamsAsyncOperationTypePCreateTeam returns a pointer to TeamsAsyncOperationTypeVCreateTeam
+func TeamsAsyncOperationTypePCreateTeam() *TeamsAsyncOperationType {
+ v := TeamsAsyncOperationTypeVCreateTeam
+ return &v
+}
+
+// TeamsAsyncOperationTypePUnknownFutureValue returns a pointer to TeamsAsyncOperationTypeVUnknownFutureValue
+func TeamsAsyncOperationTypePUnknownFutureValue() *TeamsAsyncOperationType {
+ v := TeamsAsyncOperationTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsCatalogAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsCatalogAppModel.go
new file mode 100644
index 00000000..136620db
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsCatalogAppModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsCatalogAppRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsCatalogAppRequest.go
new file mode 100644
index 00000000..ee72b524
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsCatalogAppRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageDistributionUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageDistributionUserCountsModel.go
new file mode 100644
index 00000000..d57c14ea
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageDistributionUserCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TeamsDeviceUsageDistributionUserCounts undocumented
+type TeamsDeviceUsageDistributionUserCounts struct {
+ // Entity is the base model of TeamsDeviceUsageDistributionUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageUserCountsModel.go
new file mode 100644
index 00000000..2c48258c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageUserCountsModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TeamsDeviceUsageUserCounts undocumented
+type TeamsDeviceUsageUserCounts struct {
+ // Entity is the base model of TeamsDeviceUsageUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageUserDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageUserDetailModel.go
new file mode 100644
index 00000000..d693c812
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageUserDetailModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TeamsDeviceUsageUserDetail undocumented
+type TeamsDeviceUsageUserDetail struct {
+ // Entity is the base model of TeamsDeviceUsageUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabConfigurationModel.go
new file mode 100644
index 00000000..063948dc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabConfigurationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabModel.go
new file mode 100644
index 00000000..d5de3c0a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabRequest.go
new file mode 100644
index 00000000..8557856c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/TeamsTemplateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTemplateModel.go
new file mode 100644
index 00000000..180db147
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTemplateModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamsTemplate undocumented
+type TeamsTemplate struct {
+ // Entity is the base model of TeamsTemplate
+ Entity
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTemplateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTemplateRequest.go
new file mode 100644
index 00000000..79208af9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTemplateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityCountsModel.go
new file mode 100644
index 00000000..55c1e475
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityCountsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TeamsUserActivityCounts undocumented
+type TeamsUserActivityCounts struct {
+ // Entity is the base model of TeamsUserActivityCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityUserCountsModel.go
new file mode 100644
index 00000000..1b736691
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityUserCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TeamsUserActivityUserCounts undocumented
+type TeamsUserActivityUserCounts struct {
+ // Entity is the base model of TeamsUserActivityUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityUserDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityUserDetailModel.go
new file mode 100644
index 00000000..ffe9cd61
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityUserDetailModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TeamsUserActivityUserDetail undocumented
+type TeamsUserActivityUserDetail struct {
+ // Entity is the base model of TeamsUserActivityUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *time.Time `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/matterbridge/msgraph.go/beta/TeamworkModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamworkModel.go
new file mode 100644
index 00000000..78a4196a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamworkModel.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/matterbridge/msgraph.go/beta/TeamworkRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamworkRequest.go
new file mode 100644
index 00000000..810bd6cf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TeamworkRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkforceIntegration collection
+func (r *TeamworkWorkforceIntegrationsCollectionRequest) Get(ctx context.Context) ([]WorkforceIntegration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/TelecomExpenseManagementPartnerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TelecomExpenseManagementPartnerModel.go
new file mode 100644
index 00000000..5b0e13f4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TelecomExpenseManagementPartnerModel.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/matterbridge/msgraph.go/beta/TelecomExpenseManagementPartnerRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TelecomExpenseManagementPartnerRequest.go
new file mode 100644
index 00000000..d2523408
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TelecomExpenseManagementPartnerRequest.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/matterbridge/msgraph.go/beta/TenantSetupInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TenantSetupInfoModel.go
new file mode 100644
index 00000000..6aac0c67
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TenantSetupInfoModel.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/matterbridge/msgraph.go/beta/TenantSetupInfoRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TenantSetupInfoRequest.go
new file mode 100644
index 00000000..294fe792
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TenantSetupInfoRequest.go
@@ -0,0 +1,45 @@
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/TermsAndConditionsAcceptanceStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAcceptanceStatusModel.go
new file mode 100644
index 00000000..9dc62015
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAcceptanceStatusModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAcceptanceStatusRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAcceptanceStatusRequest.go
new file mode 100644
index 00000000..caab6625
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAcceptanceStatusRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// TermsAndConditions is navigation property
+func (b *TermsAndConditionsAcceptanceStatusRequestBuilder) TermsAndConditions() *TermsAndConditionsRequestBuilder {
+ bb := &TermsAndConditionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/termsAndConditions"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAssignmentModel.go
new file mode 100644
index 00000000..e2727c9d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAssignmentRequest.go
new file mode 100644
index 00000000..47f99bc8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsGroupAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsGroupAssignmentModel.go
new file mode 100644
index 00000000..54b49722
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsGroupAssignmentModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/TermsAndConditionsGroupAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsGroupAssignmentRequest.go
new file mode 100644
index 00000000..8739b112
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsGroupAssignmentRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/TermsAndConditionsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsModel.go
new file mode 100644
index 00000000..92a2d7ba
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsModel.go
@@ -0,0 +1,37 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsRequest.go
new file mode 100644
index 00000000..8299c044
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TermsAndConditionsAcceptanceStatus collection
+func (r *TermsAndConditionsAcceptanceStatusesCollectionRequest) Get(ctx context.Context) ([]TermsAndConditionsAcceptanceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TermsAndConditionsAssignment collection
+func (r *TermsAndConditionsAssignmentsCollectionRequest) Get(ctx context.Context) ([]TermsAndConditionsAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TermsAndConditionsGroupAssignment collection
+func (r *TermsAndConditionsGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]TermsAndConditionsGroupAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TextClassificationRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TextClassificationRequestObjectModel.go
new file mode 100644
index 00000000..4adfaaa4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TextClassificationRequestObjectModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TextClassificationRequestObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TextClassificationRequestObjectRequest.go
new file mode 100644
index 00000000..b0954e8e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TextClassificationRequestObjectRequest.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/matterbridge/msgraph.go/beta/TextColumnModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TextColumnModel.go
new file mode 100644
index 00000000..c8d284da
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TextColumnModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ThreatAssessmentContentTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentContentTypeEnum.go
new file mode 100644
index 00000000..a1f72d5d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentContentTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThreatAssessmentContentType undocumented
+type ThreatAssessmentContentType int
+
+const (
+ // ThreatAssessmentContentTypeVMail undocumented
+ ThreatAssessmentContentTypeVMail ThreatAssessmentContentType = 1
+ // ThreatAssessmentContentTypeVURL undocumented
+ ThreatAssessmentContentTypeVURL ThreatAssessmentContentType = 2
+ // ThreatAssessmentContentTypeVFile undocumented
+ ThreatAssessmentContentTypeVFile ThreatAssessmentContentType = 3
+)
+
+// ThreatAssessmentContentTypePMail returns a pointer to ThreatAssessmentContentTypeVMail
+func ThreatAssessmentContentTypePMail() *ThreatAssessmentContentType {
+ v := ThreatAssessmentContentTypeVMail
+ return &v
+}
+
+// ThreatAssessmentContentTypePURL returns a pointer to ThreatAssessmentContentTypeVURL
+func ThreatAssessmentContentTypePURL() *ThreatAssessmentContentType {
+ v := ThreatAssessmentContentTypeVURL
+ return &v
+}
+
+// ThreatAssessmentContentTypePFile returns a pointer to ThreatAssessmentContentTypeVFile
+func ThreatAssessmentContentTypePFile() *ThreatAssessmentContentType {
+ v := ThreatAssessmentContentTypeVFile
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestObjectModel.go
new file mode 100644
index 00000000..72065bf2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestObjectModel.go
@@ -0,0 +1,27 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestObjectRequest.go
new file mode 100644
index 00000000..3e5f9058
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestObjectRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ThreatAssessmentResult collection
+func (r *ThreatAssessmentRequestObjectResultsCollectionRequest) Get(ctx context.Context) ([]ThreatAssessmentResult, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/ThreatAssessmentRequestPivotPropertyEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestPivotPropertyEnum.go
new file mode 100644
index 00000000..8fb4340f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestPivotPropertyEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThreatAssessmentRequestPivotProperty undocumented
+type ThreatAssessmentRequestPivotProperty int
+
+const (
+ // ThreatAssessmentRequestPivotPropertyVThreatCategory undocumented
+ ThreatAssessmentRequestPivotPropertyVThreatCategory ThreatAssessmentRequestPivotProperty = 1
+ // ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason undocumented
+ ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason ThreatAssessmentRequestPivotProperty = 2
+)
+
+// ThreatAssessmentRequestPivotPropertyPThreatCategory returns a pointer to ThreatAssessmentRequestPivotPropertyVThreatCategory
+func ThreatAssessmentRequestPivotPropertyPThreatCategory() *ThreatAssessmentRequestPivotProperty {
+ v := ThreatAssessmentRequestPivotPropertyVThreatCategory
+ return &v
+}
+
+// ThreatAssessmentRequestPivotPropertyPMailDestinationRoutingReason returns a pointer to ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason
+func ThreatAssessmentRequestPivotPropertyPMailDestinationRoutingReason() *ThreatAssessmentRequestPivotProperty {
+ v := ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestSourceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestSourceEnum.go
new file mode 100644
index 00000000..8adcd2e2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestSourceEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThreatAssessmentRequestSource undocumented
+type ThreatAssessmentRequestSource int
+
+const (
+ // ThreatAssessmentRequestSourceVUndefined undocumented
+ ThreatAssessmentRequestSourceVUndefined ThreatAssessmentRequestSource = 0
+ // ThreatAssessmentRequestSourceVUser undocumented
+ ThreatAssessmentRequestSourceVUser ThreatAssessmentRequestSource = 1
+ // ThreatAssessmentRequestSourceVAdministrator undocumented
+ ThreatAssessmentRequestSourceVAdministrator ThreatAssessmentRequestSource = 2
+)
+
+// ThreatAssessmentRequestSourcePUndefined returns a pointer to ThreatAssessmentRequestSourceVUndefined
+func ThreatAssessmentRequestSourcePUndefined() *ThreatAssessmentRequestSource {
+ v := ThreatAssessmentRequestSourceVUndefined
+ return &v
+}
+
+// ThreatAssessmentRequestSourcePUser returns a pointer to ThreatAssessmentRequestSourceVUser
+func ThreatAssessmentRequestSourcePUser() *ThreatAssessmentRequestSource {
+ v := ThreatAssessmentRequestSourceVUser
+ return &v
+}
+
+// ThreatAssessmentRequestSourcePAdministrator returns a pointer to ThreatAssessmentRequestSourceVAdministrator
+func ThreatAssessmentRequestSourcePAdministrator() *ThreatAssessmentRequestSource {
+ v := ThreatAssessmentRequestSourceVAdministrator
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestsCountModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestsCountModel.go
new file mode 100644
index 00000000..320bfa71
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestsCountModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultModel.go
new file mode 100644
index 00000000..a30099d3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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/matterbridge/msgraph.go/beta/ThreatAssessmentResultRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultRequest.go
new file mode 100644
index 00000000..40f9f6df
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/ThreatAssessmentResultTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultTypeEnum.go
new file mode 100644
index 00000000..d1b862b6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThreatAssessmentResultType undocumented
+type ThreatAssessmentResultType int
+
+const (
+ // ThreatAssessmentResultTypeVCheckPolicy undocumented
+ ThreatAssessmentResultTypeVCheckPolicy ThreatAssessmentResultType = 1
+ // ThreatAssessmentResultTypeVRescan undocumented
+ ThreatAssessmentResultTypeVRescan ThreatAssessmentResultType = 2
+ // ThreatAssessmentResultTypeVUnknownFutureValue undocumented
+ ThreatAssessmentResultTypeVUnknownFutureValue ThreatAssessmentResultType = 3
+)
+
+// ThreatAssessmentResultTypePCheckPolicy returns a pointer to ThreatAssessmentResultTypeVCheckPolicy
+func ThreatAssessmentResultTypePCheckPolicy() *ThreatAssessmentResultType {
+ v := ThreatAssessmentResultTypeVCheckPolicy
+ return &v
+}
+
+// ThreatAssessmentResultTypePRescan returns a pointer to ThreatAssessmentResultTypeVRescan
+func ThreatAssessmentResultTypePRescan() *ThreatAssessmentResultType {
+ v := ThreatAssessmentResultTypeVRescan
+ return &v
+}
+
+// ThreatAssessmentResultTypePUnknownFutureValue returns a pointer to ThreatAssessmentResultTypeVUnknownFutureValue
+func ThreatAssessmentResultTypePUnknownFutureValue() *ThreatAssessmentResultType {
+ v := ThreatAssessmentResultTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentStatusEnum.go
new file mode 100644
index 00000000..55b3f148
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentStatusEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThreatAssessmentStatus undocumented
+type ThreatAssessmentStatus int
+
+const (
+ // ThreatAssessmentStatusVPending undocumented
+ ThreatAssessmentStatusVPending ThreatAssessmentStatus = 1
+ // ThreatAssessmentStatusVCompleted undocumented
+ ThreatAssessmentStatusVCompleted ThreatAssessmentStatus = 2
+)
+
+// ThreatAssessmentStatusPPending returns a pointer to ThreatAssessmentStatusVPending
+func ThreatAssessmentStatusPPending() *ThreatAssessmentStatus {
+ v := ThreatAssessmentStatusVPending
+ return &v
+}
+
+// ThreatAssessmentStatusPCompleted returns a pointer to ThreatAssessmentStatusVCompleted
+func ThreatAssessmentStatusPCompleted() *ThreatAssessmentStatus {
+ v := ThreatAssessmentStatusVCompleted
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatCategoryEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatCategoryEnum.go
new file mode 100644
index 00000000..d3a2854f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatCategoryEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThreatCategory undocumented
+type ThreatCategory int
+
+const (
+ // ThreatCategoryVSpam undocumented
+ ThreatCategoryVSpam ThreatCategory = 1
+ // ThreatCategoryVPhishing undocumented
+ ThreatCategoryVPhishing ThreatCategory = 2
+ // ThreatCategoryVMalware undocumented
+ ThreatCategoryVMalware ThreatCategory = 3
+ // ThreatCategoryVUnknownFutureValue undocumented
+ ThreatCategoryVUnknownFutureValue ThreatCategory = 4
+)
+
+// ThreatCategoryPSpam returns a pointer to ThreatCategoryVSpam
+func ThreatCategoryPSpam() *ThreatCategory {
+ v := ThreatCategoryVSpam
+ return &v
+}
+
+// ThreatCategoryPPhishing returns a pointer to ThreatCategoryVPhishing
+func ThreatCategoryPPhishing() *ThreatCategory {
+ v := ThreatCategoryVPhishing
+ return &v
+}
+
+// ThreatCategoryPMalware returns a pointer to ThreatCategoryVMalware
+func ThreatCategoryPMalware() *ThreatCategory {
+ v := ThreatCategoryVMalware
+ return &v
+}
+
+// ThreatCategoryPUnknownFutureValue returns a pointer to ThreatCategoryVUnknownFutureValue
+func ThreatCategoryPUnknownFutureValue() *ThreatCategory {
+ v := ThreatCategoryVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatExpectedAssessmentEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatExpectedAssessmentEnum.go
new file mode 100644
index 00000000..471bd828
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ThreatExpectedAssessmentEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThreatExpectedAssessment undocumented
+type ThreatExpectedAssessment int
+
+const (
+ // ThreatExpectedAssessmentVBlock undocumented
+ ThreatExpectedAssessmentVBlock ThreatExpectedAssessment = 1
+ // ThreatExpectedAssessmentVUnblock undocumented
+ ThreatExpectedAssessmentVUnblock ThreatExpectedAssessment = 2
+)
+
+// ThreatExpectedAssessmentPBlock returns a pointer to ThreatExpectedAssessmentVBlock
+func ThreatExpectedAssessmentPBlock() *ThreatExpectedAssessment {
+ v := ThreatExpectedAssessmentVBlock
+ return &v
+}
+
+// ThreatExpectedAssessmentPUnblock returns a pointer to ThreatExpectedAssessmentVUnblock
+func ThreatExpectedAssessmentPUnblock() *ThreatExpectedAssessment {
+ v := ThreatExpectedAssessmentVUnblock
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailModel.go
new file mode 100644
index 00000000..db281c1c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailModel.go
@@ -0,0 +1,19 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailSetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailSetModel.go
new file mode 100644
index 00000000..441fa92e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailSetModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/ThumbnailSetRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailSetRequest.go
new file mode 100644
index 00000000..d028a8d6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailSetRequest.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/matterbridge/msgraph.go/beta/TiActionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/TiActionEnum.go
new file mode 100644
index 00000000..10aa74b0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TiActionEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TiAction undocumented
+type TiAction int
+
+const (
+ // TiActionVUnknown undocumented
+ TiActionVUnknown TiAction = 0
+ // TiActionVAllow undocumented
+ TiActionVAllow TiAction = 1
+ // TiActionVBlock undocumented
+ TiActionVBlock TiAction = 2
+ // TiActionVAlert undocumented
+ TiActionVAlert TiAction = 3
+ // TiActionVUnknownFutureValue undocumented
+ TiActionVUnknownFutureValue TiAction = 127
+)
+
+// TiActionPUnknown returns a pointer to TiActionVUnknown
+func TiActionPUnknown() *TiAction {
+ v := TiActionVUnknown
+ return &v
+}
+
+// TiActionPAllow returns a pointer to TiActionVAllow
+func TiActionPAllow() *TiAction {
+ v := TiActionVAllow
+ return &v
+}
+
+// TiActionPBlock returns a pointer to TiActionVBlock
+func TiActionPBlock() *TiAction {
+ v := TiActionVBlock
+ return &v
+}
+
+// TiActionPAlert returns a pointer to TiActionVAlert
+func TiActionPAlert() *TiAction {
+ v := TiActionVAlert
+ return &v
+}
+
+// TiActionPUnknownFutureValue returns a pointer to TiActionVUnknownFutureValue
+func TiActionPUnknownFutureValue() *TiAction {
+ v := TiActionVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorAction.go
new file mode 100644
index 00000000..337dc6ea
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorAction.go
@@ -0,0 +1,364 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]TiIndicator, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]TiIndicator, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]ResultInfo, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]ResultInfo, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorModel.go
new file mode 100644
index 00000000..deb8a11c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorModel.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/matterbridge/msgraph.go/beta/TiIndicatorRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorRequest.go
new file mode 100644
index 00000000..563d9665
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TimeConstraintModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TimeConstraintModel.go
new file mode 100644
index 00000000..34876da7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TimeConstraintModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffItemModel.go
new file mode 100644
index 00000000..acbb9a9d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffItemModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TimeOffItem undocumented
+type TimeOffItem struct {
+ // ScheduleEntity is the base model of TimeOffItem
+ ScheduleEntity
+ // TimeOffReasonID undocumented
+ TimeOffReasonID *string `json:"timeOffReasonId,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffModel.go
new file mode 100644
index 00000000..76614c69
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonIconTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonIconTypeEnum.go
new file mode 100644
index 00000000..0b44300d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonIconTypeEnum.go
@@ -0,0 +1,185 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TimeOffReasonIconType undocumented
+type TimeOffReasonIconType int
+
+const (
+ // TimeOffReasonIconTypeVNone undocumented
+ TimeOffReasonIconTypeVNone TimeOffReasonIconType = 0
+ // TimeOffReasonIconTypeVCar undocumented
+ TimeOffReasonIconTypeVCar TimeOffReasonIconType = 1
+ // TimeOffReasonIconTypeVCalendar undocumented
+ TimeOffReasonIconTypeVCalendar TimeOffReasonIconType = 2
+ // TimeOffReasonIconTypeVRunning undocumented
+ TimeOffReasonIconTypeVRunning TimeOffReasonIconType = 3
+ // TimeOffReasonIconTypeVPlane undocumented
+ TimeOffReasonIconTypeVPlane TimeOffReasonIconType = 4
+ // TimeOffReasonIconTypeVFirstAid undocumented
+ TimeOffReasonIconTypeVFirstAid TimeOffReasonIconType = 5
+ // TimeOffReasonIconTypeVDoctor undocumented
+ TimeOffReasonIconTypeVDoctor TimeOffReasonIconType = 6
+ // TimeOffReasonIconTypeVNotWorking undocumented
+ TimeOffReasonIconTypeVNotWorking TimeOffReasonIconType = 7
+ // TimeOffReasonIconTypeVClock undocumented
+ TimeOffReasonIconTypeVClock TimeOffReasonIconType = 8
+ // TimeOffReasonIconTypeVJuryDuty undocumented
+ TimeOffReasonIconTypeVJuryDuty TimeOffReasonIconType = 9
+ // TimeOffReasonIconTypeVGlobe undocumented
+ TimeOffReasonIconTypeVGlobe TimeOffReasonIconType = 10
+ // TimeOffReasonIconTypeVCup undocumented
+ TimeOffReasonIconTypeVCup TimeOffReasonIconType = 11
+ // TimeOffReasonIconTypeVPhone undocumented
+ TimeOffReasonIconTypeVPhone TimeOffReasonIconType = 12
+ // TimeOffReasonIconTypeVWeather undocumented
+ TimeOffReasonIconTypeVWeather TimeOffReasonIconType = 13
+ // TimeOffReasonIconTypeVUmbrella undocumented
+ TimeOffReasonIconTypeVUmbrella TimeOffReasonIconType = 14
+ // TimeOffReasonIconTypeVPiggyBank undocumented
+ TimeOffReasonIconTypeVPiggyBank TimeOffReasonIconType = 15
+ // TimeOffReasonIconTypeVDog undocumented
+ TimeOffReasonIconTypeVDog TimeOffReasonIconType = 16
+ // TimeOffReasonIconTypeVCake undocumented
+ TimeOffReasonIconTypeVCake TimeOffReasonIconType = 17
+ // TimeOffReasonIconTypeVTrafficCone undocumented
+ TimeOffReasonIconTypeVTrafficCone TimeOffReasonIconType = 18
+ // TimeOffReasonIconTypeVPin undocumented
+ TimeOffReasonIconTypeVPin TimeOffReasonIconType = 19
+ // TimeOffReasonIconTypeVSunny undocumented
+ TimeOffReasonIconTypeVSunny TimeOffReasonIconType = 20
+ // TimeOffReasonIconTypeVUnknownFutureValue undocumented
+ TimeOffReasonIconTypeVUnknownFutureValue TimeOffReasonIconType = 21
+)
+
+// TimeOffReasonIconTypePNone returns a pointer to TimeOffReasonIconTypeVNone
+func TimeOffReasonIconTypePNone() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVNone
+ return &v
+}
+
+// TimeOffReasonIconTypePCar returns a pointer to TimeOffReasonIconTypeVCar
+func TimeOffReasonIconTypePCar() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVCar
+ return &v
+}
+
+// TimeOffReasonIconTypePCalendar returns a pointer to TimeOffReasonIconTypeVCalendar
+func TimeOffReasonIconTypePCalendar() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVCalendar
+ return &v
+}
+
+// TimeOffReasonIconTypePRunning returns a pointer to TimeOffReasonIconTypeVRunning
+func TimeOffReasonIconTypePRunning() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVRunning
+ return &v
+}
+
+// TimeOffReasonIconTypePPlane returns a pointer to TimeOffReasonIconTypeVPlane
+func TimeOffReasonIconTypePPlane() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVPlane
+ return &v
+}
+
+// TimeOffReasonIconTypePFirstAid returns a pointer to TimeOffReasonIconTypeVFirstAid
+func TimeOffReasonIconTypePFirstAid() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVFirstAid
+ return &v
+}
+
+// TimeOffReasonIconTypePDoctor returns a pointer to TimeOffReasonIconTypeVDoctor
+func TimeOffReasonIconTypePDoctor() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVDoctor
+ return &v
+}
+
+// TimeOffReasonIconTypePNotWorking returns a pointer to TimeOffReasonIconTypeVNotWorking
+func TimeOffReasonIconTypePNotWorking() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVNotWorking
+ return &v
+}
+
+// TimeOffReasonIconTypePClock returns a pointer to TimeOffReasonIconTypeVClock
+func TimeOffReasonIconTypePClock() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVClock
+ return &v
+}
+
+// TimeOffReasonIconTypePJuryDuty returns a pointer to TimeOffReasonIconTypeVJuryDuty
+func TimeOffReasonIconTypePJuryDuty() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVJuryDuty
+ return &v
+}
+
+// TimeOffReasonIconTypePGlobe returns a pointer to TimeOffReasonIconTypeVGlobe
+func TimeOffReasonIconTypePGlobe() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVGlobe
+ return &v
+}
+
+// TimeOffReasonIconTypePCup returns a pointer to TimeOffReasonIconTypeVCup
+func TimeOffReasonIconTypePCup() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVCup
+ return &v
+}
+
+// TimeOffReasonIconTypePPhone returns a pointer to TimeOffReasonIconTypeVPhone
+func TimeOffReasonIconTypePPhone() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVPhone
+ return &v
+}
+
+// TimeOffReasonIconTypePWeather returns a pointer to TimeOffReasonIconTypeVWeather
+func TimeOffReasonIconTypePWeather() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVWeather
+ return &v
+}
+
+// TimeOffReasonIconTypePUmbrella returns a pointer to TimeOffReasonIconTypeVUmbrella
+func TimeOffReasonIconTypePUmbrella() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVUmbrella
+ return &v
+}
+
+// TimeOffReasonIconTypePPiggyBank returns a pointer to TimeOffReasonIconTypeVPiggyBank
+func TimeOffReasonIconTypePPiggyBank() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVPiggyBank
+ return &v
+}
+
+// TimeOffReasonIconTypePDog returns a pointer to TimeOffReasonIconTypeVDog
+func TimeOffReasonIconTypePDog() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVDog
+ return &v
+}
+
+// TimeOffReasonIconTypePCake returns a pointer to TimeOffReasonIconTypeVCake
+func TimeOffReasonIconTypePCake() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVCake
+ return &v
+}
+
+// TimeOffReasonIconTypePTrafficCone returns a pointer to TimeOffReasonIconTypeVTrafficCone
+func TimeOffReasonIconTypePTrafficCone() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVTrafficCone
+ return &v
+}
+
+// TimeOffReasonIconTypePPin returns a pointer to TimeOffReasonIconTypeVPin
+func TimeOffReasonIconTypePPin() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVPin
+ return &v
+}
+
+// TimeOffReasonIconTypePSunny returns a pointer to TimeOffReasonIconTypeVSunny
+func TimeOffReasonIconTypePSunny() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVSunny
+ return &v
+}
+
+// TimeOffReasonIconTypePUnknownFutureValue returns a pointer to TimeOffReasonIconTypeVUnknownFutureValue
+func TimeOffReasonIconTypePUnknownFutureValue() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonModel.go
new file mode 100644
index 00000000..5ba669e4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonRequest.go
new file mode 100644
index 00000000..8baa5c95
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequest.go
new file mode 100644
index 00000000..7f5c8862
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequestObjectModel.go
new file mode 100644
index 00000000..bc727be6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequestObjectModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequestObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequestObjectRequest.go
new file mode 100644
index 00000000..f41541f5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequestObjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/TimeSlotModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TimeSlotModel.go
new file mode 100644
index 00000000..fc54d99f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TimeSlotModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneBaseModel.go
new file mode 100644
index 00000000..0bf69046
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneBaseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TimeZoneBase undocumented
+type TimeZoneBase struct {
+ // Object is the base model of TimeZoneBase
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneInformationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneInformationModel.go
new file mode 100644
index 00000000..7295be71
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneInformationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/TimeZoneStandardEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneStandardEnum.go
new file mode 100644
index 00000000..8b433178
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneStandardEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TimeZoneStandard undocumented
+type TimeZoneStandard int
+
+const (
+ // TimeZoneStandardVWindows undocumented
+ TimeZoneStandardVWindows TimeZoneStandard = 0
+ // TimeZoneStandardVIana undocumented
+ TimeZoneStandardVIana TimeZoneStandard = 1
+)
+
+// TimeZoneStandardPWindows returns a pointer to TimeZoneStandardVWindows
+func TimeZoneStandardPWindows() *TimeZoneStandard {
+ v := TimeZoneStandardVWindows
+ return &v
+}
+
+// TimeZoneStandardPIana returns a pointer to TimeZoneStandardVIana
+func TimeZoneStandardPIana() *TimeZoneStandard {
+ v := TimeZoneStandardVIana
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TlpLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/TlpLevelEnum.go
new file mode 100644
index 00000000..0bd21839
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TlpLevelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TlpLevel undocumented
+type TlpLevel int
+
+const (
+ // TlpLevelVUnknown undocumented
+ TlpLevelVUnknown TlpLevel = 0
+ // TlpLevelVWhite undocumented
+ TlpLevelVWhite TlpLevel = 1
+ // TlpLevelVGreen undocumented
+ TlpLevelVGreen TlpLevel = 2
+ // TlpLevelVAmber undocumented
+ TlpLevelVAmber TlpLevel = 3
+ // TlpLevelVRed undocumented
+ TlpLevelVRed TlpLevel = 4
+ // TlpLevelVUnknownFutureValue undocumented
+ TlpLevelVUnknownFutureValue TlpLevel = 127
+)
+
+// TlpLevelPUnknown returns a pointer to TlpLevelVUnknown
+func TlpLevelPUnknown() *TlpLevel {
+ v := TlpLevelVUnknown
+ return &v
+}
+
+// TlpLevelPWhite returns a pointer to TlpLevelVWhite
+func TlpLevelPWhite() *TlpLevel {
+ v := TlpLevelVWhite
+ return &v
+}
+
+// TlpLevelPGreen returns a pointer to TlpLevelVGreen
+func TlpLevelPGreen() *TlpLevel {
+ v := TlpLevelVGreen
+ return &v
+}
+
+// TlpLevelPAmber returns a pointer to TlpLevelVAmber
+func TlpLevelPAmber() *TlpLevel {
+ v := TlpLevelVAmber
+ return &v
+}
+
+// TlpLevelPRed returns a pointer to TlpLevelVRed
+func TlpLevelPRed() *TlpLevel {
+ v := TlpLevelVRed
+ return &v
+}
+
+// TlpLevelPUnknownFutureValue returns a pointer to TlpLevelVUnknownFutureValue
+func TlpLevelPUnknownFutureValue() *TlpLevel {
+ v := TlpLevelVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TokenIssuerTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/TokenIssuerTypeEnum.go
new file mode 100644
index 00000000..75ba556a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TokenIssuerTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TokenIssuerType undocumented
+type TokenIssuerType int
+
+const (
+ // TokenIssuerTypeVAzureAD undocumented
+ TokenIssuerTypeVAzureAD TokenIssuerType = 0
+ // TokenIssuerTypeVADFederationServices undocumented
+ TokenIssuerTypeVADFederationServices TokenIssuerType = 1
+ // TokenIssuerTypeVUnknownFutureValue undocumented
+ TokenIssuerTypeVUnknownFutureValue TokenIssuerType = 2
+)
+
+// TokenIssuerTypePAzureAD returns a pointer to TokenIssuerTypeVAzureAD
+func TokenIssuerTypePAzureAD() *TokenIssuerType {
+ v := TokenIssuerTypeVAzureAD
+ return &v
+}
+
+// TokenIssuerTypePADFederationServices returns a pointer to TokenIssuerTypeVADFederationServices
+func TokenIssuerTypePADFederationServices() *TokenIssuerType {
+ v := TokenIssuerTypeVADFederationServices
+ return &v
+}
+
+// TokenIssuerTypePUnknownFutureValue returns a pointer to TokenIssuerTypeVUnknownFutureValue
+func TokenIssuerTypePUnknownFutureValue() *TokenIssuerType {
+ v := TokenIssuerTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TokenMeetingInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TokenMeetingInfoModel.go
new file mode 100644
index 00000000..bdc1164c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TokenMeetingInfoModel.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/matterbridge/msgraph.go/beta/ToneEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ToneEnum.go
new file mode 100644
index 00000000..1af29b07
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ToneEnum.go
@@ -0,0 +1,145 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Tone undocumented
+type Tone int
+
+const (
+ // ToneVTone0 undocumented
+ ToneVTone0 Tone = 0
+ // ToneVTone1 undocumented
+ ToneVTone1 Tone = 1
+ // ToneVTone2 undocumented
+ ToneVTone2 Tone = 2
+ // ToneVTone3 undocumented
+ ToneVTone3 Tone = 3
+ // ToneVTone4 undocumented
+ ToneVTone4 Tone = 4
+ // ToneVTone5 undocumented
+ ToneVTone5 Tone = 5
+ // ToneVTone6 undocumented
+ ToneVTone6 Tone = 6
+ // ToneVTone7 undocumented
+ ToneVTone7 Tone = 7
+ // ToneVTone8 undocumented
+ ToneVTone8 Tone = 8
+ // ToneVTone9 undocumented
+ ToneVTone9 Tone = 9
+ // ToneVStar undocumented
+ ToneVStar Tone = 10
+ // ToneVPound undocumented
+ ToneVPound Tone = 11
+ // ToneVA undocumented
+ ToneVA Tone = 12
+ // ToneVB undocumented
+ ToneVB Tone = 13
+ // ToneVC undocumented
+ ToneVC Tone = 14
+ // ToneVD undocumented
+ ToneVD Tone = 15
+ // ToneVFlash undocumented
+ ToneVFlash Tone = 16
+)
+
+// TonePTone0 returns a pointer to ToneVTone0
+func TonePTone0() *Tone {
+ v := ToneVTone0
+ return &v
+}
+
+// TonePTone1 returns a pointer to ToneVTone1
+func TonePTone1() *Tone {
+ v := ToneVTone1
+ return &v
+}
+
+// TonePTone2 returns a pointer to ToneVTone2
+func TonePTone2() *Tone {
+ v := ToneVTone2
+ return &v
+}
+
+// TonePTone3 returns a pointer to ToneVTone3
+func TonePTone3() *Tone {
+ v := ToneVTone3
+ return &v
+}
+
+// TonePTone4 returns a pointer to ToneVTone4
+func TonePTone4() *Tone {
+ v := ToneVTone4
+ return &v
+}
+
+// TonePTone5 returns a pointer to ToneVTone5
+func TonePTone5() *Tone {
+ v := ToneVTone5
+ return &v
+}
+
+// TonePTone6 returns a pointer to ToneVTone6
+func TonePTone6() *Tone {
+ v := ToneVTone6
+ return &v
+}
+
+// TonePTone7 returns a pointer to ToneVTone7
+func TonePTone7() *Tone {
+ v := ToneVTone7
+ return &v
+}
+
+// TonePTone8 returns a pointer to ToneVTone8
+func TonePTone8() *Tone {
+ v := ToneVTone8
+ return &v
+}
+
+// TonePTone9 returns a pointer to ToneVTone9
+func TonePTone9() *Tone {
+ v := ToneVTone9
+ return &v
+}
+
+// TonePStar returns a pointer to ToneVStar
+func TonePStar() *Tone {
+ v := ToneVStar
+ return &v
+}
+
+// TonePPound returns a pointer to ToneVPound
+func TonePPound() *Tone {
+ v := ToneVPound
+ return &v
+}
+
+// TonePA returns a pointer to ToneVA
+func TonePA() *Tone {
+ v := ToneVA
+ return &v
+}
+
+// TonePB returns a pointer to ToneVB
+func TonePB() *Tone {
+ v := ToneVB
+ return &v
+}
+
+// TonePC returns a pointer to ToneVC
+func TonePC() *Tone {
+ v := ToneVC
+ return &v
+}
+
+// TonePD returns a pointer to ToneVD
+func TonePD() *Tone {
+ v := ToneVD
+ return &v
+}
+
+// TonePFlash returns a pointer to ToneVFlash
+func TonePFlash() *Tone {
+ v := ToneVFlash
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ToneInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ToneInfoModel.go
new file mode 100644
index 00000000..5675acba
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/ToneInfoModel.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/matterbridge/msgraph.go/beta/TrendingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TrendingModel.go
new file mode 100644
index 00000000..e7b979f3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TrendingModel.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/matterbridge/msgraph.go/beta/TrendingRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TrendingRequest.go
new file mode 100644
index 00000000..22148260
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TrendingRequest.go
@@ -0,0 +1,45 @@
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/TrustFrameworkKeyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeyModel.go
new file mode 100644
index 00000000..be5403fe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeyModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetAction.go
new file mode 100644
index 00000000..7a46b522
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetAction.go
@@ -0,0 +1,151 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/TrustFrameworkKeySetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetModel.go
new file mode 100644
index 00000000..da6ef35f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TrustFrameworkKeySet undocumented
+type TrustFrameworkKeySet struct {
+ // Entity is the base model of TrustFrameworkKeySet
+ Entity
+ // Keys undocumented
+ Keys []TrustFrameworkKey `json:"keys,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetRequest.go
new file mode 100644
index 00000000..e98ae8a3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkModel.go
new file mode 100644
index 00000000..919b6315
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkPolicyModel.go
new file mode 100644
index 00000000..27d394b0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkPolicyModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TrustFrameworkPolicy undocumented
+type TrustFrameworkPolicy struct {
+ // Entity is the base model of TrustFrameworkPolicy
+ Entity
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkPolicyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkPolicyRequest.go
new file mode 100644
index 00000000..683bd14d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkPolicyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkRequest.go
new file mode 100644
index 00000000..e8104c2f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TrustFrameworkKeySet collection
+func (r *TrustFrameworkKeySetsCollectionRequest) Get(ctx context.Context) ([]TrustFrameworkKeySet, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TrustFrameworkPolicy collection
+func (r *TrustFrameworkPoliciesCollectionRequest) Get(ctx context.Context) ([]TrustFrameworkPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/TypedEmailAddressModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TypedEmailAddressModel.go
new file mode 100644
index 00000000..f930901b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/TypedEmailAddressModel.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/matterbridge/msgraph.go/beta/URLAssessmentRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/URLAssessmentRequestObjectModel.go
new file mode 100644
index 00000000..9a15fed9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/URLAssessmentRequestObjectModel.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/matterbridge/msgraph.go/beta/UnaryManagementConditionExpressionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnaryManagementConditionExpressionModel.go
new file mode 100644
index 00000000..1f7494f3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UnaryManagementConditionExpressionModel.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/matterbridge/msgraph.go/beta/UnaryManagementConditionExpressionOperatorTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnaryManagementConditionExpressionOperatorTypeEnum.go
new file mode 100644
index 00000000..bc2d162d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UnaryManagementConditionExpressionOperatorTypeEnum.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnaryManagementConditionExpressionOperatorType undocumented
+type UnaryManagementConditionExpressionOperatorType int
+
+const (
+ // UnaryManagementConditionExpressionOperatorTypeVNot undocumented
+ UnaryManagementConditionExpressionOperatorTypeVNot UnaryManagementConditionExpressionOperatorType = 0
+)
+
+// UnaryManagementConditionExpressionOperatorTypePNot returns a pointer to UnaryManagementConditionExpressionOperatorTypeVNot
+func UnaryManagementConditionExpressionOperatorTypePNot() *UnaryManagementConditionExpressionOperatorType {
+ v := UnaryManagementConditionExpressionOperatorTypeVNot
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UnfamiliarLocationRiskEventModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnfamiliarLocationRiskEventModel.go
new file mode 100644
index 00000000..09bca98a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UnfamiliarLocationRiskEventModel.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/matterbridge/msgraph.go/beta/UnfamiliarLocationRiskEventRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnfamiliarLocationRiskEventRequest.go
new file mode 100644
index 00000000..52cea47e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UnfamiliarLocationRiskEventRequest.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/matterbridge/msgraph.go/beta/UnifiedRoleAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleAssignmentModel.go
new file mode 100644
index 00000000..14306bb9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleAssignmentModel.go
@@ -0,0 +1,19 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleAssignmentRequest.go
new file mode 100644
index 00000000..53b3576d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleAssignmentRequest.go
@@ -0,0 +1,52 @@
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/UnifiedRoleDefinitionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleDefinitionModel.go
new file mode 100644
index 00000000..22d03a8f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleDefinitionModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleDefinitionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleDefinitionRequest.go
new file mode 100644
index 00000000..ae46286c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleDefinitionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/UnifiedRolePermissionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRolePermissionModel.go
new file mode 100644
index 00000000..e5f5b58b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRolePermissionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/UnitOfMeasureModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnitOfMeasureModel.go
new file mode 100644
index 00000000..c55d760b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UnitOfMeasureModel.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/matterbridge/msgraph.go/beta/UnitOfMeasureRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnitOfMeasureRequest.go
new file mode 100644
index 00000000..1cbf4f70
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UnitOfMeasureRequest.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/matterbridge/msgraph.go/beta/UnmuteParticipantOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnmuteParticipantOperationModel.go
new file mode 100644
index 00000000..d37eaf01
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UnmuteParticipantOperationModel.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/matterbridge/msgraph.go/beta/UnsupportedDeviceConfigurationDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnsupportedDeviceConfigurationDetailModel.go
new file mode 100644
index 00000000..b4952488
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UnsupportedDeviceConfigurationDetailModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/UnsupportedDeviceConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnsupportedDeviceConfigurationModel.go
new file mode 100644
index 00000000..8d8b1041
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UnsupportedDeviceConfigurationModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UpdateClassificationEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UpdateClassificationEnum.go
new file mode 100644
index 00000000..623db438
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UpdateClassificationEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UpdateClassification undocumented
+type UpdateClassification int
+
+const (
+ // UpdateClassificationVUserDefined undocumented
+ UpdateClassificationVUserDefined UpdateClassification = 0
+ // UpdateClassificationVRecommendedAndImportant undocumented
+ UpdateClassificationVRecommendedAndImportant UpdateClassification = 1
+ // UpdateClassificationVImportant undocumented
+ UpdateClassificationVImportant UpdateClassification = 2
+ // UpdateClassificationVNone undocumented
+ UpdateClassificationVNone UpdateClassification = 3
+)
+
+// UpdateClassificationPUserDefined returns a pointer to UpdateClassificationVUserDefined
+func UpdateClassificationPUserDefined() *UpdateClassification {
+ v := UpdateClassificationVUserDefined
+ return &v
+}
+
+// UpdateClassificationPRecommendedAndImportant returns a pointer to UpdateClassificationVRecommendedAndImportant
+func UpdateClassificationPRecommendedAndImportant() *UpdateClassification {
+ v := UpdateClassificationVRecommendedAndImportant
+ return &v
+}
+
+// UpdateClassificationPImportant returns a pointer to UpdateClassificationVImportant
+func UpdateClassificationPImportant() *UpdateClassification {
+ v := UpdateClassificationVImportant
+ return &v
+}
+
+// UpdateClassificationPNone returns a pointer to UpdateClassificationVNone
+func UpdateClassificationPNone() *UpdateClassification {
+ v := UpdateClassificationVNone
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UpdateRecordingStatusOperationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UpdateRecordingStatusOperationModel.go
new file mode 100644
index 00000000..59a98b50
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UpdateRecordingStatusOperationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UpdateRecordingStatusOperation undocumented
+type UpdateRecordingStatusOperation struct {
+ // CommsOperation is the base model of UpdateRecordingStatusOperation
+ CommsOperation
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UpdateWindowModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UpdateWindowModel.go
new file mode 100644
index 00000000..14ea4577
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UpdateWindowModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UpdateWindow undocumented
+type UpdateWindow struct {
+ // Object is the base model of UpdateWindow
+ Object
+ // UpdateWindowStartTime undocumented
+ UpdateWindowStartTime *time.Time `json:"updateWindowStartTime,omitempty"`
+ // UpdateWindowEndTime undocumented
+ UpdateWindowEndTime *time.Time `json:"updateWindowEndTime,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UpdateWindowsDeviceAccountActionParameterModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UpdateWindowsDeviceAccountActionParameterModel.go
new file mode 100644
index 00000000..d4fad2c2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UpdateWindowsDeviceAccountActionParameterModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/UploadSessionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UploadSessionModel.go
new file mode 100644
index 00000000..dfb43012
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UploadSessionModel.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/matterbridge/msgraph.go/beta/UsageAuthMethodEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UsageAuthMethodEnum.go
new file mode 100644
index 00000000..1a5d212e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UsageAuthMethodEnum.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UsageAuthMethod undocumented
+type UsageAuthMethod int
+
+const (
+ // UsageAuthMethodVEmail undocumented
+ UsageAuthMethodVEmail UsageAuthMethod = 0
+ // UsageAuthMethodVMobileSMS undocumented
+ UsageAuthMethodVMobileSMS UsageAuthMethod = 1
+ // UsageAuthMethodVMobileCall undocumented
+ UsageAuthMethodVMobileCall UsageAuthMethod = 2
+ // UsageAuthMethodVOfficePhone undocumented
+ UsageAuthMethodVOfficePhone UsageAuthMethod = 3
+ // UsageAuthMethodVSecurityQuestion undocumented
+ UsageAuthMethodVSecurityQuestion UsageAuthMethod = 4
+ // UsageAuthMethodVAppNotification undocumented
+ UsageAuthMethodVAppNotification UsageAuthMethod = 5
+ // UsageAuthMethodVAppCode undocumented
+ UsageAuthMethodVAppCode UsageAuthMethod = 6
+ // UsageAuthMethodVAlternateMobileCall undocumented
+ UsageAuthMethodVAlternateMobileCall UsageAuthMethod = 7
+ // UsageAuthMethodVFido undocumented
+ UsageAuthMethodVFido UsageAuthMethod = 8
+ // UsageAuthMethodVAppPassword undocumented
+ UsageAuthMethodVAppPassword UsageAuthMethod = 9
+ // UsageAuthMethodVUnknownFutureValue undocumented
+ UsageAuthMethodVUnknownFutureValue UsageAuthMethod = 10
+)
+
+// UsageAuthMethodPEmail returns a pointer to UsageAuthMethodVEmail
+func UsageAuthMethodPEmail() *UsageAuthMethod {
+ v := UsageAuthMethodVEmail
+ return &v
+}
+
+// UsageAuthMethodPMobileSMS returns a pointer to UsageAuthMethodVMobileSMS
+func UsageAuthMethodPMobileSMS() *UsageAuthMethod {
+ v := UsageAuthMethodVMobileSMS
+ return &v
+}
+
+// UsageAuthMethodPMobileCall returns a pointer to UsageAuthMethodVMobileCall
+func UsageAuthMethodPMobileCall() *UsageAuthMethod {
+ v := UsageAuthMethodVMobileCall
+ return &v
+}
+
+// UsageAuthMethodPOfficePhone returns a pointer to UsageAuthMethodVOfficePhone
+func UsageAuthMethodPOfficePhone() *UsageAuthMethod {
+ v := UsageAuthMethodVOfficePhone
+ return &v
+}
+
+// UsageAuthMethodPSecurityQuestion returns a pointer to UsageAuthMethodVSecurityQuestion
+func UsageAuthMethodPSecurityQuestion() *UsageAuthMethod {
+ v := UsageAuthMethodVSecurityQuestion
+ return &v
+}
+
+// UsageAuthMethodPAppNotification returns a pointer to UsageAuthMethodVAppNotification
+func UsageAuthMethodPAppNotification() *UsageAuthMethod {
+ v := UsageAuthMethodVAppNotification
+ return &v
+}
+
+// UsageAuthMethodPAppCode returns a pointer to UsageAuthMethodVAppCode
+func UsageAuthMethodPAppCode() *UsageAuthMethod {
+ v := UsageAuthMethodVAppCode
+ return &v
+}
+
+// UsageAuthMethodPAlternateMobileCall returns a pointer to UsageAuthMethodVAlternateMobileCall
+func UsageAuthMethodPAlternateMobileCall() *UsageAuthMethod {
+ v := UsageAuthMethodVAlternateMobileCall
+ return &v
+}
+
+// UsageAuthMethodPFido returns a pointer to UsageAuthMethodVFido
+func UsageAuthMethodPFido() *UsageAuthMethod {
+ v := UsageAuthMethodVFido
+ return &v
+}
+
+// UsageAuthMethodPAppPassword returns a pointer to UsageAuthMethodVAppPassword
+func UsageAuthMethodPAppPassword() *UsageAuthMethod {
+ v := UsageAuthMethodVAppPassword
+ return &v
+}
+
+// UsageAuthMethodPUnknownFutureValue returns a pointer to UsageAuthMethodVUnknownFutureValue
+func UsageAuthMethodPUnknownFutureValue() *UsageAuthMethod {
+ v := UsageAuthMethodVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UsageDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UsageDetailsModel.go
new file mode 100644
index 00000000..5cecac71
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UsageDetailsModel.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/matterbridge/msgraph.go/beta/UsedInsightModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UsedInsightModel.go
new file mode 100644
index 00000000..98e415b6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UsedInsightModel.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/matterbridge/msgraph.go/beta/UsedInsightRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UsedInsightRequest.go
new file mode 100644
index 00000000..c9967c4c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UsedInsightRequest.go
@@ -0,0 +1,45 @@
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/UserAccountInformationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserAccountInformationModel.go
new file mode 100644
index 00000000..ee564f11
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserAccountInformationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserAccountInformationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserAccountInformationRequest.go
new file mode 100644
index 00000000..31a5de92
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserAccountInformationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserAccountModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserAccountModel.go
new file mode 100644
index 00000000..660b0756
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserAccountModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserAccountSecurityTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserAccountSecurityTypeEnum.go
new file mode 100644
index 00000000..53c210a1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserAccountSecurityTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserAccountSecurityType undocumented
+type UserAccountSecurityType int
+
+const (
+ // UserAccountSecurityTypeVUnknown undocumented
+ UserAccountSecurityTypeVUnknown UserAccountSecurityType = 0
+ // UserAccountSecurityTypeVStandard undocumented
+ UserAccountSecurityTypeVStandard UserAccountSecurityType = 1
+ // UserAccountSecurityTypeVPower undocumented
+ UserAccountSecurityTypeVPower UserAccountSecurityType = 2
+ // UserAccountSecurityTypeVAdministrator undocumented
+ UserAccountSecurityTypeVAdministrator UserAccountSecurityType = 3
+ // UserAccountSecurityTypeVUnknownFutureValue undocumented
+ UserAccountSecurityTypeVUnknownFutureValue UserAccountSecurityType = 127
+)
+
+// UserAccountSecurityTypePUnknown returns a pointer to UserAccountSecurityTypeVUnknown
+func UserAccountSecurityTypePUnknown() *UserAccountSecurityType {
+ v := UserAccountSecurityTypeVUnknown
+ return &v
+}
+
+// UserAccountSecurityTypePStandard returns a pointer to UserAccountSecurityTypeVStandard
+func UserAccountSecurityTypePStandard() *UserAccountSecurityType {
+ v := UserAccountSecurityTypeVStandard
+ return &v
+}
+
+// UserAccountSecurityTypePPower returns a pointer to UserAccountSecurityTypeVPower
+func UserAccountSecurityTypePPower() *UserAccountSecurityType {
+ v := UserAccountSecurityTypeVPower
+ return &v
+}
+
+// UserAccountSecurityTypePAdministrator returns a pointer to UserAccountSecurityTypeVAdministrator
+func UserAccountSecurityTypePAdministrator() *UserAccountSecurityType {
+ v := UserAccountSecurityTypeVAdministrator
+ return &v
+}
+
+// UserAccountSecurityTypePUnknownFutureValue returns a pointer to UserAccountSecurityTypeVUnknownFutureValue
+func UserAccountSecurityTypePUnknownFutureValue() *UserAccountSecurityType {
+ v := UserAccountSecurityTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserAction.go
new file mode 100644
index 00000000..be2e8068
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserAction.go
@@ -0,0 +1,564 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+ "time"
+
+ "github.com/matterbridge/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 *time.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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]MailTips, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]ConvertIDResult, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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/matterbridge/msgraph.go/beta/UserActivationCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserActivationCountsModel.go
new file mode 100644
index 00000000..25396b57
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserActivationCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UserActivationCounts undocumented
+type UserActivationCounts struct {
+ // Object is the base model of UserActivationCounts
+ Object
+ // ProductType undocumented
+ ProductType *string `json:"productType,omitempty"`
+ // LastActivatedDate undocumented
+ LastActivatedDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserActivityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserActivityModel.go
new file mode 100644
index 00000000..be1deda2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserActivityModel.go
@@ -0,0 +1,42 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "encoding/json"
+ "time"
+)
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserActivityRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserActivityRequest.go
new file mode 100644
index 00000000..77180051
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserActivityRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ActivityHistoryItem collection
+func (r *UserActivityHistoryItemsCollectionRequest) Get(ctx context.Context) ([]ActivityHistoryItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserAnalyticsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserAnalyticsModel.go
new file mode 100644
index 00000000..3cbdd322
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserAnalyticsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserAnalyticsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserAnalyticsRequest.go
new file mode 100644
index 00000000..f5117650
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserAnalyticsRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ActivityStatistics collection
+func (r *UserAnalyticsActivityStatisticsCollectionRequest) Get(ctx context.Context) ([]ActivityStatistics, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserAppInstallStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserAppInstallStatusModel.go
new file mode 100644
index 00000000..24ccb4b8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserAppInstallStatusModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserAppInstallStatusRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserAppInstallStatusRequest.go
new file mode 100644
index 00000000..95827d09
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserAppInstallStatusRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppInstallStatus collection
+func (r *UserAppInstallStatusDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]MobileAppInstallStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserConfigurationModel.go
new file mode 100644
index 00000000..9e089df4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserConfiguration undocumented
+type UserConfiguration struct {
+ // Entity is the base model of UserConfiguration
+ Entity
+ // BinaryData undocumented
+ BinaryData *Binary `json:"binaryData,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserConfigurationRequest.go
new file mode 100644
index 00000000..6f321ffe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserConfigurationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserCredentialUsageDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserCredentialUsageDetailsModel.go
new file mode 100644
index 00000000..7eb87d0f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserCredentialUsageDetailsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserCredentialUsageDetailsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserCredentialUsageDetailsRequest.go
new file mode 100644
index 00000000..dbe65ec4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserCredentialUsageDetailsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserEmailSourceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserEmailSourceEnum.go
new file mode 100644
index 00000000..0763aa18
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserEmailSourceEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserEmailSource undocumented
+type UserEmailSource int
+
+const (
+ // UserEmailSourceVUserPrincipalName undocumented
+ UserEmailSourceVUserPrincipalName UserEmailSource = 0
+ // UserEmailSourceVPrimarySMTPAddress undocumented
+ UserEmailSourceVPrimarySMTPAddress UserEmailSource = 1
+)
+
+// UserEmailSourcePUserPrincipalName returns a pointer to UserEmailSourceVUserPrincipalName
+func UserEmailSourcePUserPrincipalName() *UserEmailSource {
+ v := UserEmailSourceVUserPrincipalName
+ return &v
+}
+
+// UserEmailSourcePPrimarySMTPAddress returns a pointer to UserEmailSourceVPrimarySMTPAddress
+func UserEmailSourcePPrimarySMTPAddress() *UserEmailSource {
+ v := UserEmailSourceVPrimarySMTPAddress
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsBaselineModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsBaselineModel.go
new file mode 100644
index 00000000..04fb4838
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsBaselineModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsBaselineRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsBaselineRequest.go
new file mode 100644
index 00000000..1cf023e5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsBaselineRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsCategoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsCategoryModel.go
new file mode 100644
index 00000000..b9eacdd1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsCategoryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsCategoryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsCategoryRequest.go
new file mode 100644
index 00000000..c66f2dfd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsCategoryRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceModel.go
new file mode 100644
index 00000000..a540b6b0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceRequest.go
new file mode 100644
index 00000000..570333c3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryModel.go
new file mode 100644
index 00000000..bd5438cd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryRequest.go
new file mode 100644
index 00000000..4c54dad1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsHealthStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsHealthStateEnum.go
new file mode 100644
index 00000000..f48586c3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsHealthStateEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserExperienceAnalyticsHealthState undocumented
+type UserExperienceAnalyticsHealthState int
+
+const (
+ // UserExperienceAnalyticsHealthStateVUnknown undocumented
+ UserExperienceAnalyticsHealthStateVUnknown UserExperienceAnalyticsHealthState = 0
+ // UserExperienceAnalyticsHealthStateVInsufficientData undocumented
+ UserExperienceAnalyticsHealthStateVInsufficientData UserExperienceAnalyticsHealthState = 1
+ // UserExperienceAnalyticsHealthStateVNeedsAttention undocumented
+ UserExperienceAnalyticsHealthStateVNeedsAttention UserExperienceAnalyticsHealthState = 2
+ // UserExperienceAnalyticsHealthStateVMeetingGoals undocumented
+ UserExperienceAnalyticsHealthStateVMeetingGoals UserExperienceAnalyticsHealthState = 3
+)
+
+// UserExperienceAnalyticsHealthStatePUnknown returns a pointer to UserExperienceAnalyticsHealthStateVUnknown
+func UserExperienceAnalyticsHealthStatePUnknown() *UserExperienceAnalyticsHealthState {
+ v := UserExperienceAnalyticsHealthStateVUnknown
+ return &v
+}
+
+// UserExperienceAnalyticsHealthStatePInsufficientData returns a pointer to UserExperienceAnalyticsHealthStateVInsufficientData
+func UserExperienceAnalyticsHealthStatePInsufficientData() *UserExperienceAnalyticsHealthState {
+ v := UserExperienceAnalyticsHealthStateVInsufficientData
+ return &v
+}
+
+// UserExperienceAnalyticsHealthStatePNeedsAttention returns a pointer to UserExperienceAnalyticsHealthStateVNeedsAttention
+func UserExperienceAnalyticsHealthStatePNeedsAttention() *UserExperienceAnalyticsHealthState {
+ v := UserExperienceAnalyticsHealthStateVNeedsAttention
+ return &v
+}
+
+// UserExperienceAnalyticsHealthStatePMeetingGoals returns a pointer to UserExperienceAnalyticsHealthStateVMeetingGoals
+func UserExperienceAnalyticsHealthStatePMeetingGoals() *UserExperienceAnalyticsHealthState {
+ v := UserExperienceAnalyticsHealthStateVMeetingGoals
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightModel.go
new file mode 100644
index 00000000..6c9657fc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightSeverityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightSeverityEnum.go
new file mode 100644
index 00000000..b6bc5962
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightSeverityEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserExperienceAnalyticsInsightSeverity undocumented
+type UserExperienceAnalyticsInsightSeverity int
+
+const (
+ // UserExperienceAnalyticsInsightSeverityVNone undocumented
+ UserExperienceAnalyticsInsightSeverityVNone UserExperienceAnalyticsInsightSeverity = 0
+ // UserExperienceAnalyticsInsightSeverityVInformational undocumented
+ UserExperienceAnalyticsInsightSeverityVInformational UserExperienceAnalyticsInsightSeverity = 1
+ // UserExperienceAnalyticsInsightSeverityVWarning undocumented
+ UserExperienceAnalyticsInsightSeverityVWarning UserExperienceAnalyticsInsightSeverity = 2
+ // UserExperienceAnalyticsInsightSeverityVError undocumented
+ UserExperienceAnalyticsInsightSeverityVError UserExperienceAnalyticsInsightSeverity = 3
+)
+
+// UserExperienceAnalyticsInsightSeverityPNone returns a pointer to UserExperienceAnalyticsInsightSeverityVNone
+func UserExperienceAnalyticsInsightSeverityPNone() *UserExperienceAnalyticsInsightSeverity {
+ v := UserExperienceAnalyticsInsightSeverityVNone
+ return &v
+}
+
+// UserExperienceAnalyticsInsightSeverityPInformational returns a pointer to UserExperienceAnalyticsInsightSeverityVInformational
+func UserExperienceAnalyticsInsightSeverityPInformational() *UserExperienceAnalyticsInsightSeverity {
+ v := UserExperienceAnalyticsInsightSeverityVInformational
+ return &v
+}
+
+// UserExperienceAnalyticsInsightSeverityPWarning returns a pointer to UserExperienceAnalyticsInsightSeverityVWarning
+func UserExperienceAnalyticsInsightSeverityPWarning() *UserExperienceAnalyticsInsightSeverity {
+ v := UserExperienceAnalyticsInsightSeverityVWarning
+ return &v
+}
+
+// UserExperienceAnalyticsInsightSeverityPError returns a pointer to UserExperienceAnalyticsInsightSeverityVError
+func UserExperienceAnalyticsInsightSeverityPError() *UserExperienceAnalyticsInsightSeverity {
+ v := UserExperienceAnalyticsInsightSeverityVError
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightValueModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightValueModel.go
new file mode 100644
index 00000000..9e5ce7de
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightValueModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserExperienceAnalyticsInsightValue undocumented
+type UserExperienceAnalyticsInsightValue struct {
+ // Object is the base model of UserExperienceAnalyticsInsightValue
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsMetricModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsMetricModel.go
new file mode 100644
index 00000000..3d975361
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsMetricModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsMetricRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsMetricRequest.go
new file mode 100644
index 00000000..1859d91b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsMetricRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsOverviewModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsOverviewModel.go
new file mode 100644
index 00000000..2975d1c4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsOverviewModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsOverviewRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsOverviewRequest.go
new file mode 100644
index 00000000..feb52084
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsOverviewRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryModel.go
new file mode 100644
index 00000000..bb589447
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryRequest.go
new file mode 100644
index 00000000..a0f14237
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsSummarizedByEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsSummarizedByEnum.go
new file mode 100644
index 00000000..8ecb5586
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsSummarizedByEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserExperienceAnalyticsSummarizedBy undocumented
+type UserExperienceAnalyticsSummarizedBy int
+
+const (
+ // UserExperienceAnalyticsSummarizedByVNone undocumented
+ UserExperienceAnalyticsSummarizedByVNone UserExperienceAnalyticsSummarizedBy = 0
+ // UserExperienceAnalyticsSummarizedByVModel undocumented
+ UserExperienceAnalyticsSummarizedByVModel UserExperienceAnalyticsSummarizedBy = 1
+ // UserExperienceAnalyticsSummarizedByVAllRegressions undocumented
+ UserExperienceAnalyticsSummarizedByVAllRegressions UserExperienceAnalyticsSummarizedBy = 3
+ // UserExperienceAnalyticsSummarizedByVModelRegression undocumented
+ UserExperienceAnalyticsSummarizedByVModelRegression UserExperienceAnalyticsSummarizedBy = 4
+ // UserExperienceAnalyticsSummarizedByVManufacturerRegression undocumented
+ UserExperienceAnalyticsSummarizedByVManufacturerRegression UserExperienceAnalyticsSummarizedBy = 5
+ // UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression undocumented
+ UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression UserExperienceAnalyticsSummarizedBy = 6
+)
+
+// UserExperienceAnalyticsSummarizedByPNone returns a pointer to UserExperienceAnalyticsSummarizedByVNone
+func UserExperienceAnalyticsSummarizedByPNone() *UserExperienceAnalyticsSummarizedBy {
+ v := UserExperienceAnalyticsSummarizedByVNone
+ return &v
+}
+
+// UserExperienceAnalyticsSummarizedByPModel returns a pointer to UserExperienceAnalyticsSummarizedByVModel
+func UserExperienceAnalyticsSummarizedByPModel() *UserExperienceAnalyticsSummarizedBy {
+ v := UserExperienceAnalyticsSummarizedByVModel
+ return &v
+}
+
+// UserExperienceAnalyticsSummarizedByPAllRegressions returns a pointer to UserExperienceAnalyticsSummarizedByVAllRegressions
+func UserExperienceAnalyticsSummarizedByPAllRegressions() *UserExperienceAnalyticsSummarizedBy {
+ v := UserExperienceAnalyticsSummarizedByVAllRegressions
+ return &v
+}
+
+// UserExperienceAnalyticsSummarizedByPModelRegression returns a pointer to UserExperienceAnalyticsSummarizedByVModelRegression
+func UserExperienceAnalyticsSummarizedByPModelRegression() *UserExperienceAnalyticsSummarizedBy {
+ v := UserExperienceAnalyticsSummarizedByVModelRegression
+ return &v
+}
+
+// UserExperienceAnalyticsSummarizedByPManufacturerRegression returns a pointer to UserExperienceAnalyticsSummarizedByVManufacturerRegression
+func UserExperienceAnalyticsSummarizedByPManufacturerRegression() *UserExperienceAnalyticsSummarizedBy {
+ v := UserExperienceAnalyticsSummarizedByVManufacturerRegression
+ return &v
+}
+
+// UserExperienceAnalyticsSummarizedByPOperatingSystemVersionRegression returns a pointer to UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression
+func UserExperienceAnalyticsSummarizedByPOperatingSystemVersionRegression() *UserExperienceAnalyticsSummarizedBy {
+ v := UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserFlowTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserFlowTypeEnum.go
new file mode 100644
index 00000000..a0e6efb8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserFlowTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserFlowType undocumented
+type UserFlowType int
+
+const (
+ // UserFlowTypeVSignUp undocumented
+ UserFlowTypeVSignUp UserFlowType = 1
+ // UserFlowTypeVSignIn undocumented
+ UserFlowTypeVSignIn UserFlowType = 2
+ // UserFlowTypeVSignUpOrSignIn undocumented
+ UserFlowTypeVSignUpOrSignIn UserFlowType = 3
+ // UserFlowTypeVPasswordReset undocumented
+ UserFlowTypeVPasswordReset UserFlowType = 4
+ // UserFlowTypeVProfileUpdate undocumented
+ UserFlowTypeVProfileUpdate UserFlowType = 5
+ // UserFlowTypeVResourceOwner undocumented
+ UserFlowTypeVResourceOwner UserFlowType = 6
+ // UserFlowTypeVUnknownFutureValue undocumented
+ UserFlowTypeVUnknownFutureValue UserFlowType = 7
+)
+
+// UserFlowTypePSignUp returns a pointer to UserFlowTypeVSignUp
+func UserFlowTypePSignUp() *UserFlowType {
+ v := UserFlowTypeVSignUp
+ return &v
+}
+
+// UserFlowTypePSignIn returns a pointer to UserFlowTypeVSignIn
+func UserFlowTypePSignIn() *UserFlowType {
+ v := UserFlowTypeVSignIn
+ return &v
+}
+
+// UserFlowTypePSignUpOrSignIn returns a pointer to UserFlowTypeVSignUpOrSignIn
+func UserFlowTypePSignUpOrSignIn() *UserFlowType {
+ v := UserFlowTypeVSignUpOrSignIn
+ return &v
+}
+
+// UserFlowTypePPasswordReset returns a pointer to UserFlowTypeVPasswordReset
+func UserFlowTypePPasswordReset() *UserFlowType {
+ v := UserFlowTypeVPasswordReset
+ return &v
+}
+
+// UserFlowTypePProfileUpdate returns a pointer to UserFlowTypeVProfileUpdate
+func UserFlowTypePProfileUpdate() *UserFlowType {
+ v := UserFlowTypeVProfileUpdate
+ return &v
+}
+
+// UserFlowTypePResourceOwner returns a pointer to UserFlowTypeVResourceOwner
+func UserFlowTypePResourceOwner() *UserFlowType {
+ v := UserFlowTypeVResourceOwner
+ return &v
+}
+
+// UserFlowTypePUnknownFutureValue returns a pointer to UserFlowTypeVUnknownFutureValue
+func UserFlowTypePUnknownFutureValue() *UserFlowType {
+ v := UserFlowTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserGovernanceCriteriaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserGovernanceCriteriaModel.go
new file mode 100644
index 00000000..22f227eb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserGovernanceCriteriaModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserGovernanceCriteria undocumented
+type UserGovernanceCriteria struct {
+ // GovernanceCriteria is the base model of UserGovernanceCriteria
+ GovernanceCriteria
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserIdentityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserIdentityModel.go
new file mode 100644
index 00000000..3c72aa4f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserIdentityModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserIdentityTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserIdentityTypeEnum.go
new file mode 100644
index 00000000..da42f5e3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserIdentityTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserIdentityType undocumented
+type UserIdentityType int
+
+const (
+ // UserIdentityTypeVAadUser undocumented
+ UserIdentityTypeVAadUser UserIdentityType = 0
+ // UserIdentityTypeVOnPremiseAadUser undocumented
+ UserIdentityTypeVOnPremiseAadUser UserIdentityType = 1
+ // UserIdentityTypeVAnonymousGuest undocumented
+ UserIdentityTypeVAnonymousGuest UserIdentityType = 2
+ // UserIdentityTypeVFederatedUser undocumented
+ UserIdentityTypeVFederatedUser UserIdentityType = 3
+)
+
+// UserIdentityTypePAadUser returns a pointer to UserIdentityTypeVAadUser
+func UserIdentityTypePAadUser() *UserIdentityType {
+ v := UserIdentityTypeVAadUser
+ return &v
+}
+
+// UserIdentityTypePOnPremiseAadUser returns a pointer to UserIdentityTypeVOnPremiseAadUser
+func UserIdentityTypePOnPremiseAadUser() *UserIdentityType {
+ v := UserIdentityTypeVOnPremiseAadUser
+ return &v
+}
+
+// UserIdentityTypePAnonymousGuest returns a pointer to UserIdentityTypeVAnonymousGuest
+func UserIdentityTypePAnonymousGuest() *UserIdentityType {
+ v := UserIdentityTypeVAnonymousGuest
+ return &v
+}
+
+// UserIdentityTypePFederatedUser returns a pointer to UserIdentityTypeVFederatedUser
+func UserIdentityTypePFederatedUser() *UserIdentityType {
+ v := UserIdentityTypeVFederatedUser
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserInstallStateSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserInstallStateSummaryModel.go
new file mode 100644
index 00000000..1af64d51
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserInstallStateSummaryModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserInstallStateSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserInstallStateSummaryRequest.go
new file mode 100644
index 00000000..15a9f36f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserInstallStateSummaryRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceInstallState collection
+func (r *UserInstallStateSummaryDeviceStatesCollectionRequest) Get(ctx context.Context) ([]DeviceInstallState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserModel.go
new file mode 100644
index 00000000..794f09bb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserModel.go
@@ -0,0 +1,259 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserPFXCertificateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserPFXCertificateModel.go
new file mode 100644
index 00000000..0c86a981
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserPFXCertificateModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserPFXCertificateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserPFXCertificateRequest.go
new file mode 100644
index 00000000..708c2d72
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserPFXCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserPfxIntendedPurposeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserPfxIntendedPurposeEnum.go
new file mode 100644
index 00000000..6d2515cb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserPfxIntendedPurposeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserPfxIntendedPurpose undocumented
+type UserPfxIntendedPurpose int
+
+const (
+ // UserPfxIntendedPurposeVUnassigned undocumented
+ UserPfxIntendedPurposeVUnassigned UserPfxIntendedPurpose = 0
+ // UserPfxIntendedPurposeVSmimeEncryption undocumented
+ UserPfxIntendedPurposeVSmimeEncryption UserPfxIntendedPurpose = 1
+ // UserPfxIntendedPurposeVSmimeSigning undocumented
+ UserPfxIntendedPurposeVSmimeSigning UserPfxIntendedPurpose = 2
+ // UserPfxIntendedPurposeVVpn undocumented
+ UserPfxIntendedPurposeVVpn UserPfxIntendedPurpose = 4
+ // UserPfxIntendedPurposeVWifi undocumented
+ UserPfxIntendedPurposeVWifi UserPfxIntendedPurpose = 8
+)
+
+// UserPfxIntendedPurposePUnassigned returns a pointer to UserPfxIntendedPurposeVUnassigned
+func UserPfxIntendedPurposePUnassigned() *UserPfxIntendedPurpose {
+ v := UserPfxIntendedPurposeVUnassigned
+ return &v
+}
+
+// UserPfxIntendedPurposePSmimeEncryption returns a pointer to UserPfxIntendedPurposeVSmimeEncryption
+func UserPfxIntendedPurposePSmimeEncryption() *UserPfxIntendedPurpose {
+ v := UserPfxIntendedPurposeVSmimeEncryption
+ return &v
+}
+
+// UserPfxIntendedPurposePSmimeSigning returns a pointer to UserPfxIntendedPurposeVSmimeSigning
+func UserPfxIntendedPurposePSmimeSigning() *UserPfxIntendedPurpose {
+ v := UserPfxIntendedPurposeVSmimeSigning
+ return &v
+}
+
+// UserPfxIntendedPurposePVpn returns a pointer to UserPfxIntendedPurposeVVpn
+func UserPfxIntendedPurposePVpn() *UserPfxIntendedPurpose {
+ v := UserPfxIntendedPurposeVVpn
+ return &v
+}
+
+// UserPfxIntendedPurposePWifi returns a pointer to UserPfxIntendedPurposeVWifi
+func UserPfxIntendedPurposePWifi() *UserPfxIntendedPurpose {
+ v := UserPfxIntendedPurposeVWifi
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserPfxPaddingSchemeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserPfxPaddingSchemeEnum.go
new file mode 100644
index 00000000..4e135367
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserPfxPaddingSchemeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserPfxPaddingScheme undocumented
+type UserPfxPaddingScheme int
+
+const (
+ // UserPfxPaddingSchemeVNone undocumented
+ UserPfxPaddingSchemeVNone UserPfxPaddingScheme = 0
+ // UserPfxPaddingSchemeVPkcs1 undocumented
+ UserPfxPaddingSchemeVPkcs1 UserPfxPaddingScheme = 1
+ // UserPfxPaddingSchemeVOaepSha1 undocumented
+ UserPfxPaddingSchemeVOaepSha1 UserPfxPaddingScheme = 2
+ // UserPfxPaddingSchemeVOaepSha256 undocumented
+ UserPfxPaddingSchemeVOaepSha256 UserPfxPaddingScheme = 3
+ // UserPfxPaddingSchemeVOaepSha384 undocumented
+ UserPfxPaddingSchemeVOaepSha384 UserPfxPaddingScheme = 4
+ // UserPfxPaddingSchemeVOaepSha512 undocumented
+ UserPfxPaddingSchemeVOaepSha512 UserPfxPaddingScheme = 5
+)
+
+// UserPfxPaddingSchemePNone returns a pointer to UserPfxPaddingSchemeVNone
+func UserPfxPaddingSchemePNone() *UserPfxPaddingScheme {
+ v := UserPfxPaddingSchemeVNone
+ return &v
+}
+
+// UserPfxPaddingSchemePPkcs1 returns a pointer to UserPfxPaddingSchemeVPkcs1
+func UserPfxPaddingSchemePPkcs1() *UserPfxPaddingScheme {
+ v := UserPfxPaddingSchemeVPkcs1
+ return &v
+}
+
+// UserPfxPaddingSchemePOaepSha1 returns a pointer to UserPfxPaddingSchemeVOaepSha1
+func UserPfxPaddingSchemePOaepSha1() *UserPfxPaddingScheme {
+ v := UserPfxPaddingSchemeVOaepSha1
+ return &v
+}
+
+// UserPfxPaddingSchemePOaepSha256 returns a pointer to UserPfxPaddingSchemeVOaepSha256
+func UserPfxPaddingSchemePOaepSha256() *UserPfxPaddingScheme {
+ v := UserPfxPaddingSchemeVOaepSha256
+ return &v
+}
+
+// UserPfxPaddingSchemePOaepSha384 returns a pointer to UserPfxPaddingSchemeVOaepSha384
+func UserPfxPaddingSchemePOaepSha384() *UserPfxPaddingScheme {
+ v := UserPfxPaddingSchemeVOaepSha384
+ return &v
+}
+
+// UserPfxPaddingSchemePOaepSha512 returns a pointer to UserPfxPaddingSchemeVOaepSha512
+func UserPfxPaddingSchemePOaepSha512() *UserPfxPaddingScheme {
+ v := UserPfxPaddingSchemeVOaepSha512
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserRegistrationCountModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserRegistrationCountModel.go
new file mode 100644
index 00000000..84463e1b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserRegistrationCountModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserRequest.go
new file mode 100644
index 00000000..55de896d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserRequest.go
@@ -0,0 +1,3722 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserActivity collection
+func (r *UserActivitiesCollectionRequest) Get(ctx context.Context) ([]UserActivity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AgreementAcceptance collection
+func (r *UserAgreementAcceptancesCollectionRequest) Get(ctx context.Context) ([]AgreementAcceptance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppRoleAssignment collection
+func (r *UserAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CalendarGroup collection
+func (r *UserCalendarGroupsCollectionRequest) Get(ctx context.Context) ([]CalendarGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Event collection
+func (r *UserCalendarViewCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Calendar collection
+func (r *UserCalendarsCollectionRequest) Get(ctx context.Context) ([]Calendar, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Chat collection
+func (r *UserChatsCollectionRequest) Get(ctx context.Context) ([]Chat, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ContactFolder collection
+func (r *UserContactFoldersCollectionRequest) Get(ctx context.Context) ([]ContactFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Contact collection
+func (r *UserContactsCollectionRequest) Get(ctx context.Context) ([]Contact, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserCreatedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceEnrollmentConfiguration collection
+func (r *UserDeviceEnrollmentConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceEnrollmentConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementTroubleshootingEvent collection
+func (r *UserDeviceManagementTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTroubleshootingEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Device collection
+func (r *UserDevicesCollectionRequest) Get(ctx context.Context) ([]Device, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserDirectReportsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Drive collection
+func (r *UserDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Event collection
+func (r *UserEventsCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *UserExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Site collection
+func (r *UserFollowedSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Group collection
+func (r *UserJoinedGroupsCollectionRequest) Get(ctx context.Context) ([]Group, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Team collection
+func (r *UserJoinedTeamsCollectionRequest) Get(ctx context.Context) ([]Team, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for LicenseDetails collection
+func (r *UserLicenseDetailsCollectionRequest) Get(ctx context.Context) ([]LicenseDetails, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MailFolder collection
+func (r *UserMailFoldersCollectionRequest) Get(ctx context.Context) ([]MailFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAppRegistration collection
+func (r *UserManagedAppRegistrationsCollectionRequest) Get(ctx context.Context) ([]ManagedAppRegistration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDevice collection
+func (r *UserManagedDevicesCollectionRequest) Get(ctx context.Context) ([]ManagedDevice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Message collection
+func (r *UserMessagesCollectionRequest) Get(ctx context.Context) ([]Message, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppIntentAndState collection
+func (r *UserMobileAppIntentAndStatesCollectionRequest) Get(ctx context.Context) ([]MobileAppIntentAndState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppTroubleshootingEvent collection
+func (r *UserMobileAppTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]MobileAppTroubleshootingEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Notification collection
+func (r *UserNotificationsCollectionRequest) Get(ctx context.Context) ([]Notification, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnlineMeeting collection
+func (r *UserOnlineMeetingsCollectionRequest) Get(ctx context.Context) ([]OnlineMeeting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserOwnedDevicesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserOwnedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Person collection
+func (r *UserPeopleCollectionRequest) Get(ctx context.Context) ([]Person, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProfilePhoto collection
+func (r *UserPhotosCollectionRequest) Get(ctx context.Context) ([]ProfilePhoto, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserRegisteredDevicesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ScopedRoleMembership collection
+func (r *UserScopedRoleMemberOfCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsInformationProtectionDeviceRegistration collection
+func (r *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionDeviceRegistration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserRiskLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserRiskLevelEnum.go
new file mode 100644
index 00000000..d0ea360a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserRiskLevelEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserRiskLevel undocumented
+type UserRiskLevel int
+
+const (
+ // UserRiskLevelVUnknown undocumented
+ UserRiskLevelVUnknown UserRiskLevel = 0
+ // UserRiskLevelVNone undocumented
+ UserRiskLevelVNone UserRiskLevel = 1
+ // UserRiskLevelVLow undocumented
+ UserRiskLevelVLow UserRiskLevel = 2
+ // UserRiskLevelVMedium undocumented
+ UserRiskLevelVMedium UserRiskLevel = 3
+ // UserRiskLevelVHigh undocumented
+ UserRiskLevelVHigh UserRiskLevel = 4
+)
+
+// UserRiskLevelPUnknown returns a pointer to UserRiskLevelVUnknown
+func UserRiskLevelPUnknown() *UserRiskLevel {
+ v := UserRiskLevelVUnknown
+ return &v
+}
+
+// UserRiskLevelPNone returns a pointer to UserRiskLevelVNone
+func UserRiskLevelPNone() *UserRiskLevel {
+ v := UserRiskLevelVNone
+ return &v
+}
+
+// UserRiskLevelPLow returns a pointer to UserRiskLevelVLow
+func UserRiskLevelPLow() *UserRiskLevel {
+ v := UserRiskLevelVLow
+ return &v
+}
+
+// UserRiskLevelPMedium returns a pointer to UserRiskLevelVMedium
+func UserRiskLevelPMedium() *UserRiskLevel {
+ v := UserRiskLevelVMedium
+ return &v
+}
+
+// UserRiskLevelPHigh returns a pointer to UserRiskLevelVHigh
+func UserRiskLevelPHigh() *UserRiskLevel {
+ v := UserRiskLevelVHigh
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityProfileModel.go
new file mode 100644
index 00000000..6c31a390
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityProfileModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityProfileRequest.go
new file mode 100644
index 00000000..d0e2f3d9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityStateModel.go
new file mode 100644
index 00000000..130563b5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityStateModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserSettingsModel.go
new file mode 100644
index 00000000..3c9fdfee
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserSettingsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserSettingsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserSettingsRequest.go
new file mode 100644
index 00000000..6c587857
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserSettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UserTeamworkModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserTeamworkModel.go
new file mode 100644
index 00000000..aefba4a3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserTeamworkModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/UserTeamworkRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UserTeamworkRequest.go
new file mode 100644
index 00000000..5f8f7488
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UserTeamworkRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsAppInstallation collection
+func (r *UserTeamworkInstalledAppsCollectionRequest) Get(ctx context.Context) ([]TeamsAppInstallation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/UsernameSourceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UsernameSourceEnum.go
new file mode 100644
index 00000000..5b6f6520
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/UsernameSourceEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UsernameSource undocumented
+type UsernameSource int
+
+const (
+ // UsernameSourceVUserPrincipalName undocumented
+ UsernameSourceVUserPrincipalName UsernameSource = 0
+ // UsernameSourceVPrimarySMTPAddress undocumented
+ UsernameSourceVPrimarySMTPAddress UsernameSource = 1
+ // UsernameSourceVSamAccountName undocumented
+ UsernameSourceVSamAccountName UsernameSource = 2
+)
+
+// UsernameSourcePUserPrincipalName returns a pointer to UsernameSourceVUserPrincipalName
+func UsernameSourcePUserPrincipalName() *UsernameSource {
+ v := UsernameSourceVUserPrincipalName
+ return &v
+}
+
+// UsernameSourcePPrimarySMTPAddress returns a pointer to UsernameSourceVPrimarySMTPAddress
+func UsernameSourcePPrimarySMTPAddress() *UsernameSource {
+ v := UsernameSourceVPrimarySMTPAddress
+ return &v
+}
+
+// UsernameSourcePSamAccountName returns a pointer to UsernameSourceVSamAccountName
+func UsernameSourcePSamAccountName() *UsernameSource {
+ v := UsernameSourceVSamAccountName
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VariableManagementConditionExpressionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VariableManagementConditionExpressionModel.go
new file mode 100644
index 00000000..375fd930
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VariableManagementConditionExpressionModel.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/matterbridge/msgraph.go/beta/VendorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VendorModel.go
new file mode 100644
index 00000000..e5789555
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VendorModel.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/matterbridge/msgraph.go/beta/VendorRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/VendorRequest.go
new file mode 100644
index 00000000..ca83e934
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VendorRequest.go
@@ -0,0 +1,160 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Picture collection
+func (r *VendorPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/VerifiedDomainModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VerifiedDomainModel.go
new file mode 100644
index 00000000..dca1549e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VerifiedDomainModel.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/matterbridge/msgraph.go/beta/VersionActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VersionActionModel.go
new file mode 100644
index 00000000..7cbb8695
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VersionActionModel.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/matterbridge/msgraph.go/beta/VideoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VideoModel.go
new file mode 100644
index 00000000..ffebe388
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VideoModel.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/matterbridge/msgraph.go/beta/VisibilitySettingEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VisibilitySettingEnum.go
new file mode 100644
index 00000000..924cd51b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VisibilitySettingEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VisibilitySetting undocumented
+type VisibilitySetting int
+
+const (
+ // VisibilitySettingVNotConfigured undocumented
+ VisibilitySettingVNotConfigured VisibilitySetting = 0
+ // VisibilitySettingVHide undocumented
+ VisibilitySettingVHide VisibilitySetting = 1
+ // VisibilitySettingVShow undocumented
+ VisibilitySettingVShow VisibilitySetting = 2
+)
+
+// VisibilitySettingPNotConfigured returns a pointer to VisibilitySettingVNotConfigured
+func VisibilitySettingPNotConfigured() *VisibilitySetting {
+ v := VisibilitySettingVNotConfigured
+ return &v
+}
+
+// VisibilitySettingPHide returns a pointer to VisibilitySettingVHide
+func VisibilitySettingPHide() *VisibilitySetting {
+ v := VisibilitySettingVHide
+ return &v
+}
+
+// VisibilitySettingPShow returns a pointer to VisibilitySettingVShow
+func VisibilitySettingPShow() *VisibilitySetting {
+ v := VisibilitySettingVShow
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VisualInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VisualInfoModel.go
new file mode 100644
index 00000000..a299cc86
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VisualInfoModel.go
@@ -0,0 +1,21 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VisualPropertiesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VisualPropertiesModel.go
new file mode 100644
index 00000000..262acf40
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VisualPropertiesModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/VpnAuthenticationMethodEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnAuthenticationMethodEnum.go
new file mode 100644
index 00000000..6334ed63
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnAuthenticationMethodEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnAuthenticationMethod undocumented
+type VpnAuthenticationMethod int
+
+const (
+ // VpnAuthenticationMethodVCertificate undocumented
+ VpnAuthenticationMethodVCertificate VpnAuthenticationMethod = 0
+ // VpnAuthenticationMethodVUsernameAndPassword undocumented
+ VpnAuthenticationMethodVUsernameAndPassword VpnAuthenticationMethod = 1
+ // VpnAuthenticationMethodVSharedSecret undocumented
+ VpnAuthenticationMethodVSharedSecret VpnAuthenticationMethod = 2
+ // VpnAuthenticationMethodVDerivedCredential undocumented
+ VpnAuthenticationMethodVDerivedCredential VpnAuthenticationMethod = 3
+)
+
+// VpnAuthenticationMethodPCertificate returns a pointer to VpnAuthenticationMethodVCertificate
+func VpnAuthenticationMethodPCertificate() *VpnAuthenticationMethod {
+ v := VpnAuthenticationMethodVCertificate
+ return &v
+}
+
+// VpnAuthenticationMethodPUsernameAndPassword returns a pointer to VpnAuthenticationMethodVUsernameAndPassword
+func VpnAuthenticationMethodPUsernameAndPassword() *VpnAuthenticationMethod {
+ v := VpnAuthenticationMethodVUsernameAndPassword
+ return &v
+}
+
+// VpnAuthenticationMethodPSharedSecret returns a pointer to VpnAuthenticationMethodVSharedSecret
+func VpnAuthenticationMethodPSharedSecret() *VpnAuthenticationMethod {
+ v := VpnAuthenticationMethodVSharedSecret
+ return &v
+}
+
+// VpnAuthenticationMethodPDerivedCredential returns a pointer to VpnAuthenticationMethodVDerivedCredential
+func VpnAuthenticationMethodPDerivedCredential() *VpnAuthenticationMethod {
+ v := VpnAuthenticationMethodVDerivedCredential
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnClientAuthenticationTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnClientAuthenticationTypeEnum.go
new file mode 100644
index 00000000..60304699
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnClientAuthenticationTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnClientAuthenticationType undocumented
+type VpnClientAuthenticationType int
+
+const (
+ // VpnClientAuthenticationTypeVUserAuthentication undocumented
+ VpnClientAuthenticationTypeVUserAuthentication VpnClientAuthenticationType = 0
+ // VpnClientAuthenticationTypeVDeviceAuthentication undocumented
+ VpnClientAuthenticationTypeVDeviceAuthentication VpnClientAuthenticationType = 1
+)
+
+// VpnClientAuthenticationTypePUserAuthentication returns a pointer to VpnClientAuthenticationTypeVUserAuthentication
+func VpnClientAuthenticationTypePUserAuthentication() *VpnClientAuthenticationType {
+ v := VpnClientAuthenticationTypeVUserAuthentication
+ return &v
+}
+
+// VpnClientAuthenticationTypePDeviceAuthentication returns a pointer to VpnClientAuthenticationTypeVDeviceAuthentication
+func VpnClientAuthenticationTypePDeviceAuthentication() *VpnClientAuthenticationType {
+ v := VpnClientAuthenticationTypeVDeviceAuthentication
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnConfigurationModel.go
new file mode 100644
index 00000000..97fec24d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnConfigurationModel.go
@@ -0,0 +1,19 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnDNSRuleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnDNSRuleModel.go
new file mode 100644
index 00000000..553aac66
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnDNSRuleModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnDeadPeerDetectionRateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnDeadPeerDetectionRateEnum.go
new file mode 100644
index 00000000..62a5a302
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnDeadPeerDetectionRateEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnDeadPeerDetectionRate undocumented
+type VpnDeadPeerDetectionRate int
+
+const (
+ // VpnDeadPeerDetectionRateVMedium undocumented
+ VpnDeadPeerDetectionRateVMedium VpnDeadPeerDetectionRate = 0
+ // VpnDeadPeerDetectionRateVNone undocumented
+ VpnDeadPeerDetectionRateVNone VpnDeadPeerDetectionRate = 1
+ // VpnDeadPeerDetectionRateVLow undocumented
+ VpnDeadPeerDetectionRateVLow VpnDeadPeerDetectionRate = 2
+ // VpnDeadPeerDetectionRateVHigh undocumented
+ VpnDeadPeerDetectionRateVHigh VpnDeadPeerDetectionRate = 3
+)
+
+// VpnDeadPeerDetectionRatePMedium returns a pointer to VpnDeadPeerDetectionRateVMedium
+func VpnDeadPeerDetectionRatePMedium() *VpnDeadPeerDetectionRate {
+ v := VpnDeadPeerDetectionRateVMedium
+ return &v
+}
+
+// VpnDeadPeerDetectionRatePNone returns a pointer to VpnDeadPeerDetectionRateVNone
+func VpnDeadPeerDetectionRatePNone() *VpnDeadPeerDetectionRate {
+ v := VpnDeadPeerDetectionRateVNone
+ return &v
+}
+
+// VpnDeadPeerDetectionRatePLow returns a pointer to VpnDeadPeerDetectionRateVLow
+func VpnDeadPeerDetectionRatePLow() *VpnDeadPeerDetectionRate {
+ v := VpnDeadPeerDetectionRateVLow
+ return &v
+}
+
+// VpnDeadPeerDetectionRatePHigh returns a pointer to VpnDeadPeerDetectionRateVHigh
+func VpnDeadPeerDetectionRatePHigh() *VpnDeadPeerDetectionRate {
+ v := VpnDeadPeerDetectionRateVHigh
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnEncryptionAlgorithmTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnEncryptionAlgorithmTypeEnum.go
new file mode 100644
index 00000000..7b373238
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnEncryptionAlgorithmTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnEncryptionAlgorithmType undocumented
+type VpnEncryptionAlgorithmType int
+
+const (
+ // VpnEncryptionAlgorithmTypeVAes256 undocumented
+ VpnEncryptionAlgorithmTypeVAes256 VpnEncryptionAlgorithmType = 0
+ // VpnEncryptionAlgorithmTypeVDes undocumented
+ VpnEncryptionAlgorithmTypeVDes VpnEncryptionAlgorithmType = 1
+ // VpnEncryptionAlgorithmTypeVTripleDes undocumented
+ VpnEncryptionAlgorithmTypeVTripleDes VpnEncryptionAlgorithmType = 2
+ // VpnEncryptionAlgorithmTypeVAes128 undocumented
+ VpnEncryptionAlgorithmTypeVAes128 VpnEncryptionAlgorithmType = 3
+ // VpnEncryptionAlgorithmTypeVAes128Gcm undocumented
+ VpnEncryptionAlgorithmTypeVAes128Gcm VpnEncryptionAlgorithmType = 4
+ // VpnEncryptionAlgorithmTypeVAes256Gcm undocumented
+ VpnEncryptionAlgorithmTypeVAes256Gcm VpnEncryptionAlgorithmType = 5
+)
+
+// VpnEncryptionAlgorithmTypePAes256 returns a pointer to VpnEncryptionAlgorithmTypeVAes256
+func VpnEncryptionAlgorithmTypePAes256() *VpnEncryptionAlgorithmType {
+ v := VpnEncryptionAlgorithmTypeVAes256
+ return &v
+}
+
+// VpnEncryptionAlgorithmTypePDes returns a pointer to VpnEncryptionAlgorithmTypeVDes
+func VpnEncryptionAlgorithmTypePDes() *VpnEncryptionAlgorithmType {
+ v := VpnEncryptionAlgorithmTypeVDes
+ return &v
+}
+
+// VpnEncryptionAlgorithmTypePTripleDes returns a pointer to VpnEncryptionAlgorithmTypeVTripleDes
+func VpnEncryptionAlgorithmTypePTripleDes() *VpnEncryptionAlgorithmType {
+ v := VpnEncryptionAlgorithmTypeVTripleDes
+ return &v
+}
+
+// VpnEncryptionAlgorithmTypePAes128 returns a pointer to VpnEncryptionAlgorithmTypeVAes128
+func VpnEncryptionAlgorithmTypePAes128() *VpnEncryptionAlgorithmType {
+ v := VpnEncryptionAlgorithmTypeVAes128
+ return &v
+}
+
+// VpnEncryptionAlgorithmTypePAes128Gcm returns a pointer to VpnEncryptionAlgorithmTypeVAes128Gcm
+func VpnEncryptionAlgorithmTypePAes128Gcm() *VpnEncryptionAlgorithmType {
+ v := VpnEncryptionAlgorithmTypeVAes128Gcm
+ return &v
+}
+
+// VpnEncryptionAlgorithmTypePAes256Gcm returns a pointer to VpnEncryptionAlgorithmTypeVAes256Gcm
+func VpnEncryptionAlgorithmTypePAes256Gcm() *VpnEncryptionAlgorithmType {
+ v := VpnEncryptionAlgorithmTypeVAes256Gcm
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnIntegrityAlgorithmTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnIntegrityAlgorithmTypeEnum.go
new file mode 100644
index 00000000..6b023123
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnIntegrityAlgorithmTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnIntegrityAlgorithmType undocumented
+type VpnIntegrityAlgorithmType int
+
+const (
+ // VpnIntegrityAlgorithmTypeVSha2_256 undocumented
+ VpnIntegrityAlgorithmTypeVSha2_256 VpnIntegrityAlgorithmType = 0
+ // VpnIntegrityAlgorithmTypeVSha1_96 undocumented
+ VpnIntegrityAlgorithmTypeVSha1_96 VpnIntegrityAlgorithmType = 1
+ // VpnIntegrityAlgorithmTypeVSha1_160 undocumented
+ VpnIntegrityAlgorithmTypeVSha1_160 VpnIntegrityAlgorithmType = 2
+ // VpnIntegrityAlgorithmTypeVSha2_384 undocumented
+ VpnIntegrityAlgorithmTypeVSha2_384 VpnIntegrityAlgorithmType = 3
+ // VpnIntegrityAlgorithmTypeVSha2_512 undocumented
+ VpnIntegrityAlgorithmTypeVSha2_512 VpnIntegrityAlgorithmType = 4
+)
+
+// VpnIntegrityAlgorithmTypePSha2_256 returns a pointer to VpnIntegrityAlgorithmTypeVSha2_256
+func VpnIntegrityAlgorithmTypePSha2_256() *VpnIntegrityAlgorithmType {
+ v := VpnIntegrityAlgorithmTypeVSha2_256
+ return &v
+}
+
+// VpnIntegrityAlgorithmTypePSha1_96 returns a pointer to VpnIntegrityAlgorithmTypeVSha1_96
+func VpnIntegrityAlgorithmTypePSha1_96() *VpnIntegrityAlgorithmType {
+ v := VpnIntegrityAlgorithmTypeVSha1_96
+ return &v
+}
+
+// VpnIntegrityAlgorithmTypePSha1_160 returns a pointer to VpnIntegrityAlgorithmTypeVSha1_160
+func VpnIntegrityAlgorithmTypePSha1_160() *VpnIntegrityAlgorithmType {
+ v := VpnIntegrityAlgorithmTypeVSha1_160
+ return &v
+}
+
+// VpnIntegrityAlgorithmTypePSha2_384 returns a pointer to VpnIntegrityAlgorithmTypeVSha2_384
+func VpnIntegrityAlgorithmTypePSha2_384() *VpnIntegrityAlgorithmType {
+ v := VpnIntegrityAlgorithmTypeVSha2_384
+ return &v
+}
+
+// VpnIntegrityAlgorithmTypePSha2_512 returns a pointer to VpnIntegrityAlgorithmTypeVSha2_512
+func VpnIntegrityAlgorithmTypePSha2_512() *VpnIntegrityAlgorithmType {
+ v := VpnIntegrityAlgorithmTypeVSha2_512
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnLocalIdentifierEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnLocalIdentifierEnum.go
new file mode 100644
index 00000000..5225519f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnLocalIdentifierEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnLocalIdentifier undocumented
+type VpnLocalIdentifier int
+
+const (
+ // VpnLocalIdentifierVDeviceFQDN undocumented
+ VpnLocalIdentifierVDeviceFQDN VpnLocalIdentifier = 0
+ // VpnLocalIdentifierVEmpty undocumented
+ VpnLocalIdentifierVEmpty VpnLocalIdentifier = 1
+ // VpnLocalIdentifierVClientCertificateSubjectName undocumented
+ VpnLocalIdentifierVClientCertificateSubjectName VpnLocalIdentifier = 2
+)
+
+// VpnLocalIdentifierPDeviceFQDN returns a pointer to VpnLocalIdentifierVDeviceFQDN
+func VpnLocalIdentifierPDeviceFQDN() *VpnLocalIdentifier {
+ v := VpnLocalIdentifierVDeviceFQDN
+ return &v
+}
+
+// VpnLocalIdentifierPEmpty returns a pointer to VpnLocalIdentifierVEmpty
+func VpnLocalIdentifierPEmpty() *VpnLocalIdentifier {
+ v := VpnLocalIdentifierVEmpty
+ return &v
+}
+
+// VpnLocalIdentifierPClientCertificateSubjectName returns a pointer to VpnLocalIdentifierVClientCertificateSubjectName
+func VpnLocalIdentifierPClientCertificateSubjectName() *VpnLocalIdentifier {
+ v := VpnLocalIdentifierVClientCertificateSubjectName
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleConnectionActionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleConnectionActionEnum.go
new file mode 100644
index 00000000..b6e1d2a5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleConnectionActionEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnOnDemandRuleConnectionAction undocumented
+type VpnOnDemandRuleConnectionAction int
+
+const (
+ // VpnOnDemandRuleConnectionActionVConnect undocumented
+ VpnOnDemandRuleConnectionActionVConnect VpnOnDemandRuleConnectionAction = 0
+ // VpnOnDemandRuleConnectionActionVEvaluateConnection undocumented
+ VpnOnDemandRuleConnectionActionVEvaluateConnection VpnOnDemandRuleConnectionAction = 1
+ // VpnOnDemandRuleConnectionActionVIgnore undocumented
+ VpnOnDemandRuleConnectionActionVIgnore VpnOnDemandRuleConnectionAction = 2
+ // VpnOnDemandRuleConnectionActionVDisconnect undocumented
+ VpnOnDemandRuleConnectionActionVDisconnect VpnOnDemandRuleConnectionAction = 3
+)
+
+// VpnOnDemandRuleConnectionActionPConnect returns a pointer to VpnOnDemandRuleConnectionActionVConnect
+func VpnOnDemandRuleConnectionActionPConnect() *VpnOnDemandRuleConnectionAction {
+ v := VpnOnDemandRuleConnectionActionVConnect
+ return &v
+}
+
+// VpnOnDemandRuleConnectionActionPEvaluateConnection returns a pointer to VpnOnDemandRuleConnectionActionVEvaluateConnection
+func VpnOnDemandRuleConnectionActionPEvaluateConnection() *VpnOnDemandRuleConnectionAction {
+ v := VpnOnDemandRuleConnectionActionVEvaluateConnection
+ return &v
+}
+
+// VpnOnDemandRuleConnectionActionPIgnore returns a pointer to VpnOnDemandRuleConnectionActionVIgnore
+func VpnOnDemandRuleConnectionActionPIgnore() *VpnOnDemandRuleConnectionAction {
+ v := VpnOnDemandRuleConnectionActionVIgnore
+ return &v
+}
+
+// VpnOnDemandRuleConnectionActionPDisconnect returns a pointer to VpnOnDemandRuleConnectionActionVDisconnect
+func VpnOnDemandRuleConnectionActionPDisconnect() *VpnOnDemandRuleConnectionAction {
+ v := VpnOnDemandRuleConnectionActionVDisconnect
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleConnectionDomainActionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleConnectionDomainActionEnum.go
new file mode 100644
index 00000000..3edeba99
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleConnectionDomainActionEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnOnDemandRuleConnectionDomainAction undocumented
+type VpnOnDemandRuleConnectionDomainAction int
+
+const (
+ // VpnOnDemandRuleConnectionDomainActionVConnectIfNeeded undocumented
+ VpnOnDemandRuleConnectionDomainActionVConnectIfNeeded VpnOnDemandRuleConnectionDomainAction = 0
+ // VpnOnDemandRuleConnectionDomainActionVNeverConnect undocumented
+ VpnOnDemandRuleConnectionDomainActionVNeverConnect VpnOnDemandRuleConnectionDomainAction = 1
+)
+
+// VpnOnDemandRuleConnectionDomainActionPConnectIfNeeded returns a pointer to VpnOnDemandRuleConnectionDomainActionVConnectIfNeeded
+func VpnOnDemandRuleConnectionDomainActionPConnectIfNeeded() *VpnOnDemandRuleConnectionDomainAction {
+ v := VpnOnDemandRuleConnectionDomainActionVConnectIfNeeded
+ return &v
+}
+
+// VpnOnDemandRuleConnectionDomainActionPNeverConnect returns a pointer to VpnOnDemandRuleConnectionDomainActionVNeverConnect
+func VpnOnDemandRuleConnectionDomainActionPNeverConnect() *VpnOnDemandRuleConnectionDomainAction {
+ v := VpnOnDemandRuleConnectionDomainActionVNeverConnect
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleModel.go
new file mode 100644
index 00000000..278ab256
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnProviderTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnProviderTypeEnum.go
new file mode 100644
index 00000000..7d2602ec
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnProviderTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnProviderType undocumented
+type VpnProviderType int
+
+const (
+ // VpnProviderTypeVNotConfigured undocumented
+ VpnProviderTypeVNotConfigured VpnProviderType = 0
+ // VpnProviderTypeVAppProxy undocumented
+ VpnProviderTypeVAppProxy VpnProviderType = 1
+ // VpnProviderTypeVPacketTunnel undocumented
+ VpnProviderTypeVPacketTunnel VpnProviderType = 2
+)
+
+// VpnProviderTypePNotConfigured returns a pointer to VpnProviderTypeVNotConfigured
+func VpnProviderTypePNotConfigured() *VpnProviderType {
+ v := VpnProviderTypeVNotConfigured
+ return &v
+}
+
+// VpnProviderTypePAppProxy returns a pointer to VpnProviderTypeVAppProxy
+func VpnProviderTypePAppProxy() *VpnProviderType {
+ v := VpnProviderTypeVAppProxy
+ return &v
+}
+
+// VpnProviderTypePPacketTunnel returns a pointer to VpnProviderTypeVPacketTunnel
+func VpnProviderTypePPacketTunnel() *VpnProviderType {
+ v := VpnProviderTypeVPacketTunnel
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnProxyServerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnProxyServerModel.go
new file mode 100644
index 00000000..d0d38510
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnProxyServerModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnRouteModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnRouteModel.go
new file mode 100644
index 00000000..592f4245
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnRouteModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnServerCertificateTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnServerCertificateTypeEnum.go
new file mode 100644
index 00000000..8c83565a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnServerCertificateTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnServerCertificateType undocumented
+type VpnServerCertificateType int
+
+const (
+ // VpnServerCertificateTypeVRsa undocumented
+ VpnServerCertificateTypeVRsa VpnServerCertificateType = 0
+ // VpnServerCertificateTypeVEcdsa256 undocumented
+ VpnServerCertificateTypeVEcdsa256 VpnServerCertificateType = 1
+ // VpnServerCertificateTypeVEcdsa384 undocumented
+ VpnServerCertificateTypeVEcdsa384 VpnServerCertificateType = 2
+ // VpnServerCertificateTypeVEcdsa521 undocumented
+ VpnServerCertificateTypeVEcdsa521 VpnServerCertificateType = 3
+)
+
+// VpnServerCertificateTypePRsa returns a pointer to VpnServerCertificateTypeVRsa
+func VpnServerCertificateTypePRsa() *VpnServerCertificateType {
+ v := VpnServerCertificateTypeVRsa
+ return &v
+}
+
+// VpnServerCertificateTypePEcdsa256 returns a pointer to VpnServerCertificateTypeVEcdsa256
+func VpnServerCertificateTypePEcdsa256() *VpnServerCertificateType {
+ v := VpnServerCertificateTypeVEcdsa256
+ return &v
+}
+
+// VpnServerCertificateTypePEcdsa384 returns a pointer to VpnServerCertificateTypeVEcdsa384
+func VpnServerCertificateTypePEcdsa384() *VpnServerCertificateType {
+ v := VpnServerCertificateTypeVEcdsa384
+ return &v
+}
+
+// VpnServerCertificateTypePEcdsa521 returns a pointer to VpnServerCertificateTypeVEcdsa521
+func VpnServerCertificateTypePEcdsa521() *VpnServerCertificateType {
+ v := VpnServerCertificateTypeVEcdsa521
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnServerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnServerModel.go
new file mode 100644
index 00000000..1490f3ef
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnServerModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleAppTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleAppTypeEnum.go
new file mode 100644
index 00000000..81362a51
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleAppTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnTrafficRuleAppType undocumented
+type VpnTrafficRuleAppType int
+
+const (
+ // VpnTrafficRuleAppTypeVNone undocumented
+ VpnTrafficRuleAppTypeVNone VpnTrafficRuleAppType = 0
+ // VpnTrafficRuleAppTypeVDesktop undocumented
+ VpnTrafficRuleAppTypeVDesktop VpnTrafficRuleAppType = 1
+ // VpnTrafficRuleAppTypeVUniversal undocumented
+ VpnTrafficRuleAppTypeVUniversal VpnTrafficRuleAppType = 2
+)
+
+// VpnTrafficRuleAppTypePNone returns a pointer to VpnTrafficRuleAppTypeVNone
+func VpnTrafficRuleAppTypePNone() *VpnTrafficRuleAppType {
+ v := VpnTrafficRuleAppTypeVNone
+ return &v
+}
+
+// VpnTrafficRuleAppTypePDesktop returns a pointer to VpnTrafficRuleAppTypeVDesktop
+func VpnTrafficRuleAppTypePDesktop() *VpnTrafficRuleAppType {
+ v := VpnTrafficRuleAppTypeVDesktop
+ return &v
+}
+
+// VpnTrafficRuleAppTypePUniversal returns a pointer to VpnTrafficRuleAppTypeVUniversal
+func VpnTrafficRuleAppTypePUniversal() *VpnTrafficRuleAppType {
+ v := VpnTrafficRuleAppTypeVUniversal
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleModel.go
new file mode 100644
index 00000000..7eff2928
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/VpnTrafficRuleRoutingPolicyTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleRoutingPolicyTypeEnum.go
new file mode 100644
index 00000000..3619d052
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleRoutingPolicyTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnTrafficRuleRoutingPolicyType undocumented
+type VpnTrafficRuleRoutingPolicyType int
+
+const (
+ // VpnTrafficRuleRoutingPolicyTypeVNone undocumented
+ VpnTrafficRuleRoutingPolicyTypeVNone VpnTrafficRuleRoutingPolicyType = 0
+ // VpnTrafficRuleRoutingPolicyTypeVSplitTunnel undocumented
+ VpnTrafficRuleRoutingPolicyTypeVSplitTunnel VpnTrafficRuleRoutingPolicyType = 1
+ // VpnTrafficRuleRoutingPolicyTypeVForceTunnel undocumented
+ VpnTrafficRuleRoutingPolicyTypeVForceTunnel VpnTrafficRuleRoutingPolicyType = 2
+)
+
+// VpnTrafficRuleRoutingPolicyTypePNone returns a pointer to VpnTrafficRuleRoutingPolicyTypeVNone
+func VpnTrafficRuleRoutingPolicyTypePNone() *VpnTrafficRuleRoutingPolicyType {
+ v := VpnTrafficRuleRoutingPolicyTypeVNone
+ return &v
+}
+
+// VpnTrafficRuleRoutingPolicyTypePSplitTunnel returns a pointer to VpnTrafficRuleRoutingPolicyTypeVSplitTunnel
+func VpnTrafficRuleRoutingPolicyTypePSplitTunnel() *VpnTrafficRuleRoutingPolicyType {
+ v := VpnTrafficRuleRoutingPolicyTypeVSplitTunnel
+ return &v
+}
+
+// VpnTrafficRuleRoutingPolicyTypePForceTunnel returns a pointer to VpnTrafficRuleRoutingPolicyTypeVForceTunnel
+func VpnTrafficRuleRoutingPolicyTypePForceTunnel() *VpnTrafficRuleRoutingPolicyType {
+ v := VpnTrafficRuleRoutingPolicyTypeVForceTunnel
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VppLicensingTypeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VppLicensingTypeModel.go
new file mode 100644
index 00000000..87012462
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VppLicensingTypeModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenAccountTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenAccountTypeEnum.go
new file mode 100644
index 00000000..90861c08
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenAccountTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VppTokenAccountType undocumented
+type VppTokenAccountType int
+
+const (
+ // VppTokenAccountTypeVBusiness undocumented
+ VppTokenAccountTypeVBusiness VppTokenAccountType = 0
+ // VppTokenAccountTypeVEducation undocumented
+ VppTokenAccountTypeVEducation VppTokenAccountType = 1
+)
+
+// VppTokenAccountTypePBusiness returns a pointer to VppTokenAccountTypeVBusiness
+func VppTokenAccountTypePBusiness() *VppTokenAccountType {
+ v := VppTokenAccountTypeVBusiness
+ return &v
+}
+
+// VppTokenAccountTypePEducation returns a pointer to VppTokenAccountTypeVEducation
+func VppTokenAccountTypePEducation() *VppTokenAccountType {
+ v := VppTokenAccountTypeVEducation
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenAction.go
new file mode 100644
index 00000000..3b9090c7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenAction.go
@@ -0,0 +1,68 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// VppTokenSyncLicensesRequestParameter undocumented
+type VppTokenSyncLicensesRequestParameter struct {
+}
+
+// VppTokenRevokeLicensesRequestParameter undocumented
+type VppTokenRevokeLicensesRequestParameter struct {
+ // NotifyManagedDevices undocumented
+ NotifyManagedDevices *bool `json:"notifyManagedDevices,omitempty"`
+}
+
+//
+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/matterbridge/msgraph.go/beta/VppTokenActionFailureReasonEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenActionFailureReasonEnum.go
new file mode 100644
index 00000000..d895a369
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenActionFailureReasonEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VppTokenActionFailureReason undocumented
+type VppTokenActionFailureReason int
+
+const (
+ // VppTokenActionFailureReasonVNone undocumented
+ VppTokenActionFailureReasonVNone VppTokenActionFailureReason = 0
+ // VppTokenActionFailureReasonVAppleFailure undocumented
+ VppTokenActionFailureReasonVAppleFailure VppTokenActionFailureReason = 1
+ // VppTokenActionFailureReasonVInternalError undocumented
+ VppTokenActionFailureReasonVInternalError VppTokenActionFailureReason = 2
+ // VppTokenActionFailureReasonVExpiredVppToken undocumented
+ VppTokenActionFailureReasonVExpiredVppToken VppTokenActionFailureReason = 3
+ // VppTokenActionFailureReasonVExpiredApplePushNotificationCertificate undocumented
+ VppTokenActionFailureReasonVExpiredApplePushNotificationCertificate VppTokenActionFailureReason = 4
+)
+
+// VppTokenActionFailureReasonPNone returns a pointer to VppTokenActionFailureReasonVNone
+func VppTokenActionFailureReasonPNone() *VppTokenActionFailureReason {
+ v := VppTokenActionFailureReasonVNone
+ return &v
+}
+
+// VppTokenActionFailureReasonPAppleFailure returns a pointer to VppTokenActionFailureReasonVAppleFailure
+func VppTokenActionFailureReasonPAppleFailure() *VppTokenActionFailureReason {
+ v := VppTokenActionFailureReasonVAppleFailure
+ return &v
+}
+
+// VppTokenActionFailureReasonPInternalError returns a pointer to VppTokenActionFailureReasonVInternalError
+func VppTokenActionFailureReasonPInternalError() *VppTokenActionFailureReason {
+ v := VppTokenActionFailureReasonVInternalError
+ return &v
+}
+
+// VppTokenActionFailureReasonPExpiredVppToken returns a pointer to VppTokenActionFailureReasonVExpiredVppToken
+func VppTokenActionFailureReasonPExpiredVppToken() *VppTokenActionFailureReason {
+ v := VppTokenActionFailureReasonVExpiredVppToken
+ return &v
+}
+
+// VppTokenActionFailureReasonPExpiredApplePushNotificationCertificate returns a pointer to VppTokenActionFailureReasonVExpiredApplePushNotificationCertificate
+func VppTokenActionFailureReasonPExpiredApplePushNotificationCertificate() *VppTokenActionFailureReason {
+ v := VppTokenActionFailureReasonVExpiredApplePushNotificationCertificate
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenActionResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenActionResultModel.go
new file mode 100644
index 00000000..c70460a7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenActionResultModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenLicenseSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenLicenseSummaryModel.go
new file mode 100644
index 00000000..383e2f37
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenLicenseSummaryModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenModel.go
new file mode 100644
index 00000000..37eac0da
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenRequest.go
new file mode 100644
index 00000000..31577ff9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenRequest.go
@@ -0,0 +1,38 @@
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenRevokeLicensesActionResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenRevokeLicensesActionResultModel.go
new file mode 100644
index 00000000..6b9c454f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenRevokeLicensesActionResultModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/VppTokenStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenStateEnum.go
new file mode 100644
index 00000000..fbcfe115
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenStateEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VppTokenState undocumented
+type VppTokenState int
+
+const (
+ // VppTokenStateVUnknown undocumented
+ VppTokenStateVUnknown VppTokenState = 0
+ // VppTokenStateVValid undocumented
+ VppTokenStateVValid VppTokenState = 1
+ // VppTokenStateVExpired undocumented
+ VppTokenStateVExpired VppTokenState = 2
+ // VppTokenStateVInvalid undocumented
+ VppTokenStateVInvalid VppTokenState = 3
+ // VppTokenStateVAssignedToExternalMDM undocumented
+ VppTokenStateVAssignedToExternalMDM VppTokenState = 4
+)
+
+// VppTokenStatePUnknown returns a pointer to VppTokenStateVUnknown
+func VppTokenStatePUnknown() *VppTokenState {
+ v := VppTokenStateVUnknown
+ return &v
+}
+
+// VppTokenStatePValid returns a pointer to VppTokenStateVValid
+func VppTokenStatePValid() *VppTokenState {
+ v := VppTokenStateVValid
+ return &v
+}
+
+// VppTokenStatePExpired returns a pointer to VppTokenStateVExpired
+func VppTokenStatePExpired() *VppTokenState {
+ v := VppTokenStateVExpired
+ return &v
+}
+
+// VppTokenStatePInvalid returns a pointer to VppTokenStateVInvalid
+func VppTokenStatePInvalid() *VppTokenState {
+ v := VppTokenStateVInvalid
+ return &v
+}
+
+// VppTokenStatePAssignedToExternalMDM returns a pointer to VppTokenStateVAssignedToExternalMDM
+func VppTokenStatePAssignedToExternalMDM() *VppTokenState {
+ v := VppTokenStateVAssignedToExternalMDM
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenSyncStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenSyncStatusEnum.go
new file mode 100644
index 00000000..a2cdf4d9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenSyncStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VppTokenSyncStatus undocumented
+type VppTokenSyncStatus int
+
+const (
+ // VppTokenSyncStatusVNone undocumented
+ VppTokenSyncStatusVNone VppTokenSyncStatus = 0
+ // VppTokenSyncStatusVInProgress undocumented
+ VppTokenSyncStatusVInProgress VppTokenSyncStatus = 1
+ // VppTokenSyncStatusVCompleted undocumented
+ VppTokenSyncStatusVCompleted VppTokenSyncStatus = 2
+ // VppTokenSyncStatusVFailed undocumented
+ VppTokenSyncStatusVFailed VppTokenSyncStatus = 3
+)
+
+// VppTokenSyncStatusPNone returns a pointer to VppTokenSyncStatusVNone
+func VppTokenSyncStatusPNone() *VppTokenSyncStatus {
+ v := VppTokenSyncStatusVNone
+ return &v
+}
+
+// VppTokenSyncStatusPInProgress returns a pointer to VppTokenSyncStatusVInProgress
+func VppTokenSyncStatusPInProgress() *VppTokenSyncStatus {
+ v := VppTokenSyncStatusVInProgress
+ return &v
+}
+
+// VppTokenSyncStatusPCompleted returns a pointer to VppTokenSyncStatusVCompleted
+func VppTokenSyncStatusPCompleted() *VppTokenSyncStatus {
+ v := VppTokenSyncStatusVCompleted
+ return &v
+}
+
+// VppTokenSyncStatusPFailed returns a pointer to VppTokenSyncStatusVFailed
+func VppTokenSyncStatusPFailed() *VppTokenSyncStatus {
+ v := VppTokenSyncStatusVFailed
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VulnerabilityStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/VulnerabilityStateModel.go
new file mode 100644
index 00000000..efa57bbe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/VulnerabilityStateModel.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/matterbridge/msgraph.go/beta/WatermarkLayoutEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WatermarkLayoutEnum.go
new file mode 100644
index 00000000..611e9fe5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WatermarkLayoutEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WatermarkLayout undocumented
+type WatermarkLayout int
+
+const (
+ // WatermarkLayoutVHorizontal undocumented
+ WatermarkLayoutVHorizontal WatermarkLayout = 0
+ // WatermarkLayoutVDiagonal undocumented
+ WatermarkLayoutVDiagonal WatermarkLayout = 1
+)
+
+// WatermarkLayoutPHorizontal returns a pointer to WatermarkLayoutVHorizontal
+func WatermarkLayoutPHorizontal() *WatermarkLayout {
+ v := WatermarkLayoutVHorizontal
+ return &v
+}
+
+// WatermarkLayoutPDiagonal returns a pointer to WatermarkLayoutVDiagonal
+func WatermarkLayoutPDiagonal() *WatermarkLayout {
+ v := WatermarkLayoutVDiagonal
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WebAccountModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WebAccountModel.go
new file mode 100644
index 00000000..1b9dfa43
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WebAccountModel.go
@@ -0,0 +1,19 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WebAccountRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WebAccountRequest.go
new file mode 100644
index 00000000..11b2d481
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WebAccountRequest.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/matterbridge/msgraph.go/beta/WebAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WebAppModel.go
new file mode 100644
index 00000000..f394abf0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WebAppModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WebApplicationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WebApplicationModel.go
new file mode 100644
index 00000000..df993dbf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WebApplicationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WebBrowserCookieSettingsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WebBrowserCookieSettingsEnum.go
new file mode 100644
index 00000000..af397fbe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WebBrowserCookieSettingsEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WebBrowserCookieSettings undocumented
+type WebBrowserCookieSettings int
+
+const (
+ // WebBrowserCookieSettingsVBrowserDefault undocumented
+ WebBrowserCookieSettingsVBrowserDefault WebBrowserCookieSettings = 0
+ // WebBrowserCookieSettingsVBlockAlways undocumented
+ WebBrowserCookieSettingsVBlockAlways WebBrowserCookieSettings = 1
+ // WebBrowserCookieSettingsVAllowCurrentWebSite undocumented
+ WebBrowserCookieSettingsVAllowCurrentWebSite WebBrowserCookieSettings = 2
+ // WebBrowserCookieSettingsVAllowFromWebsitesVisited undocumented
+ WebBrowserCookieSettingsVAllowFromWebsitesVisited WebBrowserCookieSettings = 3
+ // WebBrowserCookieSettingsVAllowAlways undocumented
+ WebBrowserCookieSettingsVAllowAlways WebBrowserCookieSettings = 4
+)
+
+// WebBrowserCookieSettingsPBrowserDefault returns a pointer to WebBrowserCookieSettingsVBrowserDefault
+func WebBrowserCookieSettingsPBrowserDefault() *WebBrowserCookieSettings {
+ v := WebBrowserCookieSettingsVBrowserDefault
+ return &v
+}
+
+// WebBrowserCookieSettingsPBlockAlways returns a pointer to WebBrowserCookieSettingsVBlockAlways
+func WebBrowserCookieSettingsPBlockAlways() *WebBrowserCookieSettings {
+ v := WebBrowserCookieSettingsVBlockAlways
+ return &v
+}
+
+// WebBrowserCookieSettingsPAllowCurrentWebSite returns a pointer to WebBrowserCookieSettingsVAllowCurrentWebSite
+func WebBrowserCookieSettingsPAllowCurrentWebSite() *WebBrowserCookieSettings {
+ v := WebBrowserCookieSettingsVAllowCurrentWebSite
+ return &v
+}
+
+// WebBrowserCookieSettingsPAllowFromWebsitesVisited returns a pointer to WebBrowserCookieSettingsVAllowFromWebsitesVisited
+func WebBrowserCookieSettingsPAllowFromWebsitesVisited() *WebBrowserCookieSettings {
+ v := WebBrowserCookieSettingsVAllowFromWebsitesVisited
+ return &v
+}
+
+// WebBrowserCookieSettingsPAllowAlways returns a pointer to WebBrowserCookieSettingsVAllowAlways
+func WebBrowserCookieSettingsPAllowAlways() *WebBrowserCookieSettings {
+ v := WebBrowserCookieSettingsVAllowAlways
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WebPartModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WebPartModel.go
new file mode 100644
index 00000000..f982cc0b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WebPartModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/WebsiteModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WebsiteModel.go
new file mode 100644
index 00000000..86c680d5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WebsiteModel.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/matterbridge/msgraph.go/beta/WebsiteTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WebsiteTypeEnum.go
new file mode 100644
index 00000000..a3b4031c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WebsiteTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WebsiteType undocumented
+type WebsiteType int
+
+const (
+ // WebsiteTypeVOther undocumented
+ WebsiteTypeVOther WebsiteType = 0
+ // WebsiteTypeVHome undocumented
+ WebsiteTypeVHome WebsiteType = 1
+ // WebsiteTypeVWork undocumented
+ WebsiteTypeVWork WebsiteType = 2
+ // WebsiteTypeVBlog undocumented
+ WebsiteTypeVBlog WebsiteType = 3
+ // WebsiteTypeVProfile undocumented
+ WebsiteTypeVProfile WebsiteType = 4
+)
+
+// WebsiteTypePOther returns a pointer to WebsiteTypeVOther
+func WebsiteTypePOther() *WebsiteType {
+ v := WebsiteTypeVOther
+ return &v
+}
+
+// WebsiteTypePHome returns a pointer to WebsiteTypeVHome
+func WebsiteTypePHome() *WebsiteType {
+ v := WebsiteTypeVHome
+ return &v
+}
+
+// WebsiteTypePWork returns a pointer to WebsiteTypeVWork
+func WebsiteTypePWork() *WebsiteType {
+ v := WebsiteTypeVWork
+ return &v
+}
+
+// WebsiteTypePBlog returns a pointer to WebsiteTypeVBlog
+func WebsiteTypePBlog() *WebsiteType {
+ v := WebsiteTypeVBlog
+ return &v
+}
+
+// WebsiteTypePProfile returns a pointer to WebsiteTypeVProfile
+func WebsiteTypePProfile() *WebsiteType {
+ v := WebsiteTypeVProfile
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WeekIndexEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WeekIndexEnum.go
new file mode 100644
index 00000000..a2ef1b2e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WeekIndexEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WeekIndex undocumented
+type WeekIndex int
+
+const (
+ // WeekIndexVFirst undocumented
+ WeekIndexVFirst WeekIndex = 0
+ // WeekIndexVSecond undocumented
+ WeekIndexVSecond WeekIndex = 1
+ // WeekIndexVThird undocumented
+ WeekIndexVThird WeekIndex = 2
+ // WeekIndexVFourth undocumented
+ WeekIndexVFourth WeekIndex = 3
+ // WeekIndexVLast undocumented
+ WeekIndexVLast WeekIndex = 4
+)
+
+// WeekIndexPFirst returns a pointer to WeekIndexVFirst
+func WeekIndexPFirst() *WeekIndex {
+ v := WeekIndexVFirst
+ return &v
+}
+
+// WeekIndexPSecond returns a pointer to WeekIndexVSecond
+func WeekIndexPSecond() *WeekIndex {
+ v := WeekIndexVSecond
+ return &v
+}
+
+// WeekIndexPThird returns a pointer to WeekIndexVThird
+func WeekIndexPThird() *WeekIndex {
+ v := WeekIndexVThird
+ return &v
+}
+
+// WeekIndexPFourth returns a pointer to WeekIndexVFourth
+func WeekIndexPFourth() *WeekIndex {
+ v := WeekIndexVFourth
+ return &v
+}
+
+// WeekIndexPLast returns a pointer to WeekIndexVLast
+func WeekIndexPLast() *WeekIndex {
+ v := WeekIndexVLast
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WeeklyScheduleEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WeeklyScheduleEnum.go
new file mode 100644
index 00000000..bca8ce54
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WeeklyScheduleEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WeeklySchedule undocumented
+type WeeklySchedule int
+
+const (
+ // WeeklyScheduleVUserDefined undocumented
+ WeeklyScheduleVUserDefined WeeklySchedule = 0
+ // WeeklyScheduleVEveryday undocumented
+ WeeklyScheduleVEveryday WeeklySchedule = 1
+ // WeeklyScheduleVSunday undocumented
+ WeeklyScheduleVSunday WeeklySchedule = 2
+ // WeeklyScheduleVMonday undocumented
+ WeeklyScheduleVMonday WeeklySchedule = 3
+ // WeeklyScheduleVTuesday undocumented
+ WeeklyScheduleVTuesday WeeklySchedule = 4
+ // WeeklyScheduleVWednesday undocumented
+ WeeklyScheduleVWednesday WeeklySchedule = 5
+ // WeeklyScheduleVThursday undocumented
+ WeeklyScheduleVThursday WeeklySchedule = 6
+ // WeeklyScheduleVFriday undocumented
+ WeeklyScheduleVFriday WeeklySchedule = 7
+ // WeeklyScheduleVSaturday undocumented
+ WeeklyScheduleVSaturday WeeklySchedule = 8
+ // WeeklyScheduleVNoScheduledScan undocumented
+ WeeklyScheduleVNoScheduledScan WeeklySchedule = 9
+)
+
+// WeeklySchedulePUserDefined returns a pointer to WeeklyScheduleVUserDefined
+func WeeklySchedulePUserDefined() *WeeklySchedule {
+ v := WeeklyScheduleVUserDefined
+ return &v
+}
+
+// WeeklySchedulePEveryday returns a pointer to WeeklyScheduleVEveryday
+func WeeklySchedulePEveryday() *WeeklySchedule {
+ v := WeeklyScheduleVEveryday
+ return &v
+}
+
+// WeeklySchedulePSunday returns a pointer to WeeklyScheduleVSunday
+func WeeklySchedulePSunday() *WeeklySchedule {
+ v := WeeklyScheduleVSunday
+ return &v
+}
+
+// WeeklySchedulePMonday returns a pointer to WeeklyScheduleVMonday
+func WeeklySchedulePMonday() *WeeklySchedule {
+ v := WeeklyScheduleVMonday
+ return &v
+}
+
+// WeeklySchedulePTuesday returns a pointer to WeeklyScheduleVTuesday
+func WeeklySchedulePTuesday() *WeeklySchedule {
+ v := WeeklyScheduleVTuesday
+ return &v
+}
+
+// WeeklySchedulePWednesday returns a pointer to WeeklyScheduleVWednesday
+func WeeklySchedulePWednesday() *WeeklySchedule {
+ v := WeeklyScheduleVWednesday
+ return &v
+}
+
+// WeeklySchedulePThursday returns a pointer to WeeklyScheduleVThursday
+func WeeklySchedulePThursday() *WeeklySchedule {
+ v := WeeklyScheduleVThursday
+ return &v
+}
+
+// WeeklySchedulePFriday returns a pointer to WeeklyScheduleVFriday
+func WeeklySchedulePFriday() *WeeklySchedule {
+ v := WeeklyScheduleVFriday
+ return &v
+}
+
+// WeeklySchedulePSaturday returns a pointer to WeeklyScheduleVSaturday
+func WeeklySchedulePSaturday() *WeeklySchedule {
+ v := WeeklyScheduleVSaturday
+ return &v
+}
+
+// WeeklySchedulePNoScheduledScan returns a pointer to WeeklyScheduleVNoScheduledScan
+func WeeklySchedulePNoScheduledScan() *WeeklySchedule {
+ v := WeeklyScheduleVNoScheduledScan
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WelcomeScreenMeetingInformationEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WelcomeScreenMeetingInformationEnum.go
new file mode 100644
index 00000000..f9f944d9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WelcomeScreenMeetingInformationEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WelcomeScreenMeetingInformation undocumented
+type WelcomeScreenMeetingInformation int
+
+const (
+ // WelcomeScreenMeetingInformationVUserDefined undocumented
+ WelcomeScreenMeetingInformationVUserDefined WelcomeScreenMeetingInformation = 0
+ // WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly undocumented
+ WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly WelcomeScreenMeetingInformation = 1
+ // WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject undocumented
+ WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject WelcomeScreenMeetingInformation = 2
+)
+
+// WelcomeScreenMeetingInformationPUserDefined returns a pointer to WelcomeScreenMeetingInformationVUserDefined
+func WelcomeScreenMeetingInformationPUserDefined() *WelcomeScreenMeetingInformation {
+ v := WelcomeScreenMeetingInformationVUserDefined
+ return &v
+}
+
+// WelcomeScreenMeetingInformationPShowOrganizerAndTimeOnly returns a pointer to WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly
+func WelcomeScreenMeetingInformationPShowOrganizerAndTimeOnly() *WelcomeScreenMeetingInformation {
+ v := WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly
+ return &v
+}
+
+// WelcomeScreenMeetingInformationPShowOrganizerAndTimeAndSubject returns a pointer to WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject
+func WelcomeScreenMeetingInformationPShowOrganizerAndTimeAndSubject() *WelcomeScreenMeetingInformation {
+ v := WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WiFiAuthenticationMethodEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WiFiAuthenticationMethodEnum.go
new file mode 100644
index 00000000..fe442f4b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WiFiAuthenticationMethodEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WiFiAuthenticationMethod undocumented
+type WiFiAuthenticationMethod int
+
+const (
+ // WiFiAuthenticationMethodVCertificate undocumented
+ WiFiAuthenticationMethodVCertificate WiFiAuthenticationMethod = 0
+ // WiFiAuthenticationMethodVUsernameAndPassword undocumented
+ WiFiAuthenticationMethodVUsernameAndPassword WiFiAuthenticationMethod = 1
+ // WiFiAuthenticationMethodVDerivedCredential undocumented
+ WiFiAuthenticationMethodVDerivedCredential WiFiAuthenticationMethod = 2
+)
+
+// WiFiAuthenticationMethodPCertificate returns a pointer to WiFiAuthenticationMethodVCertificate
+func WiFiAuthenticationMethodPCertificate() *WiFiAuthenticationMethod {
+ v := WiFiAuthenticationMethodVCertificate
+ return &v
+}
+
+// WiFiAuthenticationMethodPUsernameAndPassword returns a pointer to WiFiAuthenticationMethodVUsernameAndPassword
+func WiFiAuthenticationMethodPUsernameAndPassword() *WiFiAuthenticationMethod {
+ v := WiFiAuthenticationMethodVUsernameAndPassword
+ return &v
+}
+
+// WiFiAuthenticationMethodPDerivedCredential returns a pointer to WiFiAuthenticationMethodVDerivedCredential
+func WiFiAuthenticationMethodPDerivedCredential() *WiFiAuthenticationMethod {
+ v := WiFiAuthenticationMethodVDerivedCredential
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WiFiProxySettingEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WiFiProxySettingEnum.go
new file mode 100644
index 00000000..80095ffa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WiFiProxySettingEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WiFiProxySetting undocumented
+type WiFiProxySetting int
+
+const (
+ // WiFiProxySettingVNone undocumented
+ WiFiProxySettingVNone WiFiProxySetting = 0
+ // WiFiProxySettingVManual undocumented
+ WiFiProxySettingVManual WiFiProxySetting = 1
+ // WiFiProxySettingVAutomatic undocumented
+ WiFiProxySettingVAutomatic WiFiProxySetting = 2
+)
+
+// WiFiProxySettingPNone returns a pointer to WiFiProxySettingVNone
+func WiFiProxySettingPNone() *WiFiProxySetting {
+ v := WiFiProxySettingVNone
+ return &v
+}
+
+// WiFiProxySettingPManual returns a pointer to WiFiProxySettingVManual
+func WiFiProxySettingPManual() *WiFiProxySetting {
+ v := WiFiProxySettingVManual
+ return &v
+}
+
+// WiFiProxySettingPAutomatic returns a pointer to WiFiProxySettingVAutomatic
+func WiFiProxySettingPAutomatic() *WiFiProxySetting {
+ v := WiFiProxySettingVAutomatic
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WiFiSecurityTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WiFiSecurityTypeEnum.go
new file mode 100644
index 00000000..326c5b4e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WiFiSecurityTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WiFiSecurityType undocumented
+type WiFiSecurityType int
+
+const (
+ // WiFiSecurityTypeVOpen undocumented
+ WiFiSecurityTypeVOpen WiFiSecurityType = 0
+ // WiFiSecurityTypeVWpaPersonal undocumented
+ WiFiSecurityTypeVWpaPersonal WiFiSecurityType = 1
+ // WiFiSecurityTypeVWpaEnterprise undocumented
+ WiFiSecurityTypeVWpaEnterprise WiFiSecurityType = 2
+ // WiFiSecurityTypeVWep undocumented
+ WiFiSecurityTypeVWep WiFiSecurityType = 3
+ // WiFiSecurityTypeVWpa2Personal undocumented
+ WiFiSecurityTypeVWpa2Personal WiFiSecurityType = 4
+ // WiFiSecurityTypeVWpa2Enterprise undocumented
+ WiFiSecurityTypeVWpa2Enterprise WiFiSecurityType = 5
+)
+
+// WiFiSecurityTypePOpen returns a pointer to WiFiSecurityTypeVOpen
+func WiFiSecurityTypePOpen() *WiFiSecurityType {
+ v := WiFiSecurityTypeVOpen
+ return &v
+}
+
+// WiFiSecurityTypePWpaPersonal returns a pointer to WiFiSecurityTypeVWpaPersonal
+func WiFiSecurityTypePWpaPersonal() *WiFiSecurityType {
+ v := WiFiSecurityTypeVWpaPersonal
+ return &v
+}
+
+// WiFiSecurityTypePWpaEnterprise returns a pointer to WiFiSecurityTypeVWpaEnterprise
+func WiFiSecurityTypePWpaEnterprise() *WiFiSecurityType {
+ v := WiFiSecurityTypeVWpaEnterprise
+ return &v
+}
+
+// WiFiSecurityTypePWep returns a pointer to WiFiSecurityTypeVWep
+func WiFiSecurityTypePWep() *WiFiSecurityType {
+ v := WiFiSecurityTypeVWep
+ return &v
+}
+
+// WiFiSecurityTypePWpa2Personal returns a pointer to WiFiSecurityTypeVWpa2Personal
+func WiFiSecurityTypePWpa2Personal() *WiFiSecurityType {
+ v := WiFiSecurityTypeVWpa2Personal
+ return &v
+}
+
+// WiFiSecurityTypePWpa2Enterprise returns a pointer to WiFiSecurityTypeVWpa2Enterprise
+func WiFiSecurityTypePWpa2Enterprise() *WiFiSecurityType {
+ v := WiFiSecurityTypeVWpa2Enterprise
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppAssignmentSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..34c2b332
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppAssignmentSettingsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppDetectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppDetectionModel.go
new file mode 100644
index 00000000..50c140cb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppDetectionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppDetection undocumented
+type Win32LobAppDetection struct {
+ // Object is the base model of Win32LobAppDetection
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppDetectionOperatorEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppDetectionOperatorEnum.go
new file mode 100644
index 00000000..0748dfe1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppDetectionOperatorEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppDetectionOperator undocumented
+type Win32LobAppDetectionOperator int
+
+const (
+ // Win32LobAppDetectionOperatorVNotConfigured undocumented
+ Win32LobAppDetectionOperatorVNotConfigured Win32LobAppDetectionOperator = 0
+ // Win32LobAppDetectionOperatorVEqual undocumented
+ Win32LobAppDetectionOperatorVEqual Win32LobAppDetectionOperator = 1
+ // Win32LobAppDetectionOperatorVNotEqual undocumented
+ Win32LobAppDetectionOperatorVNotEqual Win32LobAppDetectionOperator = 2
+ // Win32LobAppDetectionOperatorVGreaterThan undocumented
+ Win32LobAppDetectionOperatorVGreaterThan Win32LobAppDetectionOperator = 4
+ // Win32LobAppDetectionOperatorVGreaterThanOrEqual undocumented
+ Win32LobAppDetectionOperatorVGreaterThanOrEqual Win32LobAppDetectionOperator = 5
+ // Win32LobAppDetectionOperatorVLessThan undocumented
+ Win32LobAppDetectionOperatorVLessThan Win32LobAppDetectionOperator = 8
+ // Win32LobAppDetectionOperatorVLessThanOrEqual undocumented
+ Win32LobAppDetectionOperatorVLessThanOrEqual Win32LobAppDetectionOperator = 9
+)
+
+// Win32LobAppDetectionOperatorPNotConfigured returns a pointer to Win32LobAppDetectionOperatorVNotConfigured
+func Win32LobAppDetectionOperatorPNotConfigured() *Win32LobAppDetectionOperator {
+ v := Win32LobAppDetectionOperatorVNotConfigured
+ return &v
+}
+
+// Win32LobAppDetectionOperatorPEqual returns a pointer to Win32LobAppDetectionOperatorVEqual
+func Win32LobAppDetectionOperatorPEqual() *Win32LobAppDetectionOperator {
+ v := Win32LobAppDetectionOperatorVEqual
+ return &v
+}
+
+// Win32LobAppDetectionOperatorPNotEqual returns a pointer to Win32LobAppDetectionOperatorVNotEqual
+func Win32LobAppDetectionOperatorPNotEqual() *Win32LobAppDetectionOperator {
+ v := Win32LobAppDetectionOperatorVNotEqual
+ return &v
+}
+
+// Win32LobAppDetectionOperatorPGreaterThan returns a pointer to Win32LobAppDetectionOperatorVGreaterThan
+func Win32LobAppDetectionOperatorPGreaterThan() *Win32LobAppDetectionOperator {
+ v := Win32LobAppDetectionOperatorVGreaterThan
+ return &v
+}
+
+// Win32LobAppDetectionOperatorPGreaterThanOrEqual returns a pointer to Win32LobAppDetectionOperatorVGreaterThanOrEqual
+func Win32LobAppDetectionOperatorPGreaterThanOrEqual() *Win32LobAppDetectionOperator {
+ v := Win32LobAppDetectionOperatorVGreaterThanOrEqual
+ return &v
+}
+
+// Win32LobAppDetectionOperatorPLessThan returns a pointer to Win32LobAppDetectionOperatorVLessThan
+func Win32LobAppDetectionOperatorPLessThan() *Win32LobAppDetectionOperator {
+ v := Win32LobAppDetectionOperatorVLessThan
+ return &v
+}
+
+// Win32LobAppDetectionOperatorPLessThanOrEqual returns a pointer to Win32LobAppDetectionOperatorVLessThanOrEqual
+func Win32LobAppDetectionOperatorPLessThanOrEqual() *Win32LobAppDetectionOperator {
+ v := Win32LobAppDetectionOperatorVLessThanOrEqual
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemDetectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemDetectionModel.go
new file mode 100644
index 00000000..e6c676d8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemDetectionModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemDetectionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemDetectionTypeEnum.go
new file mode 100644
index 00000000..afbc368b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemDetectionTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppFileSystemDetectionType undocumented
+type Win32LobAppFileSystemDetectionType int
+
+const (
+ // Win32LobAppFileSystemDetectionTypeVNotConfigured undocumented
+ Win32LobAppFileSystemDetectionTypeVNotConfigured Win32LobAppFileSystemDetectionType = 0
+ // Win32LobAppFileSystemDetectionTypeVExists undocumented
+ Win32LobAppFileSystemDetectionTypeVExists Win32LobAppFileSystemDetectionType = 1
+ // Win32LobAppFileSystemDetectionTypeVModifiedDate undocumented
+ Win32LobAppFileSystemDetectionTypeVModifiedDate Win32LobAppFileSystemDetectionType = 2
+ // Win32LobAppFileSystemDetectionTypeVCreatedDate undocumented
+ Win32LobAppFileSystemDetectionTypeVCreatedDate Win32LobAppFileSystemDetectionType = 3
+ // Win32LobAppFileSystemDetectionTypeVVersion undocumented
+ Win32LobAppFileSystemDetectionTypeVVersion Win32LobAppFileSystemDetectionType = 4
+ // Win32LobAppFileSystemDetectionTypeVSizeInMB undocumented
+ Win32LobAppFileSystemDetectionTypeVSizeInMB Win32LobAppFileSystemDetectionType = 5
+ // Win32LobAppFileSystemDetectionTypeVDoesNotExist undocumented
+ Win32LobAppFileSystemDetectionTypeVDoesNotExist Win32LobAppFileSystemDetectionType = 6
+)
+
+// Win32LobAppFileSystemDetectionTypePNotConfigured returns a pointer to Win32LobAppFileSystemDetectionTypeVNotConfigured
+func Win32LobAppFileSystemDetectionTypePNotConfigured() *Win32LobAppFileSystemDetectionType {
+ v := Win32LobAppFileSystemDetectionTypeVNotConfigured
+ return &v
+}
+
+// Win32LobAppFileSystemDetectionTypePExists returns a pointer to Win32LobAppFileSystemDetectionTypeVExists
+func Win32LobAppFileSystemDetectionTypePExists() *Win32LobAppFileSystemDetectionType {
+ v := Win32LobAppFileSystemDetectionTypeVExists
+ return &v
+}
+
+// Win32LobAppFileSystemDetectionTypePModifiedDate returns a pointer to Win32LobAppFileSystemDetectionTypeVModifiedDate
+func Win32LobAppFileSystemDetectionTypePModifiedDate() *Win32LobAppFileSystemDetectionType {
+ v := Win32LobAppFileSystemDetectionTypeVModifiedDate
+ return &v
+}
+
+// Win32LobAppFileSystemDetectionTypePCreatedDate returns a pointer to Win32LobAppFileSystemDetectionTypeVCreatedDate
+func Win32LobAppFileSystemDetectionTypePCreatedDate() *Win32LobAppFileSystemDetectionType {
+ v := Win32LobAppFileSystemDetectionTypeVCreatedDate
+ return &v
+}
+
+// Win32LobAppFileSystemDetectionTypePVersion returns a pointer to Win32LobAppFileSystemDetectionTypeVVersion
+func Win32LobAppFileSystemDetectionTypePVersion() *Win32LobAppFileSystemDetectionType {
+ v := Win32LobAppFileSystemDetectionTypeVVersion
+ return &v
+}
+
+// Win32LobAppFileSystemDetectionTypePSizeInMB returns a pointer to Win32LobAppFileSystemDetectionTypeVSizeInMB
+func Win32LobAppFileSystemDetectionTypePSizeInMB() *Win32LobAppFileSystemDetectionType {
+ v := Win32LobAppFileSystemDetectionTypeVSizeInMB
+ return &v
+}
+
+// Win32LobAppFileSystemDetectionTypePDoesNotExist returns a pointer to Win32LobAppFileSystemDetectionTypeVDoesNotExist
+func Win32LobAppFileSystemDetectionTypePDoesNotExist() *Win32LobAppFileSystemDetectionType {
+ v := Win32LobAppFileSystemDetectionTypeVDoesNotExist
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemRequirementModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemRequirementModel.go
new file mode 100644
index 00000000..1f257d99
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemRequirementModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppInstallExperienceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppInstallExperienceModel.go
new file mode 100644
index 00000000..0e00a6ca
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppInstallExperienceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppModel.go
new file mode 100644
index 00000000..45c04807
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppModel.go
@@ -0,0 +1,37 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppMsiInformationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppMsiInformationModel.go
new file mode 100644
index 00000000..3d131494
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppMsiInformationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppMsiPackageTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppMsiPackageTypeEnum.go
new file mode 100644
index 00000000..f7659882
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppMsiPackageTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppMsiPackageType undocumented
+type Win32LobAppMsiPackageType int
+
+const (
+ // Win32LobAppMsiPackageTypeVPerMachine undocumented
+ Win32LobAppMsiPackageTypeVPerMachine Win32LobAppMsiPackageType = 0
+ // Win32LobAppMsiPackageTypeVPerUser undocumented
+ Win32LobAppMsiPackageTypeVPerUser Win32LobAppMsiPackageType = 1
+ // Win32LobAppMsiPackageTypeVDualPurpose undocumented
+ Win32LobAppMsiPackageTypeVDualPurpose Win32LobAppMsiPackageType = 2
+)
+
+// Win32LobAppMsiPackageTypePPerMachine returns a pointer to Win32LobAppMsiPackageTypeVPerMachine
+func Win32LobAppMsiPackageTypePPerMachine() *Win32LobAppMsiPackageType {
+ v := Win32LobAppMsiPackageTypeVPerMachine
+ return &v
+}
+
+// Win32LobAppMsiPackageTypePPerUser returns a pointer to Win32LobAppMsiPackageTypeVPerUser
+func Win32LobAppMsiPackageTypePPerUser() *Win32LobAppMsiPackageType {
+ v := Win32LobAppMsiPackageTypeVPerUser
+ return &v
+}
+
+// Win32LobAppMsiPackageTypePDualPurpose returns a pointer to Win32LobAppMsiPackageTypeVDualPurpose
+func Win32LobAppMsiPackageTypePDualPurpose() *Win32LobAppMsiPackageType {
+ v := Win32LobAppMsiPackageTypeVDualPurpose
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppNotificationEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppNotificationEnum.go
new file mode 100644
index 00000000..518a7c30
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppNotificationEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppNotification undocumented
+type Win32LobAppNotification int
+
+const (
+ // Win32LobAppNotificationVShowAll undocumented
+ Win32LobAppNotificationVShowAll Win32LobAppNotification = 0
+ // Win32LobAppNotificationVShowReboot undocumented
+ Win32LobAppNotificationVShowReboot Win32LobAppNotification = 1
+ // Win32LobAppNotificationVHideAll undocumented
+ Win32LobAppNotificationVHideAll Win32LobAppNotification = 2
+)
+
+// Win32LobAppNotificationPShowAll returns a pointer to Win32LobAppNotificationVShowAll
+func Win32LobAppNotificationPShowAll() *Win32LobAppNotification {
+ v := Win32LobAppNotificationVShowAll
+ return &v
+}
+
+// Win32LobAppNotificationPShowReboot returns a pointer to Win32LobAppNotificationVShowReboot
+func Win32LobAppNotificationPShowReboot() *Win32LobAppNotification {
+ v := Win32LobAppNotificationVShowReboot
+ return &v
+}
+
+// Win32LobAppNotificationPHideAll returns a pointer to Win32LobAppNotificationVHideAll
+func Win32LobAppNotificationPHideAll() *Win32LobAppNotification {
+ v := Win32LobAppNotificationVHideAll
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionModel.go
new file mode 100644
index 00000000..acd74644
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionTypeEnum.go
new file mode 100644
index 00000000..eb775d39
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppPowerShellScriptDetectionType undocumented
+type Win32LobAppPowerShellScriptDetectionType int
+
+const (
+ // Win32LobAppPowerShellScriptDetectionTypeVNotConfigured undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVNotConfigured Win32LobAppPowerShellScriptDetectionType = 0
+ // Win32LobAppPowerShellScriptDetectionTypeVString undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVString Win32LobAppPowerShellScriptDetectionType = 1
+ // Win32LobAppPowerShellScriptDetectionTypeVDateTime undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVDateTime Win32LobAppPowerShellScriptDetectionType = 2
+ // Win32LobAppPowerShellScriptDetectionTypeVInteger undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVInteger Win32LobAppPowerShellScriptDetectionType = 3
+ // Win32LobAppPowerShellScriptDetectionTypeVFloat undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVFloat Win32LobAppPowerShellScriptDetectionType = 4
+ // Win32LobAppPowerShellScriptDetectionTypeVVersion undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVVersion Win32LobAppPowerShellScriptDetectionType = 5
+ // Win32LobAppPowerShellScriptDetectionTypeVBoolean undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVBoolean Win32LobAppPowerShellScriptDetectionType = 6
+)
+
+// Win32LobAppPowerShellScriptDetectionTypePNotConfigured returns a pointer to Win32LobAppPowerShellScriptDetectionTypeVNotConfigured
+func Win32LobAppPowerShellScriptDetectionTypePNotConfigured() *Win32LobAppPowerShellScriptDetectionType {
+ v := Win32LobAppPowerShellScriptDetectionTypeVNotConfigured
+ return &v
+}
+
+// Win32LobAppPowerShellScriptDetectionTypePString returns a pointer to Win32LobAppPowerShellScriptDetectionTypeVString
+func Win32LobAppPowerShellScriptDetectionTypePString() *Win32LobAppPowerShellScriptDetectionType {
+ v := Win32LobAppPowerShellScriptDetectionTypeVString
+ return &v
+}
+
+// Win32LobAppPowerShellScriptDetectionTypePDateTime returns a pointer to Win32LobAppPowerShellScriptDetectionTypeVDateTime
+func Win32LobAppPowerShellScriptDetectionTypePDateTime() *Win32LobAppPowerShellScriptDetectionType {
+ v := Win32LobAppPowerShellScriptDetectionTypeVDateTime
+ return &v
+}
+
+// Win32LobAppPowerShellScriptDetectionTypePInteger returns a pointer to Win32LobAppPowerShellScriptDetectionTypeVInteger
+func Win32LobAppPowerShellScriptDetectionTypePInteger() *Win32LobAppPowerShellScriptDetectionType {
+ v := Win32LobAppPowerShellScriptDetectionTypeVInteger
+ return &v
+}
+
+// Win32LobAppPowerShellScriptDetectionTypePFloat returns a pointer to Win32LobAppPowerShellScriptDetectionTypeVFloat
+func Win32LobAppPowerShellScriptDetectionTypePFloat() *Win32LobAppPowerShellScriptDetectionType {
+ v := Win32LobAppPowerShellScriptDetectionTypeVFloat
+ return &v
+}
+
+// Win32LobAppPowerShellScriptDetectionTypePVersion returns a pointer to Win32LobAppPowerShellScriptDetectionTypeVVersion
+func Win32LobAppPowerShellScriptDetectionTypePVersion() *Win32LobAppPowerShellScriptDetectionType {
+ v := Win32LobAppPowerShellScriptDetectionTypeVVersion
+ return &v
+}
+
+// Win32LobAppPowerShellScriptDetectionTypePBoolean returns a pointer to Win32LobAppPowerShellScriptDetectionTypeVBoolean
+func Win32LobAppPowerShellScriptDetectionTypePBoolean() *Win32LobAppPowerShellScriptDetectionType {
+ v := Win32LobAppPowerShellScriptDetectionTypeVBoolean
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptRequirementModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptRequirementModel.go
new file mode 100644
index 00000000..4eff638b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptRequirementModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppProductCodeDetectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppProductCodeDetectionModel.go
new file mode 100644
index 00000000..f385f93a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppProductCodeDetectionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryDetectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryDetectionModel.go
new file mode 100644
index 00000000..d17304db
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryDetectionModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryDetectionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryDetectionTypeEnum.go
new file mode 100644
index 00000000..0a7256aa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryDetectionTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppRegistryDetectionType undocumented
+type Win32LobAppRegistryDetectionType int
+
+const (
+ // Win32LobAppRegistryDetectionTypeVNotConfigured undocumented
+ Win32LobAppRegistryDetectionTypeVNotConfigured Win32LobAppRegistryDetectionType = 0
+ // Win32LobAppRegistryDetectionTypeVExists undocumented
+ Win32LobAppRegistryDetectionTypeVExists Win32LobAppRegistryDetectionType = 1
+ // Win32LobAppRegistryDetectionTypeVDoesNotExist undocumented
+ Win32LobAppRegistryDetectionTypeVDoesNotExist Win32LobAppRegistryDetectionType = 2
+ // Win32LobAppRegistryDetectionTypeVString undocumented
+ Win32LobAppRegistryDetectionTypeVString Win32LobAppRegistryDetectionType = 3
+ // Win32LobAppRegistryDetectionTypeVInteger undocumented
+ Win32LobAppRegistryDetectionTypeVInteger Win32LobAppRegistryDetectionType = 4
+ // Win32LobAppRegistryDetectionTypeVVersion undocumented
+ Win32LobAppRegistryDetectionTypeVVersion Win32LobAppRegistryDetectionType = 5
+)
+
+// Win32LobAppRegistryDetectionTypePNotConfigured returns a pointer to Win32LobAppRegistryDetectionTypeVNotConfigured
+func Win32LobAppRegistryDetectionTypePNotConfigured() *Win32LobAppRegistryDetectionType {
+ v := Win32LobAppRegistryDetectionTypeVNotConfigured
+ return &v
+}
+
+// Win32LobAppRegistryDetectionTypePExists returns a pointer to Win32LobAppRegistryDetectionTypeVExists
+func Win32LobAppRegistryDetectionTypePExists() *Win32LobAppRegistryDetectionType {
+ v := Win32LobAppRegistryDetectionTypeVExists
+ return &v
+}
+
+// Win32LobAppRegistryDetectionTypePDoesNotExist returns a pointer to Win32LobAppRegistryDetectionTypeVDoesNotExist
+func Win32LobAppRegistryDetectionTypePDoesNotExist() *Win32LobAppRegistryDetectionType {
+ v := Win32LobAppRegistryDetectionTypeVDoesNotExist
+ return &v
+}
+
+// Win32LobAppRegistryDetectionTypePString returns a pointer to Win32LobAppRegistryDetectionTypeVString
+func Win32LobAppRegistryDetectionTypePString() *Win32LobAppRegistryDetectionType {
+ v := Win32LobAppRegistryDetectionTypeVString
+ return &v
+}
+
+// Win32LobAppRegistryDetectionTypePInteger returns a pointer to Win32LobAppRegistryDetectionTypeVInteger
+func Win32LobAppRegistryDetectionTypePInteger() *Win32LobAppRegistryDetectionType {
+ v := Win32LobAppRegistryDetectionTypeVInteger
+ return &v
+}
+
+// Win32LobAppRegistryDetectionTypePVersion returns a pointer to Win32LobAppRegistryDetectionTypeVVersion
+func Win32LobAppRegistryDetectionTypePVersion() *Win32LobAppRegistryDetectionType {
+ v := Win32LobAppRegistryDetectionTypeVVersion
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryRequirementModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryRequirementModel.go
new file mode 100644
index 00000000..2fd4f450
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryRequirementModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRequirementModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRequirementModel.go
new file mode 100644
index 00000000..cc786285
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRequirementModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRestartBehaviorEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRestartBehaviorEnum.go
new file mode 100644
index 00000000..02d83512
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRestartBehaviorEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppRestartBehavior undocumented
+type Win32LobAppRestartBehavior int
+
+const (
+ // Win32LobAppRestartBehaviorVBasedOnReturnCode undocumented
+ Win32LobAppRestartBehaviorVBasedOnReturnCode Win32LobAppRestartBehavior = 0
+ // Win32LobAppRestartBehaviorVAllow undocumented
+ Win32LobAppRestartBehaviorVAllow Win32LobAppRestartBehavior = 1
+ // Win32LobAppRestartBehaviorVSuppress undocumented
+ Win32LobAppRestartBehaviorVSuppress Win32LobAppRestartBehavior = 2
+ // Win32LobAppRestartBehaviorVForce undocumented
+ Win32LobAppRestartBehaviorVForce Win32LobAppRestartBehavior = 3
+)
+
+// Win32LobAppRestartBehaviorPBasedOnReturnCode returns a pointer to Win32LobAppRestartBehaviorVBasedOnReturnCode
+func Win32LobAppRestartBehaviorPBasedOnReturnCode() *Win32LobAppRestartBehavior {
+ v := Win32LobAppRestartBehaviorVBasedOnReturnCode
+ return &v
+}
+
+// Win32LobAppRestartBehaviorPAllow returns a pointer to Win32LobAppRestartBehaviorVAllow
+func Win32LobAppRestartBehaviorPAllow() *Win32LobAppRestartBehavior {
+ v := Win32LobAppRestartBehaviorVAllow
+ return &v
+}
+
+// Win32LobAppRestartBehaviorPSuppress returns a pointer to Win32LobAppRestartBehaviorVSuppress
+func Win32LobAppRestartBehaviorPSuppress() *Win32LobAppRestartBehavior {
+ v := Win32LobAppRestartBehaviorVSuppress
+ return &v
+}
+
+// Win32LobAppRestartBehaviorPForce returns a pointer to Win32LobAppRestartBehaviorVForce
+func Win32LobAppRestartBehaviorPForce() *Win32LobAppRestartBehavior {
+ v := Win32LobAppRestartBehaviorVForce
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRestartSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRestartSettingsModel.go
new file mode 100644
index 00000000..75460735
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRestartSettingsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppReturnCodeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppReturnCodeModel.go
new file mode 100644
index 00000000..d49ebc33
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppReturnCodeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/Win32LobAppReturnCodeTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppReturnCodeTypeEnum.go
new file mode 100644
index 00000000..bbd5b18e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppReturnCodeTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppReturnCodeType undocumented
+type Win32LobAppReturnCodeType int
+
+const (
+ // Win32LobAppReturnCodeTypeVFailed undocumented
+ Win32LobAppReturnCodeTypeVFailed Win32LobAppReturnCodeType = 0
+ // Win32LobAppReturnCodeTypeVSuccess undocumented
+ Win32LobAppReturnCodeTypeVSuccess Win32LobAppReturnCodeType = 1
+ // Win32LobAppReturnCodeTypeVSoftReboot undocumented
+ Win32LobAppReturnCodeTypeVSoftReboot Win32LobAppReturnCodeType = 2
+ // Win32LobAppReturnCodeTypeVHardReboot undocumented
+ Win32LobAppReturnCodeTypeVHardReboot Win32LobAppReturnCodeType = 3
+ // Win32LobAppReturnCodeTypeVRetry undocumented
+ Win32LobAppReturnCodeTypeVRetry Win32LobAppReturnCodeType = 4
+)
+
+// Win32LobAppReturnCodeTypePFailed returns a pointer to Win32LobAppReturnCodeTypeVFailed
+func Win32LobAppReturnCodeTypePFailed() *Win32LobAppReturnCodeType {
+ v := Win32LobAppReturnCodeTypeVFailed
+ return &v
+}
+
+// Win32LobAppReturnCodeTypePSuccess returns a pointer to Win32LobAppReturnCodeTypeVSuccess
+func Win32LobAppReturnCodeTypePSuccess() *Win32LobAppReturnCodeType {
+ v := Win32LobAppReturnCodeTypeVSuccess
+ return &v
+}
+
+// Win32LobAppReturnCodeTypePSoftReboot returns a pointer to Win32LobAppReturnCodeTypeVSoftReboot
+func Win32LobAppReturnCodeTypePSoftReboot() *Win32LobAppReturnCodeType {
+ v := Win32LobAppReturnCodeTypeVSoftReboot
+ return &v
+}
+
+// Win32LobAppReturnCodeTypePHardReboot returns a pointer to Win32LobAppReturnCodeTypeVHardReboot
+func Win32LobAppReturnCodeTypePHardReboot() *Win32LobAppReturnCodeType {
+ v := Win32LobAppReturnCodeTypeVHardReboot
+ return &v
+}
+
+// Win32LobAppReturnCodeTypePRetry returns a pointer to Win32LobAppReturnCodeTypeVRetry
+func Win32LobAppReturnCodeTypePRetry() *Win32LobAppReturnCodeType {
+ v := Win32LobAppReturnCodeTypeVRetry
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppTypeEnum.go
new file mode 100644
index 00000000..405a390b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10AppType undocumented
+type Windows10AppType int
+
+const (
+ // Windows10AppTypeVDesktop undocumented
+ Windows10AppTypeVDesktop Windows10AppType = 0
+ // Windows10AppTypeVUniversal undocumented
+ Windows10AppTypeVUniversal Windows10AppType = 1
+)
+
+// Windows10AppTypePDesktop returns a pointer to Windows10AppTypeVDesktop
+func Windows10AppTypePDesktop() *Windows10AppType {
+ v := Windows10AppTypeVDesktop
+ return &v
+}
+
+// Windows10AppTypePUniversal returns a pointer to Windows10AppTypeVUniversal
+func Windows10AppTypePUniversal() *Windows10AppType {
+ v := Windows10AppTypeVUniversal
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppsForceUpdateScheduleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppsForceUpdateScheduleModel.go
new file mode 100644
index 00000000..c4e2ef99
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppsForceUpdateScheduleModel.go
@@ -0,0 +1,17 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppsUpdateRecurrenceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppsUpdateRecurrenceEnum.go
new file mode 100644
index 00000000..3c930ef3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppsUpdateRecurrenceEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10AppsUpdateRecurrence undocumented
+type Windows10AppsUpdateRecurrence int
+
+const (
+ // Windows10AppsUpdateRecurrenceVNone undocumented
+ Windows10AppsUpdateRecurrenceVNone Windows10AppsUpdateRecurrence = 0
+ // Windows10AppsUpdateRecurrenceVDaily undocumented
+ Windows10AppsUpdateRecurrenceVDaily Windows10AppsUpdateRecurrence = 1
+ // Windows10AppsUpdateRecurrenceVWeekly undocumented
+ Windows10AppsUpdateRecurrenceVWeekly Windows10AppsUpdateRecurrence = 2
+ // Windows10AppsUpdateRecurrenceVMonthly undocumented
+ Windows10AppsUpdateRecurrenceVMonthly Windows10AppsUpdateRecurrence = 3
+)
+
+// Windows10AppsUpdateRecurrencePNone returns a pointer to Windows10AppsUpdateRecurrenceVNone
+func Windows10AppsUpdateRecurrencePNone() *Windows10AppsUpdateRecurrence {
+ v := Windows10AppsUpdateRecurrenceVNone
+ return &v
+}
+
+// Windows10AppsUpdateRecurrencePDaily returns a pointer to Windows10AppsUpdateRecurrenceVDaily
+func Windows10AppsUpdateRecurrencePDaily() *Windows10AppsUpdateRecurrence {
+ v := Windows10AppsUpdateRecurrenceVDaily
+ return &v
+}
+
+// Windows10AppsUpdateRecurrencePWeekly returns a pointer to Windows10AppsUpdateRecurrenceVWeekly
+func Windows10AppsUpdateRecurrencePWeekly() *Windows10AppsUpdateRecurrence {
+ v := Windows10AppsUpdateRecurrenceVWeekly
+ return &v
+}
+
+// Windows10AppsUpdateRecurrencePMonthly returns a pointer to Windows10AppsUpdateRecurrenceVMonthly
+func Windows10AppsUpdateRecurrencePMonthly() *Windows10AppsUpdateRecurrence {
+ v := Windows10AppsUpdateRecurrenceVMonthly
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AssociatedAppsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AssociatedAppsModel.go
new file mode 100644
index 00000000..2d24a658
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AssociatedAppsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10CertificateProfileBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10CertificateProfileBaseModel.go
new file mode 100644
index 00000000..e7440ddb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10CertificateProfileBaseModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10CertificateProfileBase Base class for Windows 10 certificate profile.
+type Windows10CertificateProfileBase struct {
+ // WindowsCertificateProfileBase is the base model of Windows10CertificateProfileBase
+ WindowsCertificateProfileBase
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10CompliancePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10CompliancePolicyModel.go
new file mode 100644
index 00000000..04b9cb8c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10CompliancePolicyModel.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10CustomConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10CustomConfigurationModel.go
new file mode 100644
index 00000000..34bc2c72
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10CustomConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10DeviceFirmwareConfigurationInterfaceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10DeviceFirmwareConfigurationInterfaceModel.go
new file mode 100644
index 00000000..713e6777
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10DeviceFirmwareConfigurationInterfaceModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10DeviceModeTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10DeviceModeTypeEnum.go
new file mode 100644
index 00000000..a7f29e41
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10DeviceModeTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10DeviceModeType undocumented
+type Windows10DeviceModeType int
+
+const (
+ // Windows10DeviceModeTypeVStandardConfiguration undocumented
+ Windows10DeviceModeTypeVStandardConfiguration Windows10DeviceModeType = 0
+ // Windows10DeviceModeTypeVSModeConfiguration undocumented
+ Windows10DeviceModeTypeVSModeConfiguration Windows10DeviceModeType = 1
+)
+
+// Windows10DeviceModeTypePStandardConfiguration returns a pointer to Windows10DeviceModeTypeVStandardConfiguration
+func Windows10DeviceModeTypePStandardConfiguration() *Windows10DeviceModeType {
+ v := Windows10DeviceModeTypeVStandardConfiguration
+ return &v
+}
+
+// Windows10DeviceModeTypePSModeConfiguration returns a pointer to Windows10DeviceModeTypeVSModeConfiguration
+func Windows10DeviceModeTypePSModeConfiguration() *Windows10DeviceModeType {
+ v := Windows10DeviceModeTypeVSModeConfiguration
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EasEmailProfileConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EasEmailProfileConfigurationModel.go
new file mode 100644
index 00000000..39400da1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EasEmailProfileConfigurationModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EditionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EditionTypeEnum.go
new file mode 100644
index 00000000..b928218f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EditionTypeEnum.go
@@ -0,0 +1,169 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10EditionType undocumented
+type Windows10EditionType int
+
+const (
+ // Windows10EditionTypeVWindows10Enterprise undocumented
+ Windows10EditionTypeVWindows10Enterprise Windows10EditionType = 0
+ // Windows10EditionTypeVWindows10EnterpriseN undocumented
+ Windows10EditionTypeVWindows10EnterpriseN Windows10EditionType = 1
+ // Windows10EditionTypeVWindows10Education undocumented
+ Windows10EditionTypeVWindows10Education Windows10EditionType = 2
+ // Windows10EditionTypeVWindows10EducationN undocumented
+ Windows10EditionTypeVWindows10EducationN Windows10EditionType = 3
+ // Windows10EditionTypeVWindows10MobileEnterprise undocumented
+ Windows10EditionTypeVWindows10MobileEnterprise Windows10EditionType = 4
+ // Windows10EditionTypeVWindows10HolographicEnterprise undocumented
+ Windows10EditionTypeVWindows10HolographicEnterprise Windows10EditionType = 5
+ // Windows10EditionTypeVWindows10Professional undocumented
+ Windows10EditionTypeVWindows10Professional Windows10EditionType = 6
+ // Windows10EditionTypeVWindows10ProfessionalN undocumented
+ Windows10EditionTypeVWindows10ProfessionalN Windows10EditionType = 7
+ // Windows10EditionTypeVWindows10ProfessionalEducation undocumented
+ Windows10EditionTypeVWindows10ProfessionalEducation Windows10EditionType = 8
+ // Windows10EditionTypeVWindows10ProfessionalEducationN undocumented
+ Windows10EditionTypeVWindows10ProfessionalEducationN Windows10EditionType = 9
+ // Windows10EditionTypeVWindows10ProfessionalWorkstation undocumented
+ Windows10EditionTypeVWindows10ProfessionalWorkstation Windows10EditionType = 10
+ // Windows10EditionTypeVWindows10ProfessionalWorkstationN undocumented
+ Windows10EditionTypeVWindows10ProfessionalWorkstationN Windows10EditionType = 11
+ // Windows10EditionTypeVNotConfigured undocumented
+ Windows10EditionTypeVNotConfigured Windows10EditionType = 12
+ // Windows10EditionTypeVWindows10Home undocumented
+ Windows10EditionTypeVWindows10Home Windows10EditionType = 13
+ // Windows10EditionTypeVWindows10HomeChina undocumented
+ Windows10EditionTypeVWindows10HomeChina Windows10EditionType = 14
+ // Windows10EditionTypeVWindows10HomeN undocumented
+ Windows10EditionTypeVWindows10HomeN Windows10EditionType = 15
+ // Windows10EditionTypeVWindows10HomeSingleLanguage undocumented
+ Windows10EditionTypeVWindows10HomeSingleLanguage Windows10EditionType = 16
+ // Windows10EditionTypeVWindows10Mobile undocumented
+ Windows10EditionTypeVWindows10Mobile Windows10EditionType = 17
+ // Windows10EditionTypeVWindows10IoTCore undocumented
+ Windows10EditionTypeVWindows10IoTCore Windows10EditionType = 18
+ // Windows10EditionTypeVWindows10IoTCoreCommercial undocumented
+ Windows10EditionTypeVWindows10IoTCoreCommercial Windows10EditionType = 19
+)
+
+// Windows10EditionTypePWindows10Enterprise returns a pointer to Windows10EditionTypeVWindows10Enterprise
+func Windows10EditionTypePWindows10Enterprise() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10Enterprise
+ return &v
+}
+
+// Windows10EditionTypePWindows10EnterpriseN returns a pointer to Windows10EditionTypeVWindows10EnterpriseN
+func Windows10EditionTypePWindows10EnterpriseN() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10EnterpriseN
+ return &v
+}
+
+// Windows10EditionTypePWindows10Education returns a pointer to Windows10EditionTypeVWindows10Education
+func Windows10EditionTypePWindows10Education() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10Education
+ return &v
+}
+
+// Windows10EditionTypePWindows10EducationN returns a pointer to Windows10EditionTypeVWindows10EducationN
+func Windows10EditionTypePWindows10EducationN() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10EducationN
+ return &v
+}
+
+// Windows10EditionTypePWindows10MobileEnterprise returns a pointer to Windows10EditionTypeVWindows10MobileEnterprise
+func Windows10EditionTypePWindows10MobileEnterprise() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10MobileEnterprise
+ return &v
+}
+
+// Windows10EditionTypePWindows10HolographicEnterprise returns a pointer to Windows10EditionTypeVWindows10HolographicEnterprise
+func Windows10EditionTypePWindows10HolographicEnterprise() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10HolographicEnterprise
+ return &v
+}
+
+// Windows10EditionTypePWindows10Professional returns a pointer to Windows10EditionTypeVWindows10Professional
+func Windows10EditionTypePWindows10Professional() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10Professional
+ return &v
+}
+
+// Windows10EditionTypePWindows10ProfessionalN returns a pointer to Windows10EditionTypeVWindows10ProfessionalN
+func Windows10EditionTypePWindows10ProfessionalN() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10ProfessionalN
+ return &v
+}
+
+// Windows10EditionTypePWindows10ProfessionalEducation returns a pointer to Windows10EditionTypeVWindows10ProfessionalEducation
+func Windows10EditionTypePWindows10ProfessionalEducation() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10ProfessionalEducation
+ return &v
+}
+
+// Windows10EditionTypePWindows10ProfessionalEducationN returns a pointer to Windows10EditionTypeVWindows10ProfessionalEducationN
+func Windows10EditionTypePWindows10ProfessionalEducationN() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10ProfessionalEducationN
+ return &v
+}
+
+// Windows10EditionTypePWindows10ProfessionalWorkstation returns a pointer to Windows10EditionTypeVWindows10ProfessionalWorkstation
+func Windows10EditionTypePWindows10ProfessionalWorkstation() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10ProfessionalWorkstation
+ return &v
+}
+
+// Windows10EditionTypePWindows10ProfessionalWorkstationN returns a pointer to Windows10EditionTypeVWindows10ProfessionalWorkstationN
+func Windows10EditionTypePWindows10ProfessionalWorkstationN() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10ProfessionalWorkstationN
+ return &v
+}
+
+// Windows10EditionTypePNotConfigured returns a pointer to Windows10EditionTypeVNotConfigured
+func Windows10EditionTypePNotConfigured() *Windows10EditionType {
+ v := Windows10EditionTypeVNotConfigured
+ return &v
+}
+
+// Windows10EditionTypePWindows10Home returns a pointer to Windows10EditionTypeVWindows10Home
+func Windows10EditionTypePWindows10Home() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10Home
+ return &v
+}
+
+// Windows10EditionTypePWindows10HomeChina returns a pointer to Windows10EditionTypeVWindows10HomeChina
+func Windows10EditionTypePWindows10HomeChina() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10HomeChina
+ return &v
+}
+
+// Windows10EditionTypePWindows10HomeN returns a pointer to Windows10EditionTypeVWindows10HomeN
+func Windows10EditionTypePWindows10HomeN() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10HomeN
+ return &v
+}
+
+// Windows10EditionTypePWindows10HomeSingleLanguage returns a pointer to Windows10EditionTypeVWindows10HomeSingleLanguage
+func Windows10EditionTypePWindows10HomeSingleLanguage() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10HomeSingleLanguage
+ return &v
+}
+
+// Windows10EditionTypePWindows10Mobile returns a pointer to Windows10EditionTypeVWindows10Mobile
+func Windows10EditionTypePWindows10Mobile() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10Mobile
+ return &v
+}
+
+// Windows10EditionTypePWindows10IoTCore returns a pointer to Windows10EditionTypeVWindows10IoTCore
+func Windows10EditionTypePWindows10IoTCore() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10IoTCore
+ return &v
+}
+
+// Windows10EditionTypePWindows10IoTCoreCommercial returns a pointer to Windows10EditionTypeVWindows10IoTCoreCommercial
+func Windows10EditionTypePWindows10IoTCoreCommercial() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10IoTCoreCommercial
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EndpointProtectionConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EndpointProtectionConfigurationModel.go
new file mode 100644
index 00000000..37f97ebc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EndpointProtectionConfigurationModel.go
@@ -0,0 +1,365 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationModel.go
new file mode 100644
index 00000000..c0238ffe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationPolicySetItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationPolicySetItemModel.go
new file mode 100644
index 00000000..e24be4a1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationPolicySetItemModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnterpriseModernAppManagementConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnterpriseModernAppManagementConfigurationModel.go
new file mode 100644
index 00000000..555e3697
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnterpriseModernAppManagementConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10GeneralConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10GeneralConfigurationModel.go
new file mode 100644
index 00000000..0312f9c6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10GeneralConfigurationModel.go
@@ -0,0 +1,569 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"defenderScheduledScanTime,omitempty"`
+ // DefenderScheduledQuickScanTime The time to perform a daily quick scan.
+ DefenderScheduledQuickScanTime *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10GeneralConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10GeneralConfigurationRequest.go
new file mode 100644
index 00000000..9734f0fa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10GeneralConfigurationRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsPrivacyDataAccessControlItem collection
+func (r *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest) Get(ctx context.Context) ([]WindowsPrivacyDataAccessControlItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10ImportedPFXCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10ImportedPFXCertificateProfileModel.go
new file mode 100644
index 00000000..24ce8545
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10ImportedPFXCertificateProfileModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10ImportedPFXCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10ImportedPFXCertificateProfileRequest.go
new file mode 100644
index 00000000..74b63097
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10ImportedPFXCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10MobileCompliancePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10MobileCompliancePolicyModel.go
new file mode 100644
index 00000000..09f34b27
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10MobileCompliancePolicyModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10NetworkBoundaryConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10NetworkBoundaryConfigurationModel.go
new file mode 100644
index 00000000..be92cb68
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10NetworkBoundaryConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10NetworkProxyServerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10NetworkProxyServerModel.go
new file mode 100644
index 00000000..f5998218
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10NetworkProxyServerModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10PFXImportCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10PFXImportCertificateProfileModel.go
new file mode 100644
index 00000000..5f7b25bd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10PFXImportCertificateProfileModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10PFXImportCertificateProfile Deprecated
+type Windows10PFXImportCertificateProfile struct {
+ // DeviceConfiguration is the base model of Windows10PFXImportCertificateProfile
+ DeviceConfiguration
+ // KeyStorageProvider undocumented
+ KeyStorageProvider *KeyStorageProviderOption `json:"keyStorageProvider,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10PkcsCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10PkcsCertificateProfileModel.go
new file mode 100644
index 00000000..de0ae75c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10PkcsCertificateProfileModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10PkcsCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10PkcsCertificateProfileRequest.go
new file mode 100644
index 00000000..d7e6df66
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10PkcsCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10SecureAssessmentConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10SecureAssessmentConfigurationModel.go
new file mode 100644
index 00000000..52c87b88
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10SecureAssessmentConfigurationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10TeamGeneralConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10TeamGeneralConfigurationModel.go
new file mode 100644
index 00000000..6a276d89
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10TeamGeneralConfigurationModel.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnAuthenticationMethodEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnAuthenticationMethodEnum.go
new file mode 100644
index 00000000..83ef1230
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnAuthenticationMethodEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10VpnAuthenticationMethod undocumented
+type Windows10VpnAuthenticationMethod int
+
+const (
+ // Windows10VpnAuthenticationMethodVCertificate undocumented
+ Windows10VpnAuthenticationMethodVCertificate Windows10VpnAuthenticationMethod = 0
+ // Windows10VpnAuthenticationMethodVUsernameAndPassword undocumented
+ Windows10VpnAuthenticationMethodVUsernameAndPassword Windows10VpnAuthenticationMethod = 1
+ // Windows10VpnAuthenticationMethodVCustomEapXML undocumented
+ Windows10VpnAuthenticationMethodVCustomEapXML Windows10VpnAuthenticationMethod = 2
+)
+
+// Windows10VpnAuthenticationMethodPCertificate returns a pointer to Windows10VpnAuthenticationMethodVCertificate
+func Windows10VpnAuthenticationMethodPCertificate() *Windows10VpnAuthenticationMethod {
+ v := Windows10VpnAuthenticationMethodVCertificate
+ return &v
+}
+
+// Windows10VpnAuthenticationMethodPUsernameAndPassword returns a pointer to Windows10VpnAuthenticationMethodVUsernameAndPassword
+func Windows10VpnAuthenticationMethodPUsernameAndPassword() *Windows10VpnAuthenticationMethod {
+ v := Windows10VpnAuthenticationMethodVUsernameAndPassword
+ return &v
+}
+
+// Windows10VpnAuthenticationMethodPCustomEapXML returns a pointer to Windows10VpnAuthenticationMethodVCustomEapXML
+func Windows10VpnAuthenticationMethodPCustomEapXML() *Windows10VpnAuthenticationMethod {
+ v := Windows10VpnAuthenticationMethodVCustomEapXML
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConfigurationModel.go
new file mode 100644
index 00000000..6a889b17
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConfigurationModel.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConfigurationRequest.go
new file mode 100644
index 00000000..10394f7e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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/matterbridge/msgraph.go/beta/Windows10VpnConnectionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConnectionTypeEnum.go
new file mode 100644
index 00000000..c3c4666f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConnectionTypeEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10VpnConnectionType undocumented
+type Windows10VpnConnectionType int
+
+const (
+ // Windows10VpnConnectionTypeVPulseSecure undocumented
+ Windows10VpnConnectionTypeVPulseSecure Windows10VpnConnectionType = 0
+ // Windows10VpnConnectionTypeVF5EdgeClient undocumented
+ Windows10VpnConnectionTypeVF5EdgeClient Windows10VpnConnectionType = 1
+ // Windows10VpnConnectionTypeVDellSonicWallMobileConnect undocumented
+ Windows10VpnConnectionTypeVDellSonicWallMobileConnect Windows10VpnConnectionType = 2
+ // Windows10VpnConnectionTypeVCheckPointCapsuleVpn undocumented
+ Windows10VpnConnectionTypeVCheckPointCapsuleVpn Windows10VpnConnectionType = 3
+ // Windows10VpnConnectionTypeVAutomatic undocumented
+ Windows10VpnConnectionTypeVAutomatic Windows10VpnConnectionType = 4
+ // Windows10VpnConnectionTypeVIkEv2 undocumented
+ Windows10VpnConnectionTypeVIkEv2 Windows10VpnConnectionType = 5
+ // Windows10VpnConnectionTypeVL2tp undocumented
+ Windows10VpnConnectionTypeVL2tp Windows10VpnConnectionType = 6
+ // Windows10VpnConnectionTypeVPptp undocumented
+ Windows10VpnConnectionTypeVPptp Windows10VpnConnectionType = 7
+ // Windows10VpnConnectionTypeVCitrix undocumented
+ Windows10VpnConnectionTypeVCitrix Windows10VpnConnectionType = 8
+ // Windows10VpnConnectionTypeVPaloAltoGlobalProtect undocumented
+ Windows10VpnConnectionTypeVPaloAltoGlobalProtect Windows10VpnConnectionType = 9
+)
+
+// Windows10VpnConnectionTypePPulseSecure returns a pointer to Windows10VpnConnectionTypeVPulseSecure
+func Windows10VpnConnectionTypePPulseSecure() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVPulseSecure
+ return &v
+}
+
+// Windows10VpnConnectionTypePF5EdgeClient returns a pointer to Windows10VpnConnectionTypeVF5EdgeClient
+func Windows10VpnConnectionTypePF5EdgeClient() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVF5EdgeClient
+ return &v
+}
+
+// Windows10VpnConnectionTypePDellSonicWallMobileConnect returns a pointer to Windows10VpnConnectionTypeVDellSonicWallMobileConnect
+func Windows10VpnConnectionTypePDellSonicWallMobileConnect() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVDellSonicWallMobileConnect
+ return &v
+}
+
+// Windows10VpnConnectionTypePCheckPointCapsuleVpn returns a pointer to Windows10VpnConnectionTypeVCheckPointCapsuleVpn
+func Windows10VpnConnectionTypePCheckPointCapsuleVpn() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVCheckPointCapsuleVpn
+ return &v
+}
+
+// Windows10VpnConnectionTypePAutomatic returns a pointer to Windows10VpnConnectionTypeVAutomatic
+func Windows10VpnConnectionTypePAutomatic() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVAutomatic
+ return &v
+}
+
+// Windows10VpnConnectionTypePIkEv2 returns a pointer to Windows10VpnConnectionTypeVIkEv2
+func Windows10VpnConnectionTypePIkEv2() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVIkEv2
+ return &v
+}
+
+// Windows10VpnConnectionTypePL2tp returns a pointer to Windows10VpnConnectionTypeVL2tp
+func Windows10VpnConnectionTypePL2tp() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVL2tp
+ return &v
+}
+
+// Windows10VpnConnectionTypePPptp returns a pointer to Windows10VpnConnectionTypeVPptp
+func Windows10VpnConnectionTypePPptp() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVPptp
+ return &v
+}
+
+// Windows10VpnConnectionTypePCitrix returns a pointer to Windows10VpnConnectionTypeVCitrix
+func Windows10VpnConnectionTypePCitrix() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVCitrix
+ return &v
+}
+
+// Windows10VpnConnectionTypePPaloAltoGlobalProtect returns a pointer to Windows10VpnConnectionTypeVPaloAltoGlobalProtect
+func Windows10VpnConnectionTypePPaloAltoGlobalProtect() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVPaloAltoGlobalProtect
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnProfileTargetEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnProfileTargetEnum.go
new file mode 100644
index 00000000..18f4f3eb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnProfileTargetEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10VpnProfileTarget undocumented
+type Windows10VpnProfileTarget int
+
+const (
+ // Windows10VpnProfileTargetVUser undocumented
+ Windows10VpnProfileTargetVUser Windows10VpnProfileTarget = 0
+ // Windows10VpnProfileTargetVDevice undocumented
+ Windows10VpnProfileTargetVDevice Windows10VpnProfileTarget = 1
+ // Windows10VpnProfileTargetVAutoPilotDevice undocumented
+ Windows10VpnProfileTargetVAutoPilotDevice Windows10VpnProfileTarget = 2
+)
+
+// Windows10VpnProfileTargetPUser returns a pointer to Windows10VpnProfileTargetVUser
+func Windows10VpnProfileTargetPUser() *Windows10VpnProfileTarget {
+ v := Windows10VpnProfileTargetVUser
+ return &v
+}
+
+// Windows10VpnProfileTargetPDevice returns a pointer to Windows10VpnProfileTargetVDevice
+func Windows10VpnProfileTargetPDevice() *Windows10VpnProfileTarget {
+ v := Windows10VpnProfileTargetVDevice
+ return &v
+}
+
+// Windows10VpnProfileTargetPAutoPilotDevice returns a pointer to Windows10VpnProfileTargetVAutoPilotDevice
+func Windows10VpnProfileTargetPAutoPilotDevice() *Windows10VpnProfileTarget {
+ v := Windows10VpnProfileTargetVAutoPilotDevice
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnProxyServerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnProxyServerModel.go
new file mode 100644
index 00000000..78a9a3fa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnProxyServerModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/Windows81CertificateProfileBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81CertificateProfileBaseModel.go
new file mode 100644
index 00000000..6e112de2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81CertificateProfileBaseModel.go
@@ -0,0 +1,13 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81CompliancePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81CompliancePolicyModel.go
new file mode 100644
index 00000000..6c81b9ec
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81CompliancePolicyModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81GeneralConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81GeneralConfigurationModel.go
new file mode 100644
index 00000000..37af954b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81GeneralConfigurationModel.go
@@ -0,0 +1,79 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81SCEPCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81SCEPCertificateProfileModel.go
new file mode 100644
index 00000000..63da2caa
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81SCEPCertificateProfileModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81SCEPCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81SCEPCertificateProfileRequest.go
new file mode 100644
index 00000000..1d514611
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81SCEPCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/Windows81TrustedRootCertificateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81TrustedRootCertificateModel.go
new file mode 100644
index 00000000..4c661bb3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81TrustedRootCertificateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81TrustedRootCertificateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81TrustedRootCertificateRequest.go
new file mode 100644
index 00000000..33fefe81
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81TrustedRootCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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/matterbridge/msgraph.go/beta/Windows81VpnConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81VpnConfigurationModel.go
new file mode 100644
index 00000000..993abb49
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81VpnConfigurationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81VpnProxyServerModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81VpnProxyServerModel.go
new file mode 100644
index 00000000..f2e34c15
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81VpnProxyServerModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81WifiImportConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81WifiImportConfigurationModel.go
new file mode 100644
index 00000000..9baea10f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/Windows81WifiImportConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/WindowsAppStartLayoutTileSizeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppStartLayoutTileSizeEnum.go
new file mode 100644
index 00000000..f6274a3c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppStartLayoutTileSizeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAppStartLayoutTileSize undocumented
+type WindowsAppStartLayoutTileSize int
+
+const (
+ // WindowsAppStartLayoutTileSizeVHidden undocumented
+ WindowsAppStartLayoutTileSizeVHidden WindowsAppStartLayoutTileSize = 0
+ // WindowsAppStartLayoutTileSizeVSmall undocumented
+ WindowsAppStartLayoutTileSizeVSmall WindowsAppStartLayoutTileSize = 1
+ // WindowsAppStartLayoutTileSizeVMedium undocumented
+ WindowsAppStartLayoutTileSizeVMedium WindowsAppStartLayoutTileSize = 2
+ // WindowsAppStartLayoutTileSizeVWide undocumented
+ WindowsAppStartLayoutTileSizeVWide WindowsAppStartLayoutTileSize = 3
+ // WindowsAppStartLayoutTileSizeVLarge undocumented
+ WindowsAppStartLayoutTileSizeVLarge WindowsAppStartLayoutTileSize = 4
+)
+
+// WindowsAppStartLayoutTileSizePHidden returns a pointer to WindowsAppStartLayoutTileSizeVHidden
+func WindowsAppStartLayoutTileSizePHidden() *WindowsAppStartLayoutTileSize {
+ v := WindowsAppStartLayoutTileSizeVHidden
+ return &v
+}
+
+// WindowsAppStartLayoutTileSizePSmall returns a pointer to WindowsAppStartLayoutTileSizeVSmall
+func WindowsAppStartLayoutTileSizePSmall() *WindowsAppStartLayoutTileSize {
+ v := WindowsAppStartLayoutTileSizeVSmall
+ return &v
+}
+
+// WindowsAppStartLayoutTileSizePMedium returns a pointer to WindowsAppStartLayoutTileSizeVMedium
+func WindowsAppStartLayoutTileSizePMedium() *WindowsAppStartLayoutTileSize {
+ v := WindowsAppStartLayoutTileSizeVMedium
+ return &v
+}
+
+// WindowsAppStartLayoutTileSizePWide returns a pointer to WindowsAppStartLayoutTileSizeVWide
+func WindowsAppStartLayoutTileSizePWide() *WindowsAppStartLayoutTileSize {
+ v := WindowsAppStartLayoutTileSizeVWide
+ return &v
+}
+
+// WindowsAppStartLayoutTileSizePLarge returns a pointer to WindowsAppStartLayoutTileSizeVLarge
+func WindowsAppStartLayoutTileSizePLarge() *WindowsAppStartLayoutTileSize {
+ v := WindowsAppStartLayoutTileSizeVLarge
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppXAppAssignmentSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppXAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..30d54d0d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppXAppAssignmentSettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppXModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppXModel.go
new file mode 100644
index 00000000..17d108c7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppXModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsArchitectureEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsArchitectureEnum.go
new file mode 100644
index 00000000..bccbebd0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsArchitectureEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsArchitecture undocumented
+type WindowsArchitecture int
+
+const (
+ // WindowsArchitectureVNone undocumented
+ WindowsArchitectureVNone WindowsArchitecture = 0
+ // WindowsArchitectureVX86 undocumented
+ WindowsArchitectureVX86 WindowsArchitecture = 1
+ // WindowsArchitectureVX64 undocumented
+ WindowsArchitectureVX64 WindowsArchitecture = 2
+ // WindowsArchitectureVArm undocumented
+ WindowsArchitectureVArm WindowsArchitecture = 4
+ // WindowsArchitectureVNeutral undocumented
+ WindowsArchitectureVNeutral WindowsArchitecture = 8
+ // WindowsArchitectureVArm64 undocumented
+ WindowsArchitectureVArm64 WindowsArchitecture = 16
+)
+
+// WindowsArchitecturePNone returns a pointer to WindowsArchitectureVNone
+func WindowsArchitecturePNone() *WindowsArchitecture {
+ v := WindowsArchitectureVNone
+ return &v
+}
+
+// WindowsArchitecturePX86 returns a pointer to WindowsArchitectureVX86
+func WindowsArchitecturePX86() *WindowsArchitecture {
+ v := WindowsArchitectureVX86
+ return &v
+}
+
+// WindowsArchitecturePX64 returns a pointer to WindowsArchitectureVX64
+func WindowsArchitecturePX64() *WindowsArchitecture {
+ v := WindowsArchitectureVX64
+ return &v
+}
+
+// WindowsArchitecturePArm returns a pointer to WindowsArchitectureVArm
+func WindowsArchitecturePArm() *WindowsArchitecture {
+ v := WindowsArchitectureVArm
+ return &v
+}
+
+// WindowsArchitecturePNeutral returns a pointer to WindowsArchitectureVNeutral
+func WindowsArchitecturePNeutral() *WindowsArchitecture {
+ v := WindowsArchitectureVNeutral
+ return &v
+}
+
+// WindowsArchitecturePArm64 returns a pointer to WindowsArchitectureVArm64
+func WindowsArchitecturePArm64() *WindowsArchitecture {
+ v := WindowsArchitectureVArm64
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAssignedAccessProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAssignedAccessProfileModel.go
new file mode 100644
index 00000000..f8288fb1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAssignedAccessProfileModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAction.go
new file mode 100644
index 00000000..813c5923
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAction.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/matterbridge/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"`
+}
+
+//
+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{}) ([][]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.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) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentModel.go
new file mode 100644
index 00000000..2c022070
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentRequest.go
new file mode 100644
index 00000000..2754f1c6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileModel.go
new file mode 100644
index 00000000..c1ffaa35
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfilePolicySetItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfilePolicySetItemModel.go
new file mode 100644
index 00000000..dd68ba58
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfilePolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAutopilotDeploymentProfilePolicySetItem A class containing the properties used for windows autopilot deployment profile PolicySetItem.
+type WindowsAutopilotDeploymentProfilePolicySetItem struct {
+ // PolicySetItem is the base model of WindowsAutopilotDeploymentProfilePolicySetItem
+ PolicySetItem
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileRequest.go
new file mode 100644
index 00000000..3148395e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsAutopilotDeviceIdentity collection
+func (r *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsAutopilotDeploymentProfileAssignment collection
+func (r *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeploymentProfileAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentStateEnum.go
new file mode 100644
index 00000000..1326caf1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentStateEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAutopilotDeploymentState undocumented
+type WindowsAutopilotDeploymentState int
+
+const (
+ // WindowsAutopilotDeploymentStateVUnknown undocumented
+ WindowsAutopilotDeploymentStateVUnknown WindowsAutopilotDeploymentState = 0
+ // WindowsAutopilotDeploymentStateVSuccess undocumented
+ WindowsAutopilotDeploymentStateVSuccess WindowsAutopilotDeploymentState = 1
+ // WindowsAutopilotDeploymentStateVInProgress undocumented
+ WindowsAutopilotDeploymentStateVInProgress WindowsAutopilotDeploymentState = 2
+ // WindowsAutopilotDeploymentStateVFailure undocumented
+ WindowsAutopilotDeploymentStateVFailure WindowsAutopilotDeploymentState = 3
+ // WindowsAutopilotDeploymentStateVSuccessWithTimeout undocumented
+ WindowsAutopilotDeploymentStateVSuccessWithTimeout WindowsAutopilotDeploymentState = 4
+)
+
+// WindowsAutopilotDeploymentStatePUnknown returns a pointer to WindowsAutopilotDeploymentStateVUnknown
+func WindowsAutopilotDeploymentStatePUnknown() *WindowsAutopilotDeploymentState {
+ v := WindowsAutopilotDeploymentStateVUnknown
+ return &v
+}
+
+// WindowsAutopilotDeploymentStatePSuccess returns a pointer to WindowsAutopilotDeploymentStateVSuccess
+func WindowsAutopilotDeploymentStatePSuccess() *WindowsAutopilotDeploymentState {
+ v := WindowsAutopilotDeploymentStateVSuccess
+ return &v
+}
+
+// WindowsAutopilotDeploymentStatePInProgress returns a pointer to WindowsAutopilotDeploymentStateVInProgress
+func WindowsAutopilotDeploymentStatePInProgress() *WindowsAutopilotDeploymentState {
+ v := WindowsAutopilotDeploymentStateVInProgress
+ return &v
+}
+
+// WindowsAutopilotDeploymentStatePFailure returns a pointer to WindowsAutopilotDeploymentStateVFailure
+func WindowsAutopilotDeploymentStatePFailure() *WindowsAutopilotDeploymentState {
+ v := WindowsAutopilotDeploymentStateVFailure
+ return &v
+}
+
+// WindowsAutopilotDeploymentStatePSuccessWithTimeout returns a pointer to WindowsAutopilotDeploymentStateVSuccessWithTimeout
+func WindowsAutopilotDeploymentStatePSuccessWithTimeout() *WindowsAutopilotDeploymentState {
+ v := WindowsAutopilotDeploymentStateVSuccessWithTimeout
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityAction.go
new file mode 100644
index 00000000..543a5196
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityAction.go
@@ -0,0 +1,173 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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 {
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityModel.go
new file mode 100644
index 00000000..025e9656
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityModel.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityRequest.go
new file mode 100644
index 00000000..d7b1d5fd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceTypeEnum.go
new file mode 100644
index 00000000..53c72303
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAutopilotDeviceType undocumented
+type WindowsAutopilotDeviceType int
+
+const (
+ // WindowsAutopilotDeviceTypeVWindowsPc undocumented
+ WindowsAutopilotDeviceTypeVWindowsPc WindowsAutopilotDeviceType = 0
+ // WindowsAutopilotDeviceTypeVSurfaceHub2 undocumented
+ WindowsAutopilotDeviceTypeVSurfaceHub2 WindowsAutopilotDeviceType = 1
+)
+
+// WindowsAutopilotDeviceTypePWindowsPc returns a pointer to WindowsAutopilotDeviceTypeVWindowsPc
+func WindowsAutopilotDeviceTypePWindowsPc() *WindowsAutopilotDeviceType {
+ v := WindowsAutopilotDeviceTypeVWindowsPc
+ return &v
+}
+
+// WindowsAutopilotDeviceTypePSurfaceHub2 returns a pointer to WindowsAutopilotDeviceTypeVSurfaceHub2
+func WindowsAutopilotDeviceTypePSurfaceHub2() *WindowsAutopilotDeviceType {
+ v := WindowsAutopilotDeviceTypeVSurfaceHub2
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotEnrollmentTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotEnrollmentTypeEnum.go
new file mode 100644
index 00000000..a5ffe76a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotEnrollmentTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAutopilotEnrollmentType undocumented
+type WindowsAutopilotEnrollmentType int
+
+const (
+ // WindowsAutopilotEnrollmentTypeVUnknown undocumented
+ WindowsAutopilotEnrollmentTypeVUnknown WindowsAutopilotEnrollmentType = 0
+ // WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile undocumented
+ WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile WindowsAutopilotEnrollmentType = 1
+ // WindowsAutopilotEnrollmentTypeVOfflineDomainJoined undocumented
+ WindowsAutopilotEnrollmentTypeVOfflineDomainJoined WindowsAutopilotEnrollmentType = 2
+ // WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile undocumented
+ WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile WindowsAutopilotEnrollmentType = 3
+ // WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile undocumented
+ WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile WindowsAutopilotEnrollmentType = 4
+ // WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile undocumented
+ WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile WindowsAutopilotEnrollmentType = 5
+ // WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove undocumented
+ WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove WindowsAutopilotEnrollmentType = 6
+ // WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove undocumented
+ WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove WindowsAutopilotEnrollmentType = 7
+ // WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile undocumented
+ WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile WindowsAutopilotEnrollmentType = 8
+)
+
+// WindowsAutopilotEnrollmentTypePUnknown returns a pointer to WindowsAutopilotEnrollmentTypeVUnknown
+func WindowsAutopilotEnrollmentTypePUnknown() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVUnknown
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePAzureADJoinedWithAutopilotProfile returns a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile
+func WindowsAutopilotEnrollmentTypePAzureADJoinedWithAutopilotProfile() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePOfflineDomainJoined returns a pointer to WindowsAutopilotEnrollmentTypeVOfflineDomainJoined
+func WindowsAutopilotEnrollmentTypePOfflineDomainJoined() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVOfflineDomainJoined
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithAutopilotProfile returns a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile
+func WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithAutopilotProfile() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile returns a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile
+func WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePAzureADJoinedWithOfflineAutopilotProfile returns a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile
+func WindowsAutopilotEnrollmentTypePAzureADJoinedWithOfflineAutopilotProfile() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePAzureADJoinedWithWhiteGlove returns a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove
+func WindowsAutopilotEnrollmentTypePAzureADJoinedWithWhiteGlove() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithWhiteGlove returns a pointer to WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove
+func WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithWhiteGlove() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithOfflineAutopilotProfile returns a pointer to WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile
+func WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithOfflineAutopilotProfile() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotProfileAssignmentDetailedStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotProfileAssignmentDetailedStatusEnum.go
new file mode 100644
index 00000000..f3548a43
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotProfileAssignmentDetailedStatusEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAutopilotProfileAssignmentDetailedStatus undocumented
+type WindowsAutopilotProfileAssignmentDetailedStatus int
+
+const (
+ // WindowsAutopilotProfileAssignmentDetailedStatusVNone undocumented
+ WindowsAutopilotProfileAssignmentDetailedStatusVNone WindowsAutopilotProfileAssignmentDetailedStatus = 0
+ // WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet undocumented
+ WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet WindowsAutopilotProfileAssignmentDetailedStatus = 1
+)
+
+// WindowsAutopilotProfileAssignmentDetailedStatusPNone returns a pointer to WindowsAutopilotProfileAssignmentDetailedStatusVNone
+func WindowsAutopilotProfileAssignmentDetailedStatusPNone() *WindowsAutopilotProfileAssignmentDetailedStatus {
+ v := WindowsAutopilotProfileAssignmentDetailedStatusVNone
+ return &v
+}
+
+// WindowsAutopilotProfileAssignmentDetailedStatusPHardwareRequirementsNotMet returns a pointer to WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet
+func WindowsAutopilotProfileAssignmentDetailedStatusPHardwareRequirementsNotMet() *WindowsAutopilotProfileAssignmentDetailedStatus {
+ v := WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotProfileAssignmentStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotProfileAssignmentStatusEnum.go
new file mode 100644
index 00000000..b227e4fc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotProfileAssignmentStatusEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAutopilotProfileAssignmentStatus undocumented
+type WindowsAutopilotProfileAssignmentStatus int
+
+const (
+ // WindowsAutopilotProfileAssignmentStatusVUnknown undocumented
+ WindowsAutopilotProfileAssignmentStatusVUnknown WindowsAutopilotProfileAssignmentStatus = 0
+ // WindowsAutopilotProfileAssignmentStatusVAssignedInSync undocumented
+ WindowsAutopilotProfileAssignmentStatusVAssignedInSync WindowsAutopilotProfileAssignmentStatus = 1
+ // WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync undocumented
+ WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync WindowsAutopilotProfileAssignmentStatus = 2
+ // WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState undocumented
+ WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState WindowsAutopilotProfileAssignmentStatus = 3
+ // WindowsAutopilotProfileAssignmentStatusVNotAssigned undocumented
+ WindowsAutopilotProfileAssignmentStatusVNotAssigned WindowsAutopilotProfileAssignmentStatus = 4
+ // WindowsAutopilotProfileAssignmentStatusVPending undocumented
+ WindowsAutopilotProfileAssignmentStatusVPending WindowsAutopilotProfileAssignmentStatus = 5
+ // WindowsAutopilotProfileAssignmentStatusVFailed undocumented
+ WindowsAutopilotProfileAssignmentStatusVFailed WindowsAutopilotProfileAssignmentStatus = 6
+)
+
+// WindowsAutopilotProfileAssignmentStatusPUnknown returns a pointer to WindowsAutopilotProfileAssignmentStatusVUnknown
+func WindowsAutopilotProfileAssignmentStatusPUnknown() *WindowsAutopilotProfileAssignmentStatus {
+ v := WindowsAutopilotProfileAssignmentStatusVUnknown
+ return &v
+}
+
+// WindowsAutopilotProfileAssignmentStatusPAssignedInSync returns a pointer to WindowsAutopilotProfileAssignmentStatusVAssignedInSync
+func WindowsAutopilotProfileAssignmentStatusPAssignedInSync() *WindowsAutopilotProfileAssignmentStatus {
+ v := WindowsAutopilotProfileAssignmentStatusVAssignedInSync
+ return &v
+}
+
+// WindowsAutopilotProfileAssignmentStatusPAssignedOutOfSync returns a pointer to WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync
+func WindowsAutopilotProfileAssignmentStatusPAssignedOutOfSync() *WindowsAutopilotProfileAssignmentStatus {
+ v := WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync
+ return &v
+}
+
+// WindowsAutopilotProfileAssignmentStatusPAssignedUnkownSyncState returns a pointer to WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState
+func WindowsAutopilotProfileAssignmentStatusPAssignedUnkownSyncState() *WindowsAutopilotProfileAssignmentStatus {
+ v := WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState
+ return &v
+}
+
+// WindowsAutopilotProfileAssignmentStatusPNotAssigned returns a pointer to WindowsAutopilotProfileAssignmentStatusVNotAssigned
+func WindowsAutopilotProfileAssignmentStatusPNotAssigned() *WindowsAutopilotProfileAssignmentStatus {
+ v := WindowsAutopilotProfileAssignmentStatusVNotAssigned
+ return &v
+}
+
+// WindowsAutopilotProfileAssignmentStatusPPending returns a pointer to WindowsAutopilotProfileAssignmentStatusVPending
+func WindowsAutopilotProfileAssignmentStatusPPending() *WindowsAutopilotProfileAssignmentStatus {
+ v := WindowsAutopilotProfileAssignmentStatusVPending
+ return &v
+}
+
+// WindowsAutopilotProfileAssignmentStatusPFailed returns a pointer to WindowsAutopilotProfileAssignmentStatusVFailed
+func WindowsAutopilotProfileAssignmentStatusPFailed() *WindowsAutopilotProfileAssignmentStatus {
+ v := WindowsAutopilotProfileAssignmentStatusVFailed
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsAction.go
new file mode 100644
index 00000000..bbc90da4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsAutopilotSettingsSyncRequestParameter undocumented
+type WindowsAutopilotSettingsSyncRequestParameter struct {
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsModel.go
new file mode 100644
index 00000000..fc8b6147
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsRequest.go
new file mode 100644
index 00000000..8b6d9a74
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSyncStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSyncStatusEnum.go
new file mode 100644
index 00000000..13e8bd63
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSyncStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAutopilotSyncStatus undocumented
+type WindowsAutopilotSyncStatus int
+
+const (
+ // WindowsAutopilotSyncStatusVUnknown undocumented
+ WindowsAutopilotSyncStatusVUnknown WindowsAutopilotSyncStatus = 0
+ // WindowsAutopilotSyncStatusVInProgress undocumented
+ WindowsAutopilotSyncStatusVInProgress WindowsAutopilotSyncStatus = 1
+ // WindowsAutopilotSyncStatusVCompleted undocumented
+ WindowsAutopilotSyncStatusVCompleted WindowsAutopilotSyncStatus = 2
+ // WindowsAutopilotSyncStatusVFailed undocumented
+ WindowsAutopilotSyncStatusVFailed WindowsAutopilotSyncStatus = 3
+)
+
+// WindowsAutopilotSyncStatusPUnknown returns a pointer to WindowsAutopilotSyncStatusVUnknown
+func WindowsAutopilotSyncStatusPUnknown() *WindowsAutopilotSyncStatus {
+ v := WindowsAutopilotSyncStatusVUnknown
+ return &v
+}
+
+// WindowsAutopilotSyncStatusPInProgress returns a pointer to WindowsAutopilotSyncStatusVInProgress
+func WindowsAutopilotSyncStatusPInProgress() *WindowsAutopilotSyncStatus {
+ v := WindowsAutopilotSyncStatusVInProgress
+ return &v
+}
+
+// WindowsAutopilotSyncStatusPCompleted returns a pointer to WindowsAutopilotSyncStatusVCompleted
+func WindowsAutopilotSyncStatusPCompleted() *WindowsAutopilotSyncStatus {
+ v := WindowsAutopilotSyncStatusVCompleted
+ return &v
+}
+
+// WindowsAutopilotSyncStatusPFailed returns a pointer to WindowsAutopilotSyncStatusVFailed
+func WindowsAutopilotSyncStatusPFailed() *WindowsAutopilotSyncStatus {
+ v := WindowsAutopilotSyncStatusVFailed
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsCertificateProfileBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsCertificateProfileBaseModel.go
new file mode 100644
index 00000000..8e179650
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsCertificateProfileBaseModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsCertificateProfileBaseRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsCertificateProfileBaseRequest.go
new file mode 100644
index 00000000..5d2297a9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsCertificateProfileBaseRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderAdvancedThreatProtectionConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderAdvancedThreatProtectionConfigurationModel.go
new file mode 100644
index 00000000..cecbe4c8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderAdvancedThreatProtectionConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAction.go
new file mode 100644
index 00000000..73300e1e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsDefenderApplicationControlSupplementalPolicyAssignRequestParameter undocumented
+type WindowsDefenderApplicationControlSupplementalPolicyAssignRequestParameter struct {
+ // WdacPolicyAssignments undocumented
+ WdacPolicyAssignments []WindowsDefenderApplicationControlSupplementalPolicyAssignment `json:"wdacPolicyAssignments,omitempty"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentModel.go
new file mode 100644
index 00000000..b101bb76
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest.go
new file mode 100644
index 00000000..363d787a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusModel.go
new file mode 100644
index 00000000..fc6ebb09
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest.go
new file mode 100644
index 00000000..8efa95fd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Policy is navigation property
+func (b *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder) Policy() *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policy"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryModel.go
new file mode 100644
index 00000000..ec2ef953
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest.go
new file mode 100644
index 00000000..6401b50d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyModel.go
new file mode 100644
index 00000000..55b64856
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyRequest.go
new file mode 100644
index 00000000..7d428e4f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest) Get(ctx context.Context) ([]WindowsDefenderApplicationControlSupplementalPolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyStatusesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyStatusesEnum.go
new file mode 100644
index 00000000..80d73cbe
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyStatusesEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDefenderApplicationControlSupplementalPolicyStatuses undocumented
+type WindowsDefenderApplicationControlSupplementalPolicyStatuses int
+
+const (
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown undocumented
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown WindowsDefenderApplicationControlSupplementalPolicyStatuses = 0
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess undocumented
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess WindowsDefenderApplicationControlSupplementalPolicyStatuses = 1
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError undocumented
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError WindowsDefenderApplicationControlSupplementalPolicyStatuses = 2
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken undocumented
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken WindowsDefenderApplicationControlSupplementalPolicyStatuses = 3
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound undocumented
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound WindowsDefenderApplicationControlSupplementalPolicyStatuses = 4
+)
+
+// WindowsDefenderApplicationControlSupplementalPolicyStatusesPUnknown returns a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown
+func WindowsDefenderApplicationControlSupplementalPolicyStatusesPUnknown() *WindowsDefenderApplicationControlSupplementalPolicyStatuses {
+ v := WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown
+ return &v
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyStatusesPSuccess returns a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess
+func WindowsDefenderApplicationControlSupplementalPolicyStatusesPSuccess() *WindowsDefenderApplicationControlSupplementalPolicyStatuses {
+ v := WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess
+ return &v
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyStatusesPTokenError returns a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError
+func WindowsDefenderApplicationControlSupplementalPolicyStatusesPTokenError() *WindowsDefenderApplicationControlSupplementalPolicyStatuses {
+ v := WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError
+ return &v
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyStatusesPNotAuthorizedByToken returns a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken
+func WindowsDefenderApplicationControlSupplementalPolicyStatusesPNotAuthorizedByToken() *WindowsDefenderApplicationControlSupplementalPolicyStatuses {
+ v := WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken
+ return &v
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyStatusesPPolicyNotFound returns a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound
+func WindowsDefenderApplicationControlSupplementalPolicyStatusesPPolicyNotFound() *WindowsDefenderApplicationControlSupplementalPolicyStatuses {
+ v := WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderScanActionResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderScanActionResultModel.go
new file mode 100644
index 00000000..977c5ab2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderScanActionResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderTamperProtectionOptionsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderTamperProtectionOptionsEnum.go
new file mode 100644
index 00000000..e9b8d7f9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderTamperProtectionOptionsEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDefenderTamperProtectionOptions undocumented
+type WindowsDefenderTamperProtectionOptions int
+
+const (
+ // WindowsDefenderTamperProtectionOptionsVNotConfigured undocumented
+ WindowsDefenderTamperProtectionOptionsVNotConfigured WindowsDefenderTamperProtectionOptions = 0
+ // WindowsDefenderTamperProtectionOptionsVEnable undocumented
+ WindowsDefenderTamperProtectionOptionsVEnable WindowsDefenderTamperProtectionOptions = 1
+ // WindowsDefenderTamperProtectionOptionsVDisable undocumented
+ WindowsDefenderTamperProtectionOptionsVDisable WindowsDefenderTamperProtectionOptions = 2
+)
+
+// WindowsDefenderTamperProtectionOptionsPNotConfigured returns a pointer to WindowsDefenderTamperProtectionOptionsVNotConfigured
+func WindowsDefenderTamperProtectionOptionsPNotConfigured() *WindowsDefenderTamperProtectionOptions {
+ v := WindowsDefenderTamperProtectionOptionsVNotConfigured
+ return &v
+}
+
+// WindowsDefenderTamperProtectionOptionsPEnable returns a pointer to WindowsDefenderTamperProtectionOptionsVEnable
+func WindowsDefenderTamperProtectionOptionsPEnable() *WindowsDefenderTamperProtectionOptions {
+ v := WindowsDefenderTamperProtectionOptionsVEnable
+ return &v
+}
+
+// WindowsDefenderTamperProtectionOptionsPDisable returns a pointer to WindowsDefenderTamperProtectionOptionsVDisable
+func WindowsDefenderTamperProtectionOptionsPDisable() *WindowsDefenderTamperProtectionOptions {
+ v := WindowsDefenderTamperProtectionOptionsVDisable
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeliveryOptimizationConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeliveryOptimizationConfigurationModel.go
new file mode 100644
index 00000000..797b7571
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeliveryOptimizationConfigurationModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeliveryOptimizationModeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeliveryOptimizationModeEnum.go
new file mode 100644
index 00000000..5609257f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeliveryOptimizationModeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDeliveryOptimizationMode undocumented
+type WindowsDeliveryOptimizationMode int
+
+const (
+ // WindowsDeliveryOptimizationModeVUserDefined undocumented
+ WindowsDeliveryOptimizationModeVUserDefined WindowsDeliveryOptimizationMode = 0
+ // WindowsDeliveryOptimizationModeVHTTPOnly undocumented
+ WindowsDeliveryOptimizationModeVHTTPOnly WindowsDeliveryOptimizationMode = 1
+ // WindowsDeliveryOptimizationModeVHTTPWithPeeringNat undocumented
+ WindowsDeliveryOptimizationModeVHTTPWithPeeringNat WindowsDeliveryOptimizationMode = 2
+ // WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup undocumented
+ WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup WindowsDeliveryOptimizationMode = 3
+ // WindowsDeliveryOptimizationModeVHTTPWithInternetPeering undocumented
+ WindowsDeliveryOptimizationModeVHTTPWithInternetPeering WindowsDeliveryOptimizationMode = 4
+ // WindowsDeliveryOptimizationModeVSimpleDownload undocumented
+ WindowsDeliveryOptimizationModeVSimpleDownload WindowsDeliveryOptimizationMode = 99
+ // WindowsDeliveryOptimizationModeVBypassMode undocumented
+ WindowsDeliveryOptimizationModeVBypassMode WindowsDeliveryOptimizationMode = 100
+)
+
+// WindowsDeliveryOptimizationModePUserDefined returns a pointer to WindowsDeliveryOptimizationModeVUserDefined
+func WindowsDeliveryOptimizationModePUserDefined() *WindowsDeliveryOptimizationMode {
+ v := WindowsDeliveryOptimizationModeVUserDefined
+ return &v
+}
+
+// WindowsDeliveryOptimizationModePHTTPOnly returns a pointer to WindowsDeliveryOptimizationModeVHTTPOnly
+func WindowsDeliveryOptimizationModePHTTPOnly() *WindowsDeliveryOptimizationMode {
+ v := WindowsDeliveryOptimizationModeVHTTPOnly
+ return &v
+}
+
+// WindowsDeliveryOptimizationModePHTTPWithPeeringNat returns a pointer to WindowsDeliveryOptimizationModeVHTTPWithPeeringNat
+func WindowsDeliveryOptimizationModePHTTPWithPeeringNat() *WindowsDeliveryOptimizationMode {
+ v := WindowsDeliveryOptimizationModeVHTTPWithPeeringNat
+ return &v
+}
+
+// WindowsDeliveryOptimizationModePHTTPWithPeeringPrivateGroup returns a pointer to WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup
+func WindowsDeliveryOptimizationModePHTTPWithPeeringPrivateGroup() *WindowsDeliveryOptimizationMode {
+ v := WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup
+ return &v
+}
+
+// WindowsDeliveryOptimizationModePHTTPWithInternetPeering returns a pointer to WindowsDeliveryOptimizationModeVHTTPWithInternetPeering
+func WindowsDeliveryOptimizationModePHTTPWithInternetPeering() *WindowsDeliveryOptimizationMode {
+ v := WindowsDeliveryOptimizationModeVHTTPWithInternetPeering
+ return &v
+}
+
+// WindowsDeliveryOptimizationModePSimpleDownload returns a pointer to WindowsDeliveryOptimizationModeVSimpleDownload
+func WindowsDeliveryOptimizationModePSimpleDownload() *WindowsDeliveryOptimizationMode {
+ v := WindowsDeliveryOptimizationModeVSimpleDownload
+ return &v
+}
+
+// WindowsDeliveryOptimizationModePBypassMode returns a pointer to WindowsDeliveryOptimizationModeVBypassMode
+func WindowsDeliveryOptimizationModePBypassMode() *WindowsDeliveryOptimizationMode {
+ v := WindowsDeliveryOptimizationModeVBypassMode
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceADAccountModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceADAccountModel.go
new file mode 100644
index 00000000..560e20c6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceADAccountModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceAccountModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceAccountModel.go
new file mode 100644
index 00000000..0783b85b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceAccountModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDeviceAccount undocumented
+type WindowsDeviceAccount struct {
+ // Object is the base model of WindowsDeviceAccount
+ Object
+ // Password undocumented
+ Password *string `json:"password,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceAzureADAccountModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceAzureADAccountModel.go
new file mode 100644
index 00000000..e0510423
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceAzureADAccountModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDeviceAzureADAccount undocumented
+type WindowsDeviceAzureADAccount struct {
+ // WindowsDeviceAccount is the base model of WindowsDeviceAzureADAccount
+ WindowsDeviceAccount
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceHealthStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceHealthStateEnum.go
new file mode 100644
index 00000000..c40cac11
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceHealthStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDeviceHealthState undocumented
+type WindowsDeviceHealthState int
+
+const (
+ // WindowsDeviceHealthStateVClean undocumented
+ WindowsDeviceHealthStateVClean WindowsDeviceHealthState = 0
+ // WindowsDeviceHealthStateVFullScanPending undocumented
+ WindowsDeviceHealthStateVFullScanPending WindowsDeviceHealthState = 1
+ // WindowsDeviceHealthStateVRebootPending undocumented
+ WindowsDeviceHealthStateVRebootPending WindowsDeviceHealthState = 2
+ // WindowsDeviceHealthStateVManualStepsPending undocumented
+ WindowsDeviceHealthStateVManualStepsPending WindowsDeviceHealthState = 4
+ // WindowsDeviceHealthStateVOfflineScanPending undocumented
+ WindowsDeviceHealthStateVOfflineScanPending WindowsDeviceHealthState = 8
+ // WindowsDeviceHealthStateVCritical undocumented
+ WindowsDeviceHealthStateVCritical WindowsDeviceHealthState = 16
+)
+
+// WindowsDeviceHealthStatePClean returns a pointer to WindowsDeviceHealthStateVClean
+func WindowsDeviceHealthStatePClean() *WindowsDeviceHealthState {
+ v := WindowsDeviceHealthStateVClean
+ return &v
+}
+
+// WindowsDeviceHealthStatePFullScanPending returns a pointer to WindowsDeviceHealthStateVFullScanPending
+func WindowsDeviceHealthStatePFullScanPending() *WindowsDeviceHealthState {
+ v := WindowsDeviceHealthStateVFullScanPending
+ return &v
+}
+
+// WindowsDeviceHealthStatePRebootPending returns a pointer to WindowsDeviceHealthStateVRebootPending
+func WindowsDeviceHealthStatePRebootPending() *WindowsDeviceHealthState {
+ v := WindowsDeviceHealthStateVRebootPending
+ return &v
+}
+
+// WindowsDeviceHealthStatePManualStepsPending returns a pointer to WindowsDeviceHealthStateVManualStepsPending
+func WindowsDeviceHealthStatePManualStepsPending() *WindowsDeviceHealthState {
+ v := WindowsDeviceHealthStateVManualStepsPending
+ return &v
+}
+
+// WindowsDeviceHealthStatePOfflineScanPending returns a pointer to WindowsDeviceHealthStateVOfflineScanPending
+func WindowsDeviceHealthStatePOfflineScanPending() *WindowsDeviceHealthState {
+ v := WindowsDeviceHealthStateVOfflineScanPending
+ return &v
+}
+
+// WindowsDeviceHealthStatePCritical returns a pointer to WindowsDeviceHealthStateVCritical
+func WindowsDeviceHealthStatePCritical() *WindowsDeviceHealthState {
+ v := WindowsDeviceHealthStateVCritical
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceMalwareStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceMalwareStateModel.go
new file mode 100644
index 00000000..ec8b2dbd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceMalwareStateModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceMalwareStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceMalwareStateRequest.go
new file mode 100644
index 00000000..617c8206
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceMalwareStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceTypeEnum.go
new file mode 100644
index 00000000..9bb6952c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDeviceType undocumented
+type WindowsDeviceType int
+
+const (
+ // WindowsDeviceTypeVNone undocumented
+ WindowsDeviceTypeVNone WindowsDeviceType = 0
+ // WindowsDeviceTypeVDesktop undocumented
+ WindowsDeviceTypeVDesktop WindowsDeviceType = 1
+ // WindowsDeviceTypeVMobile undocumented
+ WindowsDeviceTypeVMobile WindowsDeviceType = 2
+ // WindowsDeviceTypeVHolographic undocumented
+ WindowsDeviceTypeVHolographic WindowsDeviceType = 4
+ // WindowsDeviceTypeVTeam undocumented
+ WindowsDeviceTypeVTeam WindowsDeviceType = 8
+)
+
+// WindowsDeviceTypePNone returns a pointer to WindowsDeviceTypeVNone
+func WindowsDeviceTypePNone() *WindowsDeviceType {
+ v := WindowsDeviceTypeVNone
+ return &v
+}
+
+// WindowsDeviceTypePDesktop returns a pointer to WindowsDeviceTypeVDesktop
+func WindowsDeviceTypePDesktop() *WindowsDeviceType {
+ v := WindowsDeviceTypeVDesktop
+ return &v
+}
+
+// WindowsDeviceTypePMobile returns a pointer to WindowsDeviceTypeVMobile
+func WindowsDeviceTypePMobile() *WindowsDeviceType {
+ v := WindowsDeviceTypeVMobile
+ return &v
+}
+
+// WindowsDeviceTypePHolographic returns a pointer to WindowsDeviceTypeVHolographic
+func WindowsDeviceTypePHolographic() *WindowsDeviceType {
+ v := WindowsDeviceTypeVHolographic
+ return &v
+}
+
+// WindowsDeviceTypePTeam returns a pointer to WindowsDeviceTypeVTeam
+func WindowsDeviceTypePTeam() *WindowsDeviceType {
+ v := WindowsDeviceTypeVTeam
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceUsageTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceUsageTypeEnum.go
new file mode 100644
index 00000000..c5646d5d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceUsageTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDeviceUsageType undocumented
+type WindowsDeviceUsageType int
+
+const (
+ // WindowsDeviceUsageTypeVSingleUser undocumented
+ WindowsDeviceUsageTypeVSingleUser WindowsDeviceUsageType = 0
+ // WindowsDeviceUsageTypeVShared undocumented
+ WindowsDeviceUsageTypeVShared WindowsDeviceUsageType = 1
+)
+
+// WindowsDeviceUsageTypePSingleUser returns a pointer to WindowsDeviceUsageTypeVSingleUser
+func WindowsDeviceUsageTypePSingleUser() *WindowsDeviceUsageType {
+ v := WindowsDeviceUsageTypeVSingleUser
+ return &v
+}
+
+// WindowsDeviceUsageTypePShared returns a pointer to WindowsDeviceUsageTypeVShared
+func WindowsDeviceUsageTypePShared() *WindowsDeviceUsageType {
+ v := WindowsDeviceUsageTypeVShared
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDomainJoinConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDomainJoinConfigurationModel.go
new file mode 100644
index 00000000..a8022d4e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDomainJoinConfigurationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDomainJoinConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDomainJoinConfigurationRequest.go
new file mode 100644
index 00000000..f00c1a72
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDomainJoinConfigurationRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfiguration collection
+func (r *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsEnrollmentStatusScreenSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsEnrollmentStatusScreenSettingsModel.go
new file mode 100644
index 00000000..28eb4ff0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsEnrollmentStatusScreenSettingsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAction.go
new file mode 100644
index 00000000..972e706d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsFeatureUpdateProfileAssignRequestParameter undocumented
+type WindowsFeatureUpdateProfileAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []WindowsFeatureUpdateProfileAssignment `json:"assignments,omitempty"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentModel.go
new file mode 100644
index 00000000..5b2de77c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentRequest.go
new file mode 100644
index 00000000..176e015a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileModel.go
new file mode 100644
index 00000000..8cbe30bd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileRequest.go
new file mode 100644
index 00000000..ce9463ca
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsFeatureUpdateProfileAssignment collection
+func (r *WindowsFeatureUpdateProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]WindowsFeatureUpdateProfileAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsUpdateState collection
+func (r *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest) Get(ctx context.Context) ([]WindowsUpdateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallNetworkProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallNetworkProfileModel.go
new file mode 100644
index 00000000..0202693c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallNetworkProfileModel.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleInterfaceTypesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleInterfaceTypesEnum.go
new file mode 100644
index 00000000..936af125
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleInterfaceTypesEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsFirewallRuleInterfaceTypes undocumented
+type WindowsFirewallRuleInterfaceTypes int
+
+const (
+ // WindowsFirewallRuleInterfaceTypesVNotConfigured undocumented
+ WindowsFirewallRuleInterfaceTypesVNotConfigured WindowsFirewallRuleInterfaceTypes = 0
+ // WindowsFirewallRuleInterfaceTypesVRemoteAccess undocumented
+ WindowsFirewallRuleInterfaceTypesVRemoteAccess WindowsFirewallRuleInterfaceTypes = 1
+ // WindowsFirewallRuleInterfaceTypesVWireless undocumented
+ WindowsFirewallRuleInterfaceTypesVWireless WindowsFirewallRuleInterfaceTypes = 2
+ // WindowsFirewallRuleInterfaceTypesVLan undocumented
+ WindowsFirewallRuleInterfaceTypesVLan WindowsFirewallRuleInterfaceTypes = 4
+)
+
+// WindowsFirewallRuleInterfaceTypesPNotConfigured returns a pointer to WindowsFirewallRuleInterfaceTypesVNotConfigured
+func WindowsFirewallRuleInterfaceTypesPNotConfigured() *WindowsFirewallRuleInterfaceTypes {
+ v := WindowsFirewallRuleInterfaceTypesVNotConfigured
+ return &v
+}
+
+// WindowsFirewallRuleInterfaceTypesPRemoteAccess returns a pointer to WindowsFirewallRuleInterfaceTypesVRemoteAccess
+func WindowsFirewallRuleInterfaceTypesPRemoteAccess() *WindowsFirewallRuleInterfaceTypes {
+ v := WindowsFirewallRuleInterfaceTypesVRemoteAccess
+ return &v
+}
+
+// WindowsFirewallRuleInterfaceTypesPWireless returns a pointer to WindowsFirewallRuleInterfaceTypesVWireless
+func WindowsFirewallRuleInterfaceTypesPWireless() *WindowsFirewallRuleInterfaceTypes {
+ v := WindowsFirewallRuleInterfaceTypesVWireless
+ return &v
+}
+
+// WindowsFirewallRuleInterfaceTypesPLan returns a pointer to WindowsFirewallRuleInterfaceTypesVLan
+func WindowsFirewallRuleInterfaceTypesPLan() *WindowsFirewallRuleInterfaceTypes {
+ v := WindowsFirewallRuleInterfaceTypesVLan
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleModel.go
new file mode 100644
index 00000000..fe6a9a17
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleNetworkProfileTypesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleNetworkProfileTypesEnum.go
new file mode 100644
index 00000000..3aec0916
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleNetworkProfileTypesEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsFirewallRuleNetworkProfileTypes undocumented
+type WindowsFirewallRuleNetworkProfileTypes int
+
+const (
+ // WindowsFirewallRuleNetworkProfileTypesVNotConfigured undocumented
+ WindowsFirewallRuleNetworkProfileTypesVNotConfigured WindowsFirewallRuleNetworkProfileTypes = 0
+ // WindowsFirewallRuleNetworkProfileTypesVDomain undocumented
+ WindowsFirewallRuleNetworkProfileTypesVDomain WindowsFirewallRuleNetworkProfileTypes = 1
+ // WindowsFirewallRuleNetworkProfileTypesVPrivate undocumented
+ WindowsFirewallRuleNetworkProfileTypesVPrivate WindowsFirewallRuleNetworkProfileTypes = 2
+ // WindowsFirewallRuleNetworkProfileTypesVPublic undocumented
+ WindowsFirewallRuleNetworkProfileTypesVPublic WindowsFirewallRuleNetworkProfileTypes = 4
+)
+
+// WindowsFirewallRuleNetworkProfileTypesPNotConfigured returns a pointer to WindowsFirewallRuleNetworkProfileTypesVNotConfigured
+func WindowsFirewallRuleNetworkProfileTypesPNotConfigured() *WindowsFirewallRuleNetworkProfileTypes {
+ v := WindowsFirewallRuleNetworkProfileTypesVNotConfigured
+ return &v
+}
+
+// WindowsFirewallRuleNetworkProfileTypesPDomain returns a pointer to WindowsFirewallRuleNetworkProfileTypesVDomain
+func WindowsFirewallRuleNetworkProfileTypesPDomain() *WindowsFirewallRuleNetworkProfileTypes {
+ v := WindowsFirewallRuleNetworkProfileTypesVDomain
+ return &v
+}
+
+// WindowsFirewallRuleNetworkProfileTypesPPrivate returns a pointer to WindowsFirewallRuleNetworkProfileTypesVPrivate
+func WindowsFirewallRuleNetworkProfileTypesPPrivate() *WindowsFirewallRuleNetworkProfileTypes {
+ v := WindowsFirewallRuleNetworkProfileTypesVPrivate
+ return &v
+}
+
+// WindowsFirewallRuleNetworkProfileTypesPPublic returns a pointer to WindowsFirewallRuleNetworkProfileTypesVPublic
+func WindowsFirewallRuleNetworkProfileTypesPPublic() *WindowsFirewallRuleNetworkProfileTypes {
+ v := WindowsFirewallRuleNetworkProfileTypesVPublic
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleTrafficDirectionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleTrafficDirectionTypeEnum.go
new file mode 100644
index 00000000..7202feb3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleTrafficDirectionTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsFirewallRuleTrafficDirectionType undocumented
+type WindowsFirewallRuleTrafficDirectionType int
+
+const (
+ // WindowsFirewallRuleTrafficDirectionTypeVNotConfigured undocumented
+ WindowsFirewallRuleTrafficDirectionTypeVNotConfigured WindowsFirewallRuleTrafficDirectionType = 0
+ // WindowsFirewallRuleTrafficDirectionTypeVOut undocumented
+ WindowsFirewallRuleTrafficDirectionTypeVOut WindowsFirewallRuleTrafficDirectionType = 1
+ // WindowsFirewallRuleTrafficDirectionTypeVIn undocumented
+ WindowsFirewallRuleTrafficDirectionTypeVIn WindowsFirewallRuleTrafficDirectionType = 2
+)
+
+// WindowsFirewallRuleTrafficDirectionTypePNotConfigured returns a pointer to WindowsFirewallRuleTrafficDirectionTypeVNotConfigured
+func WindowsFirewallRuleTrafficDirectionTypePNotConfigured() *WindowsFirewallRuleTrafficDirectionType {
+ v := WindowsFirewallRuleTrafficDirectionTypeVNotConfigured
+ return &v
+}
+
+// WindowsFirewallRuleTrafficDirectionTypePOut returns a pointer to WindowsFirewallRuleTrafficDirectionTypeVOut
+func WindowsFirewallRuleTrafficDirectionTypePOut() *WindowsFirewallRuleTrafficDirectionType {
+ v := WindowsFirewallRuleTrafficDirectionTypeVOut
+ return &v
+}
+
+// WindowsFirewallRuleTrafficDirectionTypePIn returns a pointer to WindowsFirewallRuleTrafficDirectionTypeVIn
+func WindowsFirewallRuleTrafficDirectionTypePIn() *WindowsFirewallRuleTrafficDirectionType {
+ v := WindowsFirewallRuleTrafficDirectionTypeVIn
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsHealthMonitoringConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsHealthMonitoringConfigurationModel.go
new file mode 100644
index 00000000..556f6235
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsHealthMonitoringConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsHealthMonitoringScopeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsHealthMonitoringScopeEnum.go
new file mode 100644
index 00000000..e2293e74
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsHealthMonitoringScopeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsHealthMonitoringScope undocumented
+type WindowsHealthMonitoringScope int
+
+const (
+ // WindowsHealthMonitoringScopeVUndefined undocumented
+ WindowsHealthMonitoringScopeVUndefined WindowsHealthMonitoringScope = 0
+ // WindowsHealthMonitoringScopeVHealthMonitoring undocumented
+ WindowsHealthMonitoringScopeVHealthMonitoring WindowsHealthMonitoringScope = 1
+ // WindowsHealthMonitoringScopeVBootPerformance undocumented
+ WindowsHealthMonitoringScopeVBootPerformance WindowsHealthMonitoringScope = 2
+ // WindowsHealthMonitoringScopeVUserExperienceAnalytics undocumented
+ WindowsHealthMonitoringScopeVUserExperienceAnalytics WindowsHealthMonitoringScope = 4
+)
+
+// WindowsHealthMonitoringScopePUndefined returns a pointer to WindowsHealthMonitoringScopeVUndefined
+func WindowsHealthMonitoringScopePUndefined() *WindowsHealthMonitoringScope {
+ v := WindowsHealthMonitoringScopeVUndefined
+ return &v
+}
+
+// WindowsHealthMonitoringScopePHealthMonitoring returns a pointer to WindowsHealthMonitoringScopeVHealthMonitoring
+func WindowsHealthMonitoringScopePHealthMonitoring() *WindowsHealthMonitoringScope {
+ v := WindowsHealthMonitoringScopeVHealthMonitoring
+ return &v
+}
+
+// WindowsHealthMonitoringScopePBootPerformance returns a pointer to WindowsHealthMonitoringScopeVBootPerformance
+func WindowsHealthMonitoringScopePBootPerformance() *WindowsHealthMonitoringScope {
+ v := WindowsHealthMonitoringScopeVBootPerformance
+ return &v
+}
+
+// WindowsHealthMonitoringScopePUserExperienceAnalytics returns a pointer to WindowsHealthMonitoringScopeVUserExperienceAnalytics
+func WindowsHealthMonitoringScopePUserExperienceAnalytics() *WindowsHealthMonitoringScope {
+ v := WindowsHealthMonitoringScopeVUserExperienceAnalytics
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsHelloForBusinessPinUsageEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsHelloForBusinessPinUsageEnum.go
new file mode 100644
index 00000000..4c89e684
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsHelloForBusinessPinUsageEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsHelloForBusinessPinUsage undocumented
+type WindowsHelloForBusinessPinUsage int
+
+const (
+ // WindowsHelloForBusinessPinUsageVAllowed undocumented
+ WindowsHelloForBusinessPinUsageVAllowed WindowsHelloForBusinessPinUsage = 0
+ // WindowsHelloForBusinessPinUsageVRequired undocumented
+ WindowsHelloForBusinessPinUsageVRequired WindowsHelloForBusinessPinUsage = 1
+ // WindowsHelloForBusinessPinUsageVDisallowed undocumented
+ WindowsHelloForBusinessPinUsageVDisallowed WindowsHelloForBusinessPinUsage = 2
+)
+
+// WindowsHelloForBusinessPinUsagePAllowed returns a pointer to WindowsHelloForBusinessPinUsageVAllowed
+func WindowsHelloForBusinessPinUsagePAllowed() *WindowsHelloForBusinessPinUsage {
+ v := WindowsHelloForBusinessPinUsageVAllowed
+ return &v
+}
+
+// WindowsHelloForBusinessPinUsagePRequired returns a pointer to WindowsHelloForBusinessPinUsageVRequired
+func WindowsHelloForBusinessPinUsagePRequired() *WindowsHelloForBusinessPinUsage {
+ v := WindowsHelloForBusinessPinUsageVRequired
+ return &v
+}
+
+// WindowsHelloForBusinessPinUsagePDisallowed returns a pointer to WindowsHelloForBusinessPinUsageVDisallowed
+func WindowsHelloForBusinessPinUsagePDisallowed() *WindowsHelloForBusinessPinUsage {
+ v := WindowsHelloForBusinessPinUsageVDisallowed
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsIdentityProtectionConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsIdentityProtectionConfigurationModel.go
new file mode 100644
index 00000000..bdd0e84f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsIdentityProtectionConfigurationModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAction.go
new file mode 100644
index 00000000..f88b0404
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsInformationProtectionAssignRequestParameter undocumented
+type WindowsInformationProtectionAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLearningSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLearningSummaryModel.go
new file mode 100644
index 00000000..a47f398e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLearningSummaryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLearningSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLearningSummaryRequest.go
new file mode 100644
index 00000000..61d1c137
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLearningSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLockerFileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLockerFileModel.go
new file mode 100644
index 00000000..baf4a292
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLockerFileModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLockerFileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLockerFileRequest.go
new file mode 100644
index 00000000..ff35c986
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLockerFileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppModel.go
new file mode 100644
index 00000000..ec849505
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDataRecoveryCertificateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDataRecoveryCertificateModel.go
new file mode 100644
index 00000000..6f20d9d1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDataRecoveryCertificateModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDesktopAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDesktopAppModel.go
new file mode 100644
index 00000000..0d437c68
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDesktopAppModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationAction.go
new file mode 100644
index 00000000..faa761bd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsInformationProtectionDeviceRegistrationWipeRequestParameter undocumented
+type WindowsInformationProtectionDeviceRegistrationWipeRequestParameter struct {
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationModel.go
new file mode 100644
index 00000000..1e682e63
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationRequest.go
new file mode 100644
index 00000000..f89bf688
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionEnforcementLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionEnforcementLevelEnum.go
new file mode 100644
index 00000000..fa741cb7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionEnforcementLevelEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsInformationProtectionEnforcementLevel undocumented
+type WindowsInformationProtectionEnforcementLevel int
+
+const (
+ // WindowsInformationProtectionEnforcementLevelVNoProtection undocumented
+ WindowsInformationProtectionEnforcementLevelVNoProtection WindowsInformationProtectionEnforcementLevel = 0
+ // WindowsInformationProtectionEnforcementLevelVEncryptAndAuditOnly undocumented
+ WindowsInformationProtectionEnforcementLevelVEncryptAndAuditOnly WindowsInformationProtectionEnforcementLevel = 1
+ // WindowsInformationProtectionEnforcementLevelVEncryptAuditAndPrompt undocumented
+ WindowsInformationProtectionEnforcementLevelVEncryptAuditAndPrompt WindowsInformationProtectionEnforcementLevel = 2
+ // WindowsInformationProtectionEnforcementLevelVEncryptAuditAndBlock undocumented
+ WindowsInformationProtectionEnforcementLevelVEncryptAuditAndBlock WindowsInformationProtectionEnforcementLevel = 3
+)
+
+// WindowsInformationProtectionEnforcementLevelPNoProtection returns a pointer to WindowsInformationProtectionEnforcementLevelVNoProtection
+func WindowsInformationProtectionEnforcementLevelPNoProtection() *WindowsInformationProtectionEnforcementLevel {
+ v := WindowsInformationProtectionEnforcementLevelVNoProtection
+ return &v
+}
+
+// WindowsInformationProtectionEnforcementLevelPEncryptAndAuditOnly returns a pointer to WindowsInformationProtectionEnforcementLevelVEncryptAndAuditOnly
+func WindowsInformationProtectionEnforcementLevelPEncryptAndAuditOnly() *WindowsInformationProtectionEnforcementLevel {
+ v := WindowsInformationProtectionEnforcementLevelVEncryptAndAuditOnly
+ return &v
+}
+
+// WindowsInformationProtectionEnforcementLevelPEncryptAuditAndPrompt returns a pointer to WindowsInformationProtectionEnforcementLevelVEncryptAuditAndPrompt
+func WindowsInformationProtectionEnforcementLevelPEncryptAuditAndPrompt() *WindowsInformationProtectionEnforcementLevel {
+ v := WindowsInformationProtectionEnforcementLevelVEncryptAuditAndPrompt
+ return &v
+}
+
+// WindowsInformationProtectionEnforcementLevelPEncryptAuditAndBlock returns a pointer to WindowsInformationProtectionEnforcementLevelVEncryptAuditAndBlock
+func WindowsInformationProtectionEnforcementLevelPEncryptAuditAndBlock() *WindowsInformationProtectionEnforcementLevel {
+ v := WindowsInformationProtectionEnforcementLevelVEncryptAuditAndBlock
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionIPRangeCollectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionIPRangeCollectionModel.go
new file mode 100644
index 00000000..85bf59d1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionIPRangeCollectionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionModel.go
new file mode 100644
index 00000000..ee2f7e8b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionModel.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionNetworkLearningSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionNetworkLearningSummaryModel.go
new file mode 100644
index 00000000..7acc44b3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionNetworkLearningSummaryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionNetworkLearningSummaryRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionNetworkLearningSummaryRequest.go
new file mode 100644
index 00000000..7b4dacd6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionNetworkLearningSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPinCharacterRequirementsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPinCharacterRequirementsEnum.go
new file mode 100644
index 00000000..b2679ccc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPinCharacterRequirementsEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsInformationProtectionPinCharacterRequirements undocumented
+type WindowsInformationProtectionPinCharacterRequirements int
+
+const (
+ // WindowsInformationProtectionPinCharacterRequirementsVNotAllow undocumented
+ WindowsInformationProtectionPinCharacterRequirementsVNotAllow WindowsInformationProtectionPinCharacterRequirements = 0
+ // WindowsInformationProtectionPinCharacterRequirementsVRequireAtLeastOne undocumented
+ WindowsInformationProtectionPinCharacterRequirementsVRequireAtLeastOne WindowsInformationProtectionPinCharacterRequirements = 1
+ // WindowsInformationProtectionPinCharacterRequirementsVAllow undocumented
+ WindowsInformationProtectionPinCharacterRequirementsVAllow WindowsInformationProtectionPinCharacterRequirements = 2
+)
+
+// WindowsInformationProtectionPinCharacterRequirementsPNotAllow returns a pointer to WindowsInformationProtectionPinCharacterRequirementsVNotAllow
+func WindowsInformationProtectionPinCharacterRequirementsPNotAllow() *WindowsInformationProtectionPinCharacterRequirements {
+ v := WindowsInformationProtectionPinCharacterRequirementsVNotAllow
+ return &v
+}
+
+// WindowsInformationProtectionPinCharacterRequirementsPRequireAtLeastOne returns a pointer to WindowsInformationProtectionPinCharacterRequirementsVRequireAtLeastOne
+func WindowsInformationProtectionPinCharacterRequirementsPRequireAtLeastOne() *WindowsInformationProtectionPinCharacterRequirements {
+ v := WindowsInformationProtectionPinCharacterRequirementsVRequireAtLeastOne
+ return &v
+}
+
+// WindowsInformationProtectionPinCharacterRequirementsPAllow returns a pointer to WindowsInformationProtectionPinCharacterRequirementsVAllow
+func WindowsInformationProtectionPinCharacterRequirementsPAllow() *WindowsInformationProtectionPinCharacterRequirements {
+ v := WindowsInformationProtectionPinCharacterRequirementsVAllow
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPolicyModel.go
new file mode 100644
index 00000000..535bd112
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPolicyModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPolicyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPolicyRequest.go
new file mode 100644
index 00000000..dbca0b71
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPolicyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionProxiedDomainCollectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionProxiedDomainCollectionModel.go
new file mode 100644
index 00000000..131a22a1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionProxiedDomainCollectionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionRequest.go
new file mode 100644
index 00000000..f4505689
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TargetedManagedAppPolicyAssignment collection
+func (r *WindowsInformationProtectionAssignmentsCollectionRequest) Get(ctx context.Context) ([]TargetedManagedAppPolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsInformationProtectionAppLockerFile collection
+func (r *WindowsInformationProtectionExemptAppLockerFilesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionAppLockerFile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsInformationProtectionAppLockerFile collection
+func (r *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionAppLockerFile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionResourceCollectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionResourceCollectionModel.go
new file mode 100644
index 00000000..d1f568e8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionResourceCollectionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionStoreAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionStoreAppModel.go
new file mode 100644
index 00000000..d4861f0a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionStoreAppModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsInformationProtectionStoreApp undocumented
+type WindowsInformationProtectionStoreApp struct {
+ // WindowsInformationProtectionApp is the base model of WindowsInformationProtectionStoreApp
+ WindowsInformationProtectionApp
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionWipeActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionWipeActionModel.go
new file mode 100644
index 00000000..cbda4829
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionWipeActionModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionWipeActionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionWipeActionRequest.go
new file mode 100644
index 00000000..01c94f01
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionWipeActionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskActiveDirectoryGroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskActiveDirectoryGroupModel.go
new file mode 100644
index 00000000..8686512e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskActiveDirectoryGroupModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppBaseModel.go
new file mode 100644
index 00000000..818d303d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppBaseModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppConfigurationModel.go
new file mode 100644
index 00000000..14b028e8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppConfigurationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsKioskAppConfiguration undocumented
+type WindowsKioskAppConfiguration struct {
+ // Object is the base model of WindowsKioskAppConfiguration
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppTypeEnum.go
new file mode 100644
index 00000000..888c249d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsKioskAppType undocumented
+type WindowsKioskAppType int
+
+const (
+ // WindowsKioskAppTypeVUnknown undocumented
+ WindowsKioskAppTypeVUnknown WindowsKioskAppType = 0
+ // WindowsKioskAppTypeVStore undocumented
+ WindowsKioskAppTypeVStore WindowsKioskAppType = 1
+ // WindowsKioskAppTypeVDesktop undocumented
+ WindowsKioskAppTypeVDesktop WindowsKioskAppType = 2
+ // WindowsKioskAppTypeVAumID undocumented
+ WindowsKioskAppTypeVAumID WindowsKioskAppType = 3
+)
+
+// WindowsKioskAppTypePUnknown returns a pointer to WindowsKioskAppTypeVUnknown
+func WindowsKioskAppTypePUnknown() *WindowsKioskAppType {
+ v := WindowsKioskAppTypeVUnknown
+ return &v
+}
+
+// WindowsKioskAppTypePStore returns a pointer to WindowsKioskAppTypeVStore
+func WindowsKioskAppTypePStore() *WindowsKioskAppType {
+ v := WindowsKioskAppTypeVStore
+ return &v
+}
+
+// WindowsKioskAppTypePDesktop returns a pointer to WindowsKioskAppTypeVDesktop
+func WindowsKioskAppTypePDesktop() *WindowsKioskAppType {
+ v := WindowsKioskAppTypeVDesktop
+ return &v
+}
+
+// WindowsKioskAppTypePAumID returns a pointer to WindowsKioskAppTypeVAumID
+func WindowsKioskAppTypePAumID() *WindowsKioskAppType {
+ v := WindowsKioskAppTypeVAumID
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAutologonModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAutologonModel.go
new file mode 100644
index 00000000..0272a681
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAutologonModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsKioskAutologon undocumented
+type WindowsKioskAutologon struct {
+ // WindowsKioskUser is the base model of WindowsKioskAutologon
+ WindowsKioskUser
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAzureADGroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAzureADGroupModel.go
new file mode 100644
index 00000000..96596805
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAzureADGroupModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAzureADUserModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAzureADUserModel.go
new file mode 100644
index 00000000..273684f5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAzureADUserModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskConfigurationModel.go
new file mode 100644
index 00000000..adbf6991
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskDesktopAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskDesktopAppModel.go
new file mode 100644
index 00000000..06c58b0b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskDesktopAppModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskForceUpdateScheduleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskForceUpdateScheduleModel.go
new file mode 100644
index 00000000..7226e0f2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskForceUpdateScheduleModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskLocalGroupModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskLocalGroupModel.go
new file mode 100644
index 00000000..0d6b839c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskLocalGroupModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskLocalUserModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskLocalUserModel.go
new file mode 100644
index 00000000..7a616a69
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskLocalUserModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskMultipleAppsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskMultipleAppsModel.go
new file mode 100644
index 00000000..788a6b2a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskMultipleAppsModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskProfileModel.go
new file mode 100644
index 00000000..eb37a2b6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskProfileModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskSingleUWPAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskSingleUWPAppModel.go
new file mode 100644
index 00000000..843ae34d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskSingleUWPAppModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskUWPAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskUWPAppModel.go
new file mode 100644
index 00000000..a9b4cbde
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskUWPAppModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskUserModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskUserModel.go
new file mode 100644
index 00000000..f2abce52
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskUserModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsKioskUser undocumented
+type WindowsKioskUser struct {
+ // Object is the base model of WindowsKioskUser
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskVisitorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskVisitorModel.go
new file mode 100644
index 00000000..78f9373a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskVisitorModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsKioskVisitor undocumented
+type WindowsKioskVisitor struct {
+ // WindowsKioskUser is the base model of WindowsKioskVisitor
+ WindowsKioskUser
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareCategoryCountModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareCategoryCountModel.go
new file mode 100644
index 00000000..a7e52370
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareCategoryCountModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareCategoryEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareCategoryEnum.go
new file mode 100644
index 00000000..4b1244c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareCategoryEnum.go
@@ -0,0 +1,409 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsMalwareCategory undocumented
+type WindowsMalwareCategory int
+
+const (
+ // WindowsMalwareCategoryVInvalid undocumented
+ WindowsMalwareCategoryVInvalid WindowsMalwareCategory = 0
+ // WindowsMalwareCategoryVAdware undocumented
+ WindowsMalwareCategoryVAdware WindowsMalwareCategory = 1
+ // WindowsMalwareCategoryVSpyware undocumented
+ WindowsMalwareCategoryVSpyware WindowsMalwareCategory = 2
+ // WindowsMalwareCategoryVPasswordStealer undocumented
+ WindowsMalwareCategoryVPasswordStealer WindowsMalwareCategory = 3
+ // WindowsMalwareCategoryVTrojanDownloader undocumented
+ WindowsMalwareCategoryVTrojanDownloader WindowsMalwareCategory = 4
+ // WindowsMalwareCategoryVWorm undocumented
+ WindowsMalwareCategoryVWorm WindowsMalwareCategory = 5
+ // WindowsMalwareCategoryVBackdoor undocumented
+ WindowsMalwareCategoryVBackdoor WindowsMalwareCategory = 6
+ // WindowsMalwareCategoryVRemoteAccessTrojan undocumented
+ WindowsMalwareCategoryVRemoteAccessTrojan WindowsMalwareCategory = 7
+ // WindowsMalwareCategoryVTrojan undocumented
+ WindowsMalwareCategoryVTrojan WindowsMalwareCategory = 8
+ // WindowsMalwareCategoryVEmailFlooder undocumented
+ WindowsMalwareCategoryVEmailFlooder WindowsMalwareCategory = 9
+ // WindowsMalwareCategoryVKeylogger undocumented
+ WindowsMalwareCategoryVKeylogger WindowsMalwareCategory = 10
+ // WindowsMalwareCategoryVDialer undocumented
+ WindowsMalwareCategoryVDialer WindowsMalwareCategory = 11
+ // WindowsMalwareCategoryVMonitoringSoftware undocumented
+ WindowsMalwareCategoryVMonitoringSoftware WindowsMalwareCategory = 12
+ // WindowsMalwareCategoryVBrowserModifier undocumented
+ WindowsMalwareCategoryVBrowserModifier WindowsMalwareCategory = 13
+ // WindowsMalwareCategoryVCookie undocumented
+ WindowsMalwareCategoryVCookie WindowsMalwareCategory = 14
+ // WindowsMalwareCategoryVBrowserPlugin undocumented
+ WindowsMalwareCategoryVBrowserPlugin WindowsMalwareCategory = 15
+ // WindowsMalwareCategoryVAolExploit undocumented
+ WindowsMalwareCategoryVAolExploit WindowsMalwareCategory = 16
+ // WindowsMalwareCategoryVNuker undocumented
+ WindowsMalwareCategoryVNuker WindowsMalwareCategory = 17
+ // WindowsMalwareCategoryVSecurityDisabler undocumented
+ WindowsMalwareCategoryVSecurityDisabler WindowsMalwareCategory = 18
+ // WindowsMalwareCategoryVJokeProgram undocumented
+ WindowsMalwareCategoryVJokeProgram WindowsMalwareCategory = 19
+ // WindowsMalwareCategoryVHostileActiveXControl undocumented
+ WindowsMalwareCategoryVHostileActiveXControl WindowsMalwareCategory = 20
+ // WindowsMalwareCategoryVSoftwareBundler undocumented
+ WindowsMalwareCategoryVSoftwareBundler WindowsMalwareCategory = 21
+ // WindowsMalwareCategoryVStealthNotifier undocumented
+ WindowsMalwareCategoryVStealthNotifier WindowsMalwareCategory = 22
+ // WindowsMalwareCategoryVSettingsModifier undocumented
+ WindowsMalwareCategoryVSettingsModifier WindowsMalwareCategory = 23
+ // WindowsMalwareCategoryVToolBar undocumented
+ WindowsMalwareCategoryVToolBar WindowsMalwareCategory = 24
+ // WindowsMalwareCategoryVRemoteControlSoftware undocumented
+ WindowsMalwareCategoryVRemoteControlSoftware WindowsMalwareCategory = 25
+ // WindowsMalwareCategoryVTrojanFtp undocumented
+ WindowsMalwareCategoryVTrojanFtp WindowsMalwareCategory = 26
+ // WindowsMalwareCategoryVPotentialUnwantedSoftware undocumented
+ WindowsMalwareCategoryVPotentialUnwantedSoftware WindowsMalwareCategory = 27
+ // WindowsMalwareCategoryVIcqExploit undocumented
+ WindowsMalwareCategoryVIcqExploit WindowsMalwareCategory = 28
+ // WindowsMalwareCategoryVTrojanTelnet undocumented
+ WindowsMalwareCategoryVTrojanTelnet WindowsMalwareCategory = 29
+ // WindowsMalwareCategoryVExploit undocumented
+ WindowsMalwareCategoryVExploit WindowsMalwareCategory = 30
+ // WindowsMalwareCategoryVFilesharingProgram undocumented
+ WindowsMalwareCategoryVFilesharingProgram WindowsMalwareCategory = 31
+ // WindowsMalwareCategoryVMalwareCreationTool undocumented
+ WindowsMalwareCategoryVMalwareCreationTool WindowsMalwareCategory = 32
+ // WindowsMalwareCategoryVRemote_Control_Software undocumented
+ WindowsMalwareCategoryVRemote_Control_Software WindowsMalwareCategory = 33
+ // WindowsMalwareCategoryVTool undocumented
+ WindowsMalwareCategoryVTool WindowsMalwareCategory = 34
+ // WindowsMalwareCategoryVTrojanDenialOfService undocumented
+ WindowsMalwareCategoryVTrojanDenialOfService WindowsMalwareCategory = 36
+ // WindowsMalwareCategoryVTrojanDropper undocumented
+ WindowsMalwareCategoryVTrojanDropper WindowsMalwareCategory = 37
+ // WindowsMalwareCategoryVTrojanMassMailer undocumented
+ WindowsMalwareCategoryVTrojanMassMailer WindowsMalwareCategory = 38
+ // WindowsMalwareCategoryVTrojanMonitoringSoftware undocumented
+ WindowsMalwareCategoryVTrojanMonitoringSoftware WindowsMalwareCategory = 39
+ // WindowsMalwareCategoryVTrojanProxyServer undocumented
+ WindowsMalwareCategoryVTrojanProxyServer WindowsMalwareCategory = 40
+ // WindowsMalwareCategoryVVirus undocumented
+ WindowsMalwareCategoryVVirus WindowsMalwareCategory = 42
+ // WindowsMalwareCategoryVKnown undocumented
+ WindowsMalwareCategoryVKnown WindowsMalwareCategory = 43
+ // WindowsMalwareCategoryVUnknown undocumented
+ WindowsMalwareCategoryVUnknown WindowsMalwareCategory = 44
+ // WindowsMalwareCategoryVSpp undocumented
+ WindowsMalwareCategoryVSpp WindowsMalwareCategory = 45
+ // WindowsMalwareCategoryVBehavior undocumented
+ WindowsMalwareCategoryVBehavior WindowsMalwareCategory = 46
+ // WindowsMalwareCategoryVVulnerability undocumented
+ WindowsMalwareCategoryVVulnerability WindowsMalwareCategory = 47
+ // WindowsMalwareCategoryVPolicy undocumented
+ WindowsMalwareCategoryVPolicy WindowsMalwareCategory = 48
+ // WindowsMalwareCategoryVEnterpriseUnwantedSoftware undocumented
+ WindowsMalwareCategoryVEnterpriseUnwantedSoftware WindowsMalwareCategory = 49
+ // WindowsMalwareCategoryVRansom undocumented
+ WindowsMalwareCategoryVRansom WindowsMalwareCategory = 50
+ // WindowsMalwareCategoryVHipsRule undocumented
+ WindowsMalwareCategoryVHipsRule WindowsMalwareCategory = 51
+)
+
+// WindowsMalwareCategoryPInvalid returns a pointer to WindowsMalwareCategoryVInvalid
+func WindowsMalwareCategoryPInvalid() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVInvalid
+ return &v
+}
+
+// WindowsMalwareCategoryPAdware returns a pointer to WindowsMalwareCategoryVAdware
+func WindowsMalwareCategoryPAdware() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVAdware
+ return &v
+}
+
+// WindowsMalwareCategoryPSpyware returns a pointer to WindowsMalwareCategoryVSpyware
+func WindowsMalwareCategoryPSpyware() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVSpyware
+ return &v
+}
+
+// WindowsMalwareCategoryPPasswordStealer returns a pointer to WindowsMalwareCategoryVPasswordStealer
+func WindowsMalwareCategoryPPasswordStealer() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVPasswordStealer
+ return &v
+}
+
+// WindowsMalwareCategoryPTrojanDownloader returns a pointer to WindowsMalwareCategoryVTrojanDownloader
+func WindowsMalwareCategoryPTrojanDownloader() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVTrojanDownloader
+ return &v
+}
+
+// WindowsMalwareCategoryPWorm returns a pointer to WindowsMalwareCategoryVWorm
+func WindowsMalwareCategoryPWorm() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVWorm
+ return &v
+}
+
+// WindowsMalwareCategoryPBackdoor returns a pointer to WindowsMalwareCategoryVBackdoor
+func WindowsMalwareCategoryPBackdoor() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVBackdoor
+ return &v
+}
+
+// WindowsMalwareCategoryPRemoteAccessTrojan returns a pointer to WindowsMalwareCategoryVRemoteAccessTrojan
+func WindowsMalwareCategoryPRemoteAccessTrojan() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVRemoteAccessTrojan
+ return &v
+}
+
+// WindowsMalwareCategoryPTrojan returns a pointer to WindowsMalwareCategoryVTrojan
+func WindowsMalwareCategoryPTrojan() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVTrojan
+ return &v
+}
+
+// WindowsMalwareCategoryPEmailFlooder returns a pointer to WindowsMalwareCategoryVEmailFlooder
+func WindowsMalwareCategoryPEmailFlooder() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVEmailFlooder
+ return &v
+}
+
+// WindowsMalwareCategoryPKeylogger returns a pointer to WindowsMalwareCategoryVKeylogger
+func WindowsMalwareCategoryPKeylogger() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVKeylogger
+ return &v
+}
+
+// WindowsMalwareCategoryPDialer returns a pointer to WindowsMalwareCategoryVDialer
+func WindowsMalwareCategoryPDialer() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVDialer
+ return &v
+}
+
+// WindowsMalwareCategoryPMonitoringSoftware returns a pointer to WindowsMalwareCategoryVMonitoringSoftware
+func WindowsMalwareCategoryPMonitoringSoftware() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVMonitoringSoftware
+ return &v
+}
+
+// WindowsMalwareCategoryPBrowserModifier returns a pointer to WindowsMalwareCategoryVBrowserModifier
+func WindowsMalwareCategoryPBrowserModifier() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVBrowserModifier
+ return &v
+}
+
+// WindowsMalwareCategoryPCookie returns a pointer to WindowsMalwareCategoryVCookie
+func WindowsMalwareCategoryPCookie() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVCookie
+ return &v
+}
+
+// WindowsMalwareCategoryPBrowserPlugin returns a pointer to WindowsMalwareCategoryVBrowserPlugin
+func WindowsMalwareCategoryPBrowserPlugin() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVBrowserPlugin
+ return &v
+}
+
+// WindowsMalwareCategoryPAolExploit returns a pointer to WindowsMalwareCategoryVAolExploit
+func WindowsMalwareCategoryPAolExploit() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVAolExploit
+ return &v
+}
+
+// WindowsMalwareCategoryPNuker returns a pointer to WindowsMalwareCategoryVNuker
+func WindowsMalwareCategoryPNuker() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVNuker
+ return &v
+}
+
+// WindowsMalwareCategoryPSecurityDisabler returns a pointer to WindowsMalwareCategoryVSecurityDisabler
+func WindowsMalwareCategoryPSecurityDisabler() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVSecurityDisabler
+ return &v
+}
+
+// WindowsMalwareCategoryPJokeProgram returns a pointer to WindowsMalwareCategoryVJokeProgram
+func WindowsMalwareCategoryPJokeProgram() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVJokeProgram
+ return &v
+}
+
+// WindowsMalwareCategoryPHostileActiveXControl returns a pointer to WindowsMalwareCategoryVHostileActiveXControl
+func WindowsMalwareCategoryPHostileActiveXControl() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVHostileActiveXControl
+ return &v
+}
+
+// WindowsMalwareCategoryPSoftwareBundler returns a pointer to WindowsMalwareCategoryVSoftwareBundler
+func WindowsMalwareCategoryPSoftwareBundler() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVSoftwareBundler
+ return &v
+}
+
+// WindowsMalwareCategoryPStealthNotifier returns a pointer to WindowsMalwareCategoryVStealthNotifier
+func WindowsMalwareCategoryPStealthNotifier() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVStealthNotifier
+ return &v
+}
+
+// WindowsMalwareCategoryPSettingsModifier returns a pointer to WindowsMalwareCategoryVSettingsModifier
+func WindowsMalwareCategoryPSettingsModifier() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVSettingsModifier
+ return &v
+}
+
+// WindowsMalwareCategoryPToolBar returns a pointer to WindowsMalwareCategoryVToolBar
+func WindowsMalwareCategoryPToolBar() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVToolBar
+ return &v
+}
+
+// WindowsMalwareCategoryPRemoteControlSoftware returns a pointer to WindowsMalwareCategoryVRemoteControlSoftware
+func WindowsMalwareCategoryPRemoteControlSoftware() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVRemoteControlSoftware
+ return &v
+}
+
+// WindowsMalwareCategoryPTrojanFtp returns a pointer to WindowsMalwareCategoryVTrojanFtp
+func WindowsMalwareCategoryPTrojanFtp() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVTrojanFtp
+ return &v
+}
+
+// WindowsMalwareCategoryPPotentialUnwantedSoftware returns a pointer to WindowsMalwareCategoryVPotentialUnwantedSoftware
+func WindowsMalwareCategoryPPotentialUnwantedSoftware() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVPotentialUnwantedSoftware
+ return &v
+}
+
+// WindowsMalwareCategoryPIcqExploit returns a pointer to WindowsMalwareCategoryVIcqExploit
+func WindowsMalwareCategoryPIcqExploit() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVIcqExploit
+ return &v
+}
+
+// WindowsMalwareCategoryPTrojanTelnet returns a pointer to WindowsMalwareCategoryVTrojanTelnet
+func WindowsMalwareCategoryPTrojanTelnet() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVTrojanTelnet
+ return &v
+}
+
+// WindowsMalwareCategoryPExploit returns a pointer to WindowsMalwareCategoryVExploit
+func WindowsMalwareCategoryPExploit() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVExploit
+ return &v
+}
+
+// WindowsMalwareCategoryPFilesharingProgram returns a pointer to WindowsMalwareCategoryVFilesharingProgram
+func WindowsMalwareCategoryPFilesharingProgram() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVFilesharingProgram
+ return &v
+}
+
+// WindowsMalwareCategoryPMalwareCreationTool returns a pointer to WindowsMalwareCategoryVMalwareCreationTool
+func WindowsMalwareCategoryPMalwareCreationTool() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVMalwareCreationTool
+ return &v
+}
+
+// WindowsMalwareCategoryPRemote_Control_Software returns a pointer to WindowsMalwareCategoryVRemote_Control_Software
+func WindowsMalwareCategoryPRemote_Control_Software() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVRemote_Control_Software
+ return &v
+}
+
+// WindowsMalwareCategoryPTool returns a pointer to WindowsMalwareCategoryVTool
+func WindowsMalwareCategoryPTool() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVTool
+ return &v
+}
+
+// WindowsMalwareCategoryPTrojanDenialOfService returns a pointer to WindowsMalwareCategoryVTrojanDenialOfService
+func WindowsMalwareCategoryPTrojanDenialOfService() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVTrojanDenialOfService
+ return &v
+}
+
+// WindowsMalwareCategoryPTrojanDropper returns a pointer to WindowsMalwareCategoryVTrojanDropper
+func WindowsMalwareCategoryPTrojanDropper() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVTrojanDropper
+ return &v
+}
+
+// WindowsMalwareCategoryPTrojanMassMailer returns a pointer to WindowsMalwareCategoryVTrojanMassMailer
+func WindowsMalwareCategoryPTrojanMassMailer() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVTrojanMassMailer
+ return &v
+}
+
+// WindowsMalwareCategoryPTrojanMonitoringSoftware returns a pointer to WindowsMalwareCategoryVTrojanMonitoringSoftware
+func WindowsMalwareCategoryPTrojanMonitoringSoftware() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVTrojanMonitoringSoftware
+ return &v
+}
+
+// WindowsMalwareCategoryPTrojanProxyServer returns a pointer to WindowsMalwareCategoryVTrojanProxyServer
+func WindowsMalwareCategoryPTrojanProxyServer() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVTrojanProxyServer
+ return &v
+}
+
+// WindowsMalwareCategoryPVirus returns a pointer to WindowsMalwareCategoryVVirus
+func WindowsMalwareCategoryPVirus() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVVirus
+ return &v
+}
+
+// WindowsMalwareCategoryPKnown returns a pointer to WindowsMalwareCategoryVKnown
+func WindowsMalwareCategoryPKnown() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVKnown
+ return &v
+}
+
+// WindowsMalwareCategoryPUnknown returns a pointer to WindowsMalwareCategoryVUnknown
+func WindowsMalwareCategoryPUnknown() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVUnknown
+ return &v
+}
+
+// WindowsMalwareCategoryPSpp returns a pointer to WindowsMalwareCategoryVSpp
+func WindowsMalwareCategoryPSpp() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVSpp
+ return &v
+}
+
+// WindowsMalwareCategoryPBehavior returns a pointer to WindowsMalwareCategoryVBehavior
+func WindowsMalwareCategoryPBehavior() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVBehavior
+ return &v
+}
+
+// WindowsMalwareCategoryPVulnerability returns a pointer to WindowsMalwareCategoryVVulnerability
+func WindowsMalwareCategoryPVulnerability() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVVulnerability
+ return &v
+}
+
+// WindowsMalwareCategoryPPolicy returns a pointer to WindowsMalwareCategoryVPolicy
+func WindowsMalwareCategoryPPolicy() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVPolicy
+ return &v
+}
+
+// WindowsMalwareCategoryPEnterpriseUnwantedSoftware returns a pointer to WindowsMalwareCategoryVEnterpriseUnwantedSoftware
+func WindowsMalwareCategoryPEnterpriseUnwantedSoftware() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVEnterpriseUnwantedSoftware
+ return &v
+}
+
+// WindowsMalwareCategoryPRansom returns a pointer to WindowsMalwareCategoryVRansom
+func WindowsMalwareCategoryPRansom() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVRansom
+ return &v
+}
+
+// WindowsMalwareCategoryPHipsRule returns a pointer to WindowsMalwareCategoryVHipsRule
+func WindowsMalwareCategoryPHipsRule() *WindowsMalwareCategory {
+ v := WindowsMalwareCategoryVHipsRule
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareExecutionStateCountModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareExecutionStateCountModel.go
new file mode 100644
index 00000000..cac8563c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareExecutionStateCountModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareExecutionStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareExecutionStateEnum.go
new file mode 100644
index 00000000..7536bfcc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareExecutionStateEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsMalwareExecutionState undocumented
+type WindowsMalwareExecutionState int
+
+const (
+ // WindowsMalwareExecutionStateVUnknown undocumented
+ WindowsMalwareExecutionStateVUnknown WindowsMalwareExecutionState = 0
+ // WindowsMalwareExecutionStateVBlocked undocumented
+ WindowsMalwareExecutionStateVBlocked WindowsMalwareExecutionState = 1
+ // WindowsMalwareExecutionStateVAllowed undocumented
+ WindowsMalwareExecutionStateVAllowed WindowsMalwareExecutionState = 2
+ // WindowsMalwareExecutionStateVRunning undocumented
+ WindowsMalwareExecutionStateVRunning WindowsMalwareExecutionState = 3
+ // WindowsMalwareExecutionStateVNotRunning undocumented
+ WindowsMalwareExecutionStateVNotRunning WindowsMalwareExecutionState = 4
+)
+
+// WindowsMalwareExecutionStatePUnknown returns a pointer to WindowsMalwareExecutionStateVUnknown
+func WindowsMalwareExecutionStatePUnknown() *WindowsMalwareExecutionState {
+ v := WindowsMalwareExecutionStateVUnknown
+ return &v
+}
+
+// WindowsMalwareExecutionStatePBlocked returns a pointer to WindowsMalwareExecutionStateVBlocked
+func WindowsMalwareExecutionStatePBlocked() *WindowsMalwareExecutionState {
+ v := WindowsMalwareExecutionStateVBlocked
+ return &v
+}
+
+// WindowsMalwareExecutionStatePAllowed returns a pointer to WindowsMalwareExecutionStateVAllowed
+func WindowsMalwareExecutionStatePAllowed() *WindowsMalwareExecutionState {
+ v := WindowsMalwareExecutionStateVAllowed
+ return &v
+}
+
+// WindowsMalwareExecutionStatePRunning returns a pointer to WindowsMalwareExecutionStateVRunning
+func WindowsMalwareExecutionStatePRunning() *WindowsMalwareExecutionState {
+ v := WindowsMalwareExecutionStateVRunning
+ return &v
+}
+
+// WindowsMalwareExecutionStatePNotRunning returns a pointer to WindowsMalwareExecutionStateVNotRunning
+func WindowsMalwareExecutionStatePNotRunning() *WindowsMalwareExecutionState {
+ v := WindowsMalwareExecutionStateVNotRunning
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareInformationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareInformationModel.go
new file mode 100644
index 00000000..b03f44b5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareInformationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareInformationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareInformationRequest.go
new file mode 100644
index 00000000..23d9275a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareInformationRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsProtectionState collection
+func (r *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest) Get(ctx context.Context) ([]WindowsProtectionState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareNameCountModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareNameCountModel.go
new file mode 100644
index 00000000..bd9d1dc9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareNameCountModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareOverviewModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareOverviewModel.go
new file mode 100644
index 00000000..06668b58
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareOverviewModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareSeverityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareSeverityEnum.go
new file mode 100644
index 00000000..45005c53
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareSeverityEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsMalwareSeverity undocumented
+type WindowsMalwareSeverity int
+
+const (
+ // WindowsMalwareSeverityVUnknown undocumented
+ WindowsMalwareSeverityVUnknown WindowsMalwareSeverity = 0
+ // WindowsMalwareSeverityVLow undocumented
+ WindowsMalwareSeverityVLow WindowsMalwareSeverity = 1
+ // WindowsMalwareSeverityVModerate undocumented
+ WindowsMalwareSeverityVModerate WindowsMalwareSeverity = 2
+ // WindowsMalwareSeverityVHigh undocumented
+ WindowsMalwareSeverityVHigh WindowsMalwareSeverity = 4
+ // WindowsMalwareSeverityVSevere undocumented
+ WindowsMalwareSeverityVSevere WindowsMalwareSeverity = 5
+)
+
+// WindowsMalwareSeverityPUnknown returns a pointer to WindowsMalwareSeverityVUnknown
+func WindowsMalwareSeverityPUnknown() *WindowsMalwareSeverity {
+ v := WindowsMalwareSeverityVUnknown
+ return &v
+}
+
+// WindowsMalwareSeverityPLow returns a pointer to WindowsMalwareSeverityVLow
+func WindowsMalwareSeverityPLow() *WindowsMalwareSeverity {
+ v := WindowsMalwareSeverityVLow
+ return &v
+}
+
+// WindowsMalwareSeverityPModerate returns a pointer to WindowsMalwareSeverityVModerate
+func WindowsMalwareSeverityPModerate() *WindowsMalwareSeverity {
+ v := WindowsMalwareSeverityVModerate
+ return &v
+}
+
+// WindowsMalwareSeverityPHigh returns a pointer to WindowsMalwareSeverityVHigh
+func WindowsMalwareSeverityPHigh() *WindowsMalwareSeverity {
+ v := WindowsMalwareSeverityVHigh
+ return &v
+}
+
+// WindowsMalwareSeverityPSevere returns a pointer to WindowsMalwareSeverityVSevere
+func WindowsMalwareSeverityPSevere() *WindowsMalwareSeverity {
+ v := WindowsMalwareSeverityVSevere
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareStateCountModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareStateCountModel.go
new file mode 100644
index 00000000..fc022d82
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareStateCountModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareStateEnum.go
new file mode 100644
index 00000000..58e74fb7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareStateEnum.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsMalwareState undocumented
+type WindowsMalwareState int
+
+const (
+ // WindowsMalwareStateVUnknown undocumented
+ WindowsMalwareStateVUnknown WindowsMalwareState = 0
+ // WindowsMalwareStateVDetected undocumented
+ WindowsMalwareStateVDetected WindowsMalwareState = 1
+ // WindowsMalwareStateVCleaned undocumented
+ WindowsMalwareStateVCleaned WindowsMalwareState = 2
+ // WindowsMalwareStateVQuarantined undocumented
+ WindowsMalwareStateVQuarantined WindowsMalwareState = 3
+ // WindowsMalwareStateVRemoved undocumented
+ WindowsMalwareStateVRemoved WindowsMalwareState = 4
+ // WindowsMalwareStateVAllowed undocumented
+ WindowsMalwareStateVAllowed WindowsMalwareState = 5
+ // WindowsMalwareStateVBlocked undocumented
+ WindowsMalwareStateVBlocked WindowsMalwareState = 6
+ // WindowsMalwareStateVCleanFailed undocumented
+ WindowsMalwareStateVCleanFailed WindowsMalwareState = 102
+ // WindowsMalwareStateVQuarantineFailed undocumented
+ WindowsMalwareStateVQuarantineFailed WindowsMalwareState = 103
+ // WindowsMalwareStateVRemoveFailed undocumented
+ WindowsMalwareStateVRemoveFailed WindowsMalwareState = 104
+ // WindowsMalwareStateVAllowFailed undocumented
+ WindowsMalwareStateVAllowFailed WindowsMalwareState = 105
+ // WindowsMalwareStateVAbandoned undocumented
+ WindowsMalwareStateVAbandoned WindowsMalwareState = 106
+ // WindowsMalwareStateVBlockFailed undocumented
+ WindowsMalwareStateVBlockFailed WindowsMalwareState = 107
+)
+
+// WindowsMalwareStatePUnknown returns a pointer to WindowsMalwareStateVUnknown
+func WindowsMalwareStatePUnknown() *WindowsMalwareState {
+ v := WindowsMalwareStateVUnknown
+ return &v
+}
+
+// WindowsMalwareStatePDetected returns a pointer to WindowsMalwareStateVDetected
+func WindowsMalwareStatePDetected() *WindowsMalwareState {
+ v := WindowsMalwareStateVDetected
+ return &v
+}
+
+// WindowsMalwareStatePCleaned returns a pointer to WindowsMalwareStateVCleaned
+func WindowsMalwareStatePCleaned() *WindowsMalwareState {
+ v := WindowsMalwareStateVCleaned
+ return &v
+}
+
+// WindowsMalwareStatePQuarantined returns a pointer to WindowsMalwareStateVQuarantined
+func WindowsMalwareStatePQuarantined() *WindowsMalwareState {
+ v := WindowsMalwareStateVQuarantined
+ return &v
+}
+
+// WindowsMalwareStatePRemoved returns a pointer to WindowsMalwareStateVRemoved
+func WindowsMalwareStatePRemoved() *WindowsMalwareState {
+ v := WindowsMalwareStateVRemoved
+ return &v
+}
+
+// WindowsMalwareStatePAllowed returns a pointer to WindowsMalwareStateVAllowed
+func WindowsMalwareStatePAllowed() *WindowsMalwareState {
+ v := WindowsMalwareStateVAllowed
+ return &v
+}
+
+// WindowsMalwareStatePBlocked returns a pointer to WindowsMalwareStateVBlocked
+func WindowsMalwareStatePBlocked() *WindowsMalwareState {
+ v := WindowsMalwareStateVBlocked
+ return &v
+}
+
+// WindowsMalwareStatePCleanFailed returns a pointer to WindowsMalwareStateVCleanFailed
+func WindowsMalwareStatePCleanFailed() *WindowsMalwareState {
+ v := WindowsMalwareStateVCleanFailed
+ return &v
+}
+
+// WindowsMalwareStatePQuarantineFailed returns a pointer to WindowsMalwareStateVQuarantineFailed
+func WindowsMalwareStatePQuarantineFailed() *WindowsMalwareState {
+ v := WindowsMalwareStateVQuarantineFailed
+ return &v
+}
+
+// WindowsMalwareStatePRemoveFailed returns a pointer to WindowsMalwareStateVRemoveFailed
+func WindowsMalwareStatePRemoveFailed() *WindowsMalwareState {
+ v := WindowsMalwareStateVRemoveFailed
+ return &v
+}
+
+// WindowsMalwareStatePAllowFailed returns a pointer to WindowsMalwareStateVAllowFailed
+func WindowsMalwareStatePAllowFailed() *WindowsMalwareState {
+ v := WindowsMalwareStateVAllowFailed
+ return &v
+}
+
+// WindowsMalwareStatePAbandoned returns a pointer to WindowsMalwareStateVAbandoned
+func WindowsMalwareStatePAbandoned() *WindowsMalwareState {
+ v := WindowsMalwareStateVAbandoned
+ return &v
+}
+
+// WindowsMalwareStatePBlockFailed returns a pointer to WindowsMalwareStateVBlockFailed
+func WindowsMalwareStatePBlockFailed() *WindowsMalwareState {
+ v := WindowsMalwareStateVBlockFailed
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareThreatStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareThreatStateEnum.go
new file mode 100644
index 00000000..c7f2969e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareThreatStateEnum.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsMalwareThreatState undocumented
+type WindowsMalwareThreatState int
+
+const (
+ // WindowsMalwareThreatStateVActive undocumented
+ WindowsMalwareThreatStateVActive WindowsMalwareThreatState = 0
+ // WindowsMalwareThreatStateVActionFailed undocumented
+ WindowsMalwareThreatStateVActionFailed WindowsMalwareThreatState = 1
+ // WindowsMalwareThreatStateVManualStepsRequired undocumented
+ WindowsMalwareThreatStateVManualStepsRequired WindowsMalwareThreatState = 2
+ // WindowsMalwareThreatStateVFullScanRequired undocumented
+ WindowsMalwareThreatStateVFullScanRequired WindowsMalwareThreatState = 3
+ // WindowsMalwareThreatStateVRebootRequired undocumented
+ WindowsMalwareThreatStateVRebootRequired WindowsMalwareThreatState = 4
+ // WindowsMalwareThreatStateVRemediatedWithNonCriticalFailures undocumented
+ WindowsMalwareThreatStateVRemediatedWithNonCriticalFailures WindowsMalwareThreatState = 5
+ // WindowsMalwareThreatStateVQuarantined undocumented
+ WindowsMalwareThreatStateVQuarantined WindowsMalwareThreatState = 6
+ // WindowsMalwareThreatStateVRemoved undocumented
+ WindowsMalwareThreatStateVRemoved WindowsMalwareThreatState = 7
+ // WindowsMalwareThreatStateVCleaned undocumented
+ WindowsMalwareThreatStateVCleaned WindowsMalwareThreatState = 8
+ // WindowsMalwareThreatStateVAllowed undocumented
+ WindowsMalwareThreatStateVAllowed WindowsMalwareThreatState = 9
+ // WindowsMalwareThreatStateVNoStatusCleared undocumented
+ WindowsMalwareThreatStateVNoStatusCleared WindowsMalwareThreatState = 10
+)
+
+// WindowsMalwareThreatStatePActive returns a pointer to WindowsMalwareThreatStateVActive
+func WindowsMalwareThreatStatePActive() *WindowsMalwareThreatState {
+ v := WindowsMalwareThreatStateVActive
+ return &v
+}
+
+// WindowsMalwareThreatStatePActionFailed returns a pointer to WindowsMalwareThreatStateVActionFailed
+func WindowsMalwareThreatStatePActionFailed() *WindowsMalwareThreatState {
+ v := WindowsMalwareThreatStateVActionFailed
+ return &v
+}
+
+// WindowsMalwareThreatStatePManualStepsRequired returns a pointer to WindowsMalwareThreatStateVManualStepsRequired
+func WindowsMalwareThreatStatePManualStepsRequired() *WindowsMalwareThreatState {
+ v := WindowsMalwareThreatStateVManualStepsRequired
+ return &v
+}
+
+// WindowsMalwareThreatStatePFullScanRequired returns a pointer to WindowsMalwareThreatStateVFullScanRequired
+func WindowsMalwareThreatStatePFullScanRequired() *WindowsMalwareThreatState {
+ v := WindowsMalwareThreatStateVFullScanRequired
+ return &v
+}
+
+// WindowsMalwareThreatStatePRebootRequired returns a pointer to WindowsMalwareThreatStateVRebootRequired
+func WindowsMalwareThreatStatePRebootRequired() *WindowsMalwareThreatState {
+ v := WindowsMalwareThreatStateVRebootRequired
+ return &v
+}
+
+// WindowsMalwareThreatStatePRemediatedWithNonCriticalFailures returns a pointer to WindowsMalwareThreatStateVRemediatedWithNonCriticalFailures
+func WindowsMalwareThreatStatePRemediatedWithNonCriticalFailures() *WindowsMalwareThreatState {
+ v := WindowsMalwareThreatStateVRemediatedWithNonCriticalFailures
+ return &v
+}
+
+// WindowsMalwareThreatStatePQuarantined returns a pointer to WindowsMalwareThreatStateVQuarantined
+func WindowsMalwareThreatStatePQuarantined() *WindowsMalwareThreatState {
+ v := WindowsMalwareThreatStateVQuarantined
+ return &v
+}
+
+// WindowsMalwareThreatStatePRemoved returns a pointer to WindowsMalwareThreatStateVRemoved
+func WindowsMalwareThreatStatePRemoved() *WindowsMalwareThreatState {
+ v := WindowsMalwareThreatStateVRemoved
+ return &v
+}
+
+// WindowsMalwareThreatStatePCleaned returns a pointer to WindowsMalwareThreatStateVCleaned
+func WindowsMalwareThreatStatePCleaned() *WindowsMalwareThreatState {
+ v := WindowsMalwareThreatStateVCleaned
+ return &v
+}
+
+// WindowsMalwareThreatStatePAllowed returns a pointer to WindowsMalwareThreatStateVAllowed
+func WindowsMalwareThreatStatePAllowed() *WindowsMalwareThreatState {
+ v := WindowsMalwareThreatStateVAllowed
+ return &v
+}
+
+// WindowsMalwareThreatStatePNoStatusCleared returns a pointer to WindowsMalwareThreatStateVNoStatusCleared
+func WindowsMalwareThreatStatePNoStatusCleared() *WindowsMalwareThreatState {
+ v := WindowsMalwareThreatStateVNoStatusCleared
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagedDeviceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagedDeviceModel.go
new file mode 100644
index 00000000..84a7226f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagedDeviceModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsManagedDevice Windows devices that are managed or pre-enrolled through Intune
+type WindowsManagedDevice struct {
+ // ManagedDevice is the base model of WindowsManagedDevice
+ ManagedDevice
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthStateModel.go
new file mode 100644
index 00000000..f977254c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthStateModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthStateRequest.go
new file mode 100644
index 00000000..b64aa1c6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthSummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthSummaryModel.go
new file mode 100644
index 00000000..54137153
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthSummaryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppModel.go
new file mode 100644
index 00000000..a70ed7f2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppRequest.go
new file mode 100644
index 00000000..bc12f745
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsManagementAppHealthState collection
+func (r *WindowsManagementAppHealthStatesCollectionRequest) Get(ctx context.Context) ([]WindowsManagementAppHealthState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMicrosoftEdgeAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMicrosoftEdgeAppModel.go
new file mode 100644
index 00000000..fe505a38
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMicrosoftEdgeAppModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMinimumOperatingSystemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMinimumOperatingSystemModel.go
new file mode 100644
index 00000000..64076d25
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMinimumOperatingSystemModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMobileMSIModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMobileMSIModel.go
new file mode 100644
index 00000000..3306e140
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMobileMSIModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsNetworkIsolationPolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsNetworkIsolationPolicyModel.go
new file mode 100644
index 00000000..f06e431f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsNetworkIsolationPolicyModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsOfficeClientConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsOfficeClientConfigurationModel.go
new file mode 100644
index 00000000..012e0eb0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsOfficeClientConfigurationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsOfficeClientConfiguration undocumented
+type WindowsOfficeClientConfiguration struct {
+ // OfficeClientConfiguration is the base model of WindowsOfficeClientConfiguration
+ OfficeClientConfiguration
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsOfficeClientSecurityConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsOfficeClientSecurityConfigurationModel.go
new file mode 100644
index 00000000..816bbf6d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsOfficeClientSecurityConfigurationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsOfficeClientSecurityConfiguration undocumented
+type WindowsOfficeClientSecurityConfiguration struct {
+ // OfficeClientConfiguration is the base model of WindowsOfficeClientSecurityConfiguration
+ OfficeClientConfiguration
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPackageInformationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPackageInformationModel.go
new file mode 100644
index 00000000..82291085
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPackageInformationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81AppXBundleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81AppXBundleModel.go
new file mode 100644
index 00000000..1c089c7b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81AppXBundleModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81AppXModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81AppXModel.go
new file mode 100644
index 00000000..6b3608a9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81AppXModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CertificateProfileBaseModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CertificateProfileBaseModel.go
new file mode 100644
index 00000000..a0695328
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CertificateProfileBaseModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CertificateProfileBaseRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CertificateProfileBaseRequest.go
new file mode 100644
index 00000000..deb274f0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CertificateProfileBaseRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CompliancePolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CompliancePolicyModel.go
new file mode 100644
index 00000000..207c0682
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CompliancePolicyModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CustomConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CustomConfigurationModel.go
new file mode 100644
index 00000000..6f996c90
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CustomConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81GeneralConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81GeneralConfigurationModel.go
new file mode 100644
index 00000000..b4e28853
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81GeneralConfigurationModel.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81ImportedPFXCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81ImportedPFXCertificateProfileModel.go
new file mode 100644
index 00000000..8bd9b129
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81ImportedPFXCertificateProfileModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81ImportedPFXCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81ImportedPFXCertificateProfileRequest.go
new file mode 100644
index 00000000..cb51ac4d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81ImportedPFXCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81SCEPCertificateProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81SCEPCertificateProfileModel.go
new file mode 100644
index 00000000..1e3b9346
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81SCEPCertificateProfileModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81SCEPCertificateProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81SCEPCertificateProfileRequest.go
new file mode 100644
index 00000000..7d16cd11
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81SCEPCertificateProfileRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81StoreAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81StoreAppModel.go
new file mode 100644
index 00000000..13575476
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81StoreAppModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81TrustedRootCertificateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81TrustedRootCertificateModel.go
new file mode 100644
index 00000000..e74a29a5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81TrustedRootCertificateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81TrustedRootCertificateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81TrustedRootCertificateRequest.go
new file mode 100644
index 00000000..3f4dff7d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81TrustedRootCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81VpnConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81VpnConfigurationModel.go
new file mode 100644
index 00000000..56056f5d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81VpnConfigurationModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81VpnConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81VpnConfigurationRequest.go
new file mode 100644
index 00000000..84fdf723
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81VpnConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// IdentityCertificate is navigation property
+func (b *WindowsPhone81VpnConfigurationRequestBuilder) IdentityCertificate() *WindowsPhone81CertificateProfileBaseRequestBuilder {
+ bb := &WindowsPhone81CertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhoneEASEmailProfileConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhoneEASEmailProfileConfigurationModel.go
new file mode 100644
index 00000000..deb0c745
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhoneEASEmailProfileConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhoneXAPModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhoneXAPModel.go
new file mode 100644
index 00000000..88aa0b33
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhoneXAPModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessControlItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessControlItemModel.go
new file mode 100644
index 00000000..d6bda5e9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessControlItemModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessControlItemRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessControlItemRequest.go
new file mode 100644
index 00000000..a5bb9d7e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessControlItemRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessLevelEnum.go
new file mode 100644
index 00000000..99315c4d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessLevelEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsPrivacyDataAccessLevel undocumented
+type WindowsPrivacyDataAccessLevel int
+
+const (
+ // WindowsPrivacyDataAccessLevelVNotConfigured undocumented
+ WindowsPrivacyDataAccessLevelVNotConfigured WindowsPrivacyDataAccessLevel = 0
+ // WindowsPrivacyDataAccessLevelVForceAllow undocumented
+ WindowsPrivacyDataAccessLevelVForceAllow WindowsPrivacyDataAccessLevel = 1
+ // WindowsPrivacyDataAccessLevelVForceDeny undocumented
+ WindowsPrivacyDataAccessLevelVForceDeny WindowsPrivacyDataAccessLevel = 2
+ // WindowsPrivacyDataAccessLevelVUserInControl undocumented
+ WindowsPrivacyDataAccessLevelVUserInControl WindowsPrivacyDataAccessLevel = 3
+)
+
+// WindowsPrivacyDataAccessLevelPNotConfigured returns a pointer to WindowsPrivacyDataAccessLevelVNotConfigured
+func WindowsPrivacyDataAccessLevelPNotConfigured() *WindowsPrivacyDataAccessLevel {
+ v := WindowsPrivacyDataAccessLevelVNotConfigured
+ return &v
+}
+
+// WindowsPrivacyDataAccessLevelPForceAllow returns a pointer to WindowsPrivacyDataAccessLevelVForceAllow
+func WindowsPrivacyDataAccessLevelPForceAllow() *WindowsPrivacyDataAccessLevel {
+ v := WindowsPrivacyDataAccessLevelVForceAllow
+ return &v
+}
+
+// WindowsPrivacyDataAccessLevelPForceDeny returns a pointer to WindowsPrivacyDataAccessLevelVForceDeny
+func WindowsPrivacyDataAccessLevelPForceDeny() *WindowsPrivacyDataAccessLevel {
+ v := WindowsPrivacyDataAccessLevelVForceDeny
+ return &v
+}
+
+// WindowsPrivacyDataAccessLevelPUserInControl returns a pointer to WindowsPrivacyDataAccessLevelVUserInControl
+func WindowsPrivacyDataAccessLevelPUserInControl() *WindowsPrivacyDataAccessLevel {
+ v := WindowsPrivacyDataAccessLevelVUserInControl
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataCategoryEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataCategoryEnum.go
new file mode 100644
index 00000000..5b187018
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataCategoryEnum.go
@@ -0,0 +1,161 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsPrivacyDataCategory undocumented
+type WindowsPrivacyDataCategory int
+
+const (
+ // WindowsPrivacyDataCategoryVNotConfigured undocumented
+ WindowsPrivacyDataCategoryVNotConfigured WindowsPrivacyDataCategory = 0
+ // WindowsPrivacyDataCategoryVAccountInfo undocumented
+ WindowsPrivacyDataCategoryVAccountInfo WindowsPrivacyDataCategory = 1
+ // WindowsPrivacyDataCategoryVAppsRunInBackground undocumented
+ WindowsPrivacyDataCategoryVAppsRunInBackground WindowsPrivacyDataCategory = 2
+ // WindowsPrivacyDataCategoryVCalendar undocumented
+ WindowsPrivacyDataCategoryVCalendar WindowsPrivacyDataCategory = 3
+ // WindowsPrivacyDataCategoryVCallHistory undocumented
+ WindowsPrivacyDataCategoryVCallHistory WindowsPrivacyDataCategory = 4
+ // WindowsPrivacyDataCategoryVCamera undocumented
+ WindowsPrivacyDataCategoryVCamera WindowsPrivacyDataCategory = 5
+ // WindowsPrivacyDataCategoryVContacts undocumented
+ WindowsPrivacyDataCategoryVContacts WindowsPrivacyDataCategory = 6
+ // WindowsPrivacyDataCategoryVDiagnosticsInfo undocumented
+ WindowsPrivacyDataCategoryVDiagnosticsInfo WindowsPrivacyDataCategory = 7
+ // WindowsPrivacyDataCategoryVEmail undocumented
+ WindowsPrivacyDataCategoryVEmail WindowsPrivacyDataCategory = 8
+ // WindowsPrivacyDataCategoryVLocation undocumented
+ WindowsPrivacyDataCategoryVLocation WindowsPrivacyDataCategory = 9
+ // WindowsPrivacyDataCategoryVMessaging undocumented
+ WindowsPrivacyDataCategoryVMessaging WindowsPrivacyDataCategory = 10
+ // WindowsPrivacyDataCategoryVMicrophone undocumented
+ WindowsPrivacyDataCategoryVMicrophone WindowsPrivacyDataCategory = 11
+ // WindowsPrivacyDataCategoryVMotion undocumented
+ WindowsPrivacyDataCategoryVMotion WindowsPrivacyDataCategory = 12
+ // WindowsPrivacyDataCategoryVNotifications undocumented
+ WindowsPrivacyDataCategoryVNotifications WindowsPrivacyDataCategory = 13
+ // WindowsPrivacyDataCategoryVPhone undocumented
+ WindowsPrivacyDataCategoryVPhone WindowsPrivacyDataCategory = 14
+ // WindowsPrivacyDataCategoryVRadios undocumented
+ WindowsPrivacyDataCategoryVRadios WindowsPrivacyDataCategory = 15
+ // WindowsPrivacyDataCategoryVTasks undocumented
+ WindowsPrivacyDataCategoryVTasks WindowsPrivacyDataCategory = 16
+ // WindowsPrivacyDataCategoryVSyncWithDevices undocumented
+ WindowsPrivacyDataCategoryVSyncWithDevices WindowsPrivacyDataCategory = 17
+ // WindowsPrivacyDataCategoryVTrustedDevices undocumented
+ WindowsPrivacyDataCategoryVTrustedDevices WindowsPrivacyDataCategory = 18
+)
+
+// WindowsPrivacyDataCategoryPNotConfigured returns a pointer to WindowsPrivacyDataCategoryVNotConfigured
+func WindowsPrivacyDataCategoryPNotConfigured() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVNotConfigured
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPAccountInfo returns a pointer to WindowsPrivacyDataCategoryVAccountInfo
+func WindowsPrivacyDataCategoryPAccountInfo() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVAccountInfo
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPAppsRunInBackground returns a pointer to WindowsPrivacyDataCategoryVAppsRunInBackground
+func WindowsPrivacyDataCategoryPAppsRunInBackground() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVAppsRunInBackground
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPCalendar returns a pointer to WindowsPrivacyDataCategoryVCalendar
+func WindowsPrivacyDataCategoryPCalendar() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVCalendar
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPCallHistory returns a pointer to WindowsPrivacyDataCategoryVCallHistory
+func WindowsPrivacyDataCategoryPCallHistory() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVCallHistory
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPCamera returns a pointer to WindowsPrivacyDataCategoryVCamera
+func WindowsPrivacyDataCategoryPCamera() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVCamera
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPContacts returns a pointer to WindowsPrivacyDataCategoryVContacts
+func WindowsPrivacyDataCategoryPContacts() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVContacts
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPDiagnosticsInfo returns a pointer to WindowsPrivacyDataCategoryVDiagnosticsInfo
+func WindowsPrivacyDataCategoryPDiagnosticsInfo() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVDiagnosticsInfo
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPEmail returns a pointer to WindowsPrivacyDataCategoryVEmail
+func WindowsPrivacyDataCategoryPEmail() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVEmail
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPLocation returns a pointer to WindowsPrivacyDataCategoryVLocation
+func WindowsPrivacyDataCategoryPLocation() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVLocation
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPMessaging returns a pointer to WindowsPrivacyDataCategoryVMessaging
+func WindowsPrivacyDataCategoryPMessaging() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVMessaging
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPMicrophone returns a pointer to WindowsPrivacyDataCategoryVMicrophone
+func WindowsPrivacyDataCategoryPMicrophone() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVMicrophone
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPMotion returns a pointer to WindowsPrivacyDataCategoryVMotion
+func WindowsPrivacyDataCategoryPMotion() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVMotion
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPNotifications returns a pointer to WindowsPrivacyDataCategoryVNotifications
+func WindowsPrivacyDataCategoryPNotifications() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVNotifications
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPPhone returns a pointer to WindowsPrivacyDataCategoryVPhone
+func WindowsPrivacyDataCategoryPPhone() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVPhone
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPRadios returns a pointer to WindowsPrivacyDataCategoryVRadios
+func WindowsPrivacyDataCategoryPRadios() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVRadios
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPTasks returns a pointer to WindowsPrivacyDataCategoryVTasks
+func WindowsPrivacyDataCategoryPTasks() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVTasks
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPSyncWithDevices returns a pointer to WindowsPrivacyDataCategoryVSyncWithDevices
+func WindowsPrivacyDataCategoryPSyncWithDevices() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVSyncWithDevices
+ return &v
+}
+
+// WindowsPrivacyDataCategoryPTrustedDevices returns a pointer to WindowsPrivacyDataCategoryVTrustedDevices
+func WindowsPrivacyDataCategoryPTrustedDevices() *WindowsPrivacyDataCategory {
+ v := WindowsPrivacyDataCategoryVTrustedDevices
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsProtectionStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsProtectionStateModel.go
new file mode 100644
index 00000000..e4b9dcae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsProtectionStateModel.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsProtectionStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsProtectionStateRequest.go
new file mode 100644
index 00000000..4f0be4f9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsProtectionStateRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsDeviceMalwareState collection
+func (r *WindowsProtectionStateDetectedMalwareStateCollectionRequest) Get(ctx context.Context) ([]WindowsDeviceMalwareState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsSModeConfigurationEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsSModeConfigurationEnum.go
new file mode 100644
index 00000000..ceab9da5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsSModeConfigurationEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsSModeConfiguration undocumented
+type WindowsSModeConfiguration int
+
+const (
+ // WindowsSModeConfigurationVNoRestriction undocumented
+ WindowsSModeConfigurationVNoRestriction WindowsSModeConfiguration = 0
+ // WindowsSModeConfigurationVBlock undocumented
+ WindowsSModeConfigurationVBlock WindowsSModeConfiguration = 1
+ // WindowsSModeConfigurationVUnlock undocumented
+ WindowsSModeConfigurationVUnlock WindowsSModeConfiguration = 2
+)
+
+// WindowsSModeConfigurationPNoRestriction returns a pointer to WindowsSModeConfigurationVNoRestriction
+func WindowsSModeConfigurationPNoRestriction() *WindowsSModeConfiguration {
+ v := WindowsSModeConfigurationVNoRestriction
+ return &v
+}
+
+// WindowsSModeConfigurationPBlock returns a pointer to WindowsSModeConfigurationVBlock
+func WindowsSModeConfigurationPBlock() *WindowsSModeConfiguration {
+ v := WindowsSModeConfigurationVBlock
+ return &v
+}
+
+// WindowsSModeConfigurationPUnlock returns a pointer to WindowsSModeConfigurationVUnlock
+func WindowsSModeConfigurationPUnlock() *WindowsSModeConfiguration {
+ v := WindowsSModeConfigurationVUnlock
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsSpotlightEnablementSettingsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsSpotlightEnablementSettingsEnum.go
new file mode 100644
index 00000000..210c4e45
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsSpotlightEnablementSettingsEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsSpotlightEnablementSettings undocumented
+type WindowsSpotlightEnablementSettings int
+
+const (
+ // WindowsSpotlightEnablementSettingsVNotConfigured undocumented
+ WindowsSpotlightEnablementSettingsVNotConfigured WindowsSpotlightEnablementSettings = 0
+ // WindowsSpotlightEnablementSettingsVDisabled undocumented
+ WindowsSpotlightEnablementSettingsVDisabled WindowsSpotlightEnablementSettings = 1
+ // WindowsSpotlightEnablementSettingsVEnabled undocumented
+ WindowsSpotlightEnablementSettingsVEnabled WindowsSpotlightEnablementSettings = 2
+)
+
+// WindowsSpotlightEnablementSettingsPNotConfigured returns a pointer to WindowsSpotlightEnablementSettingsVNotConfigured
+func WindowsSpotlightEnablementSettingsPNotConfigured() *WindowsSpotlightEnablementSettings {
+ v := WindowsSpotlightEnablementSettingsVNotConfigured
+ return &v
+}
+
+// WindowsSpotlightEnablementSettingsPDisabled returns a pointer to WindowsSpotlightEnablementSettingsVDisabled
+func WindowsSpotlightEnablementSettingsPDisabled() *WindowsSpotlightEnablementSettings {
+ v := WindowsSpotlightEnablementSettingsVDisabled
+ return &v
+}
+
+// WindowsSpotlightEnablementSettingsPEnabled returns a pointer to WindowsSpotlightEnablementSettingsVEnabled
+func WindowsSpotlightEnablementSettingsPEnabled() *WindowsSpotlightEnablementSettings {
+ v := WindowsSpotlightEnablementSettingsVEnabled
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsStartMenuAppListVisibilityTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsStartMenuAppListVisibilityTypeEnum.go
new file mode 100644
index 00000000..b065a9fd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsStartMenuAppListVisibilityTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsStartMenuAppListVisibilityType undocumented
+type WindowsStartMenuAppListVisibilityType int
+
+const (
+ // WindowsStartMenuAppListVisibilityTypeVUserDefined undocumented
+ WindowsStartMenuAppListVisibilityTypeVUserDefined WindowsStartMenuAppListVisibilityType = 0
+ // WindowsStartMenuAppListVisibilityTypeVCollapse undocumented
+ WindowsStartMenuAppListVisibilityTypeVCollapse WindowsStartMenuAppListVisibilityType = 1
+ // WindowsStartMenuAppListVisibilityTypeVRemove undocumented
+ WindowsStartMenuAppListVisibilityTypeVRemove WindowsStartMenuAppListVisibilityType = 2
+ // WindowsStartMenuAppListVisibilityTypeVDisableSettingsApp undocumented
+ WindowsStartMenuAppListVisibilityTypeVDisableSettingsApp WindowsStartMenuAppListVisibilityType = 4
+)
+
+// WindowsStartMenuAppListVisibilityTypePUserDefined returns a pointer to WindowsStartMenuAppListVisibilityTypeVUserDefined
+func WindowsStartMenuAppListVisibilityTypePUserDefined() *WindowsStartMenuAppListVisibilityType {
+ v := WindowsStartMenuAppListVisibilityTypeVUserDefined
+ return &v
+}
+
+// WindowsStartMenuAppListVisibilityTypePCollapse returns a pointer to WindowsStartMenuAppListVisibilityTypeVCollapse
+func WindowsStartMenuAppListVisibilityTypePCollapse() *WindowsStartMenuAppListVisibilityType {
+ v := WindowsStartMenuAppListVisibilityTypeVCollapse
+ return &v
+}
+
+// WindowsStartMenuAppListVisibilityTypePRemove returns a pointer to WindowsStartMenuAppListVisibilityTypeVRemove
+func WindowsStartMenuAppListVisibilityTypePRemove() *WindowsStartMenuAppListVisibilityType {
+ v := WindowsStartMenuAppListVisibilityTypeVRemove
+ return &v
+}
+
+// WindowsStartMenuAppListVisibilityTypePDisableSettingsApp returns a pointer to WindowsStartMenuAppListVisibilityTypeVDisableSettingsApp
+func WindowsStartMenuAppListVisibilityTypePDisableSettingsApp() *WindowsStartMenuAppListVisibilityType {
+ v := WindowsStartMenuAppListVisibilityTypeVDisableSettingsApp
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsStartMenuModeTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsStartMenuModeTypeEnum.go
new file mode 100644
index 00000000..e70bdaed
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsStartMenuModeTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsStartMenuModeType undocumented
+type WindowsStartMenuModeType int
+
+const (
+ // WindowsStartMenuModeTypeVUserDefined undocumented
+ WindowsStartMenuModeTypeVUserDefined WindowsStartMenuModeType = 0
+ // WindowsStartMenuModeTypeVFullScreen undocumented
+ WindowsStartMenuModeTypeVFullScreen WindowsStartMenuModeType = 1
+ // WindowsStartMenuModeTypeVNonFullScreen undocumented
+ WindowsStartMenuModeTypeVNonFullScreen WindowsStartMenuModeType = 2
+)
+
+// WindowsStartMenuModeTypePUserDefined returns a pointer to WindowsStartMenuModeTypeVUserDefined
+func WindowsStartMenuModeTypePUserDefined() *WindowsStartMenuModeType {
+ v := WindowsStartMenuModeTypeVUserDefined
+ return &v
+}
+
+// WindowsStartMenuModeTypePFullScreen returns a pointer to WindowsStartMenuModeTypeVFullScreen
+func WindowsStartMenuModeTypePFullScreen() *WindowsStartMenuModeType {
+ v := WindowsStartMenuModeTypeVFullScreen
+ return &v
+}
+
+// WindowsStartMenuModeTypePNonFullScreen returns a pointer to WindowsStartMenuModeTypeVNonFullScreen
+func WindowsStartMenuModeTypePNonFullScreen() *WindowsStartMenuModeType {
+ v := WindowsStartMenuModeTypeVNonFullScreen
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsStoreAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsStoreAppModel.go
new file mode 100644
index 00000000..585d7ce4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsStoreAppModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXAppAssignmentSettingsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..ab770b52
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXAppAssignmentSettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXContainedAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXContainedAppModel.go
new file mode 100644
index 00000000..edf29760
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXContainedAppModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXModel.go
new file mode 100644
index 00000000..2ac9c0c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXRequest.go
new file mode 100644
index 00000000..1c0a821c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileContainedApp collection
+func (r *WindowsUniversalAppXCommittedContainedAppsCollectionRequest) Get(ctx context.Context) ([]MobileContainedApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateActiveHoursInstallModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateActiveHoursInstallModel.go
new file mode 100644
index 00000000..a09777ae
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateActiveHoursInstallModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// WindowsUpdateActiveHoursInstall undocumented
+type WindowsUpdateActiveHoursInstall struct {
+ // WindowsUpdateInstallScheduleType is the base model of WindowsUpdateActiveHoursInstall
+ WindowsUpdateInstallScheduleType
+ // ActiveHoursStart Active Hours Start
+ ActiveHoursStart *time.Time `json:"activeHoursStart,omitempty"`
+ // ActiveHoursEnd Active Hours End
+ ActiveHoursEnd *time.Time `json:"activeHoursEnd,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationAction.go
new file mode 100644
index 00000000..487d11bb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationAction.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestParameter undocumented
+type WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestParameter struct {
+}
+
+// WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestParameter undocumented
+type WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationModel.go
new file mode 100644
index 00000000..6d54fc7d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationModel.go
@@ -0,0 +1,83 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"qualityUpdatesPauseStartDate,omitempty"`
+ // FeatureUpdatesPauseStartDate Feature Updates Pause start date. This property is read-only.
+ FeatureUpdatesPauseStartDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationRequest.go
new file mode 100644
index 00000000..6816c951
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsUpdateState collection
+func (r *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest) Get(ctx context.Context) ([]WindowsUpdateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessUpdateWeeksEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessUpdateWeeksEnum.go
new file mode 100644
index 00000000..4b42a1f5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessUpdateWeeksEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsUpdateForBusinessUpdateWeeks undocumented
+type WindowsUpdateForBusinessUpdateWeeks int
+
+const (
+ // WindowsUpdateForBusinessUpdateWeeksVUserDefined undocumented
+ WindowsUpdateForBusinessUpdateWeeksVUserDefined WindowsUpdateForBusinessUpdateWeeks = 0
+ // WindowsUpdateForBusinessUpdateWeeksVFirstWeek undocumented
+ WindowsUpdateForBusinessUpdateWeeksVFirstWeek WindowsUpdateForBusinessUpdateWeeks = 1
+ // WindowsUpdateForBusinessUpdateWeeksVSecondWeek undocumented
+ WindowsUpdateForBusinessUpdateWeeksVSecondWeek WindowsUpdateForBusinessUpdateWeeks = 2
+ // WindowsUpdateForBusinessUpdateWeeksVThirdWeek undocumented
+ WindowsUpdateForBusinessUpdateWeeksVThirdWeek WindowsUpdateForBusinessUpdateWeeks = 4
+ // WindowsUpdateForBusinessUpdateWeeksVFourthWeek undocumented
+ WindowsUpdateForBusinessUpdateWeeksVFourthWeek WindowsUpdateForBusinessUpdateWeeks = 8
+ // WindowsUpdateForBusinessUpdateWeeksVEveryWeek undocumented
+ WindowsUpdateForBusinessUpdateWeeksVEveryWeek WindowsUpdateForBusinessUpdateWeeks = 15
+)
+
+// WindowsUpdateForBusinessUpdateWeeksPUserDefined returns a pointer to WindowsUpdateForBusinessUpdateWeeksVUserDefined
+func WindowsUpdateForBusinessUpdateWeeksPUserDefined() *WindowsUpdateForBusinessUpdateWeeks {
+ v := WindowsUpdateForBusinessUpdateWeeksVUserDefined
+ return &v
+}
+
+// WindowsUpdateForBusinessUpdateWeeksPFirstWeek returns a pointer to WindowsUpdateForBusinessUpdateWeeksVFirstWeek
+func WindowsUpdateForBusinessUpdateWeeksPFirstWeek() *WindowsUpdateForBusinessUpdateWeeks {
+ v := WindowsUpdateForBusinessUpdateWeeksVFirstWeek
+ return &v
+}
+
+// WindowsUpdateForBusinessUpdateWeeksPSecondWeek returns a pointer to WindowsUpdateForBusinessUpdateWeeksVSecondWeek
+func WindowsUpdateForBusinessUpdateWeeksPSecondWeek() *WindowsUpdateForBusinessUpdateWeeks {
+ v := WindowsUpdateForBusinessUpdateWeeksVSecondWeek
+ return &v
+}
+
+// WindowsUpdateForBusinessUpdateWeeksPThirdWeek returns a pointer to WindowsUpdateForBusinessUpdateWeeksVThirdWeek
+func WindowsUpdateForBusinessUpdateWeeksPThirdWeek() *WindowsUpdateForBusinessUpdateWeeks {
+ v := WindowsUpdateForBusinessUpdateWeeksVThirdWeek
+ return &v
+}
+
+// WindowsUpdateForBusinessUpdateWeeksPFourthWeek returns a pointer to WindowsUpdateForBusinessUpdateWeeksVFourthWeek
+func WindowsUpdateForBusinessUpdateWeeksPFourthWeek() *WindowsUpdateForBusinessUpdateWeeks {
+ v := WindowsUpdateForBusinessUpdateWeeksVFourthWeek
+ return &v
+}
+
+// WindowsUpdateForBusinessUpdateWeeksPEveryWeek returns a pointer to WindowsUpdateForBusinessUpdateWeeksVEveryWeek
+func WindowsUpdateForBusinessUpdateWeeksPEveryWeek() *WindowsUpdateForBusinessUpdateWeeks {
+ v := WindowsUpdateForBusinessUpdateWeeksVEveryWeek
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateInstallScheduleTypeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateInstallScheduleTypeModel.go
new file mode 100644
index 00000000..c42822af
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateInstallScheduleTypeModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsUpdateInstallScheduleType undocumented
+type WindowsUpdateInstallScheduleType struct {
+ // Object is the base model of WindowsUpdateInstallScheduleType
+ Object
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateNotificationDisplayOptionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateNotificationDisplayOptionEnum.go
new file mode 100644
index 00000000..cd3eeae3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateNotificationDisplayOptionEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsUpdateNotificationDisplayOption undocumented
+type WindowsUpdateNotificationDisplayOption int
+
+const (
+ // WindowsUpdateNotificationDisplayOptionVNotConfigured undocumented
+ WindowsUpdateNotificationDisplayOptionVNotConfigured WindowsUpdateNotificationDisplayOption = 0
+ // WindowsUpdateNotificationDisplayOptionVDefaultNotifications undocumented
+ WindowsUpdateNotificationDisplayOptionVDefaultNotifications WindowsUpdateNotificationDisplayOption = 1
+ // WindowsUpdateNotificationDisplayOptionVRestartWarningsOnly undocumented
+ WindowsUpdateNotificationDisplayOptionVRestartWarningsOnly WindowsUpdateNotificationDisplayOption = 2
+ // WindowsUpdateNotificationDisplayOptionVDisableAllNotifications undocumented
+ WindowsUpdateNotificationDisplayOptionVDisableAllNotifications WindowsUpdateNotificationDisplayOption = 3
+)
+
+// WindowsUpdateNotificationDisplayOptionPNotConfigured returns a pointer to WindowsUpdateNotificationDisplayOptionVNotConfigured
+func WindowsUpdateNotificationDisplayOptionPNotConfigured() *WindowsUpdateNotificationDisplayOption {
+ v := WindowsUpdateNotificationDisplayOptionVNotConfigured
+ return &v
+}
+
+// WindowsUpdateNotificationDisplayOptionPDefaultNotifications returns a pointer to WindowsUpdateNotificationDisplayOptionVDefaultNotifications
+func WindowsUpdateNotificationDisplayOptionPDefaultNotifications() *WindowsUpdateNotificationDisplayOption {
+ v := WindowsUpdateNotificationDisplayOptionVDefaultNotifications
+ return &v
+}
+
+// WindowsUpdateNotificationDisplayOptionPRestartWarningsOnly returns a pointer to WindowsUpdateNotificationDisplayOptionVRestartWarningsOnly
+func WindowsUpdateNotificationDisplayOptionPRestartWarningsOnly() *WindowsUpdateNotificationDisplayOption {
+ v := WindowsUpdateNotificationDisplayOptionVRestartWarningsOnly
+ return &v
+}
+
+// WindowsUpdateNotificationDisplayOptionPDisableAllNotifications returns a pointer to WindowsUpdateNotificationDisplayOptionVDisableAllNotifications
+func WindowsUpdateNotificationDisplayOptionPDisableAllNotifications() *WindowsUpdateNotificationDisplayOption {
+ v := WindowsUpdateNotificationDisplayOptionVDisableAllNotifications
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateScheduledInstallModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateScheduledInstallModel.go
new file mode 100644
index 00000000..02e8c3c8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateScheduledInstallModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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 *time.Time `json:"scheduledInstallTime,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStateModel.go
new file mode 100644
index 00000000..b720f200
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStateModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStateRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStateRequest.go
new file mode 100644
index 00000000..a93ca36c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStatusEnum.go
new file mode 100644
index 00000000..18770800
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsUpdateStatus undocumented
+type WindowsUpdateStatus int
+
+const (
+ // WindowsUpdateStatusVUpToDate undocumented
+ WindowsUpdateStatusVUpToDate WindowsUpdateStatus = 0
+ // WindowsUpdateStatusVPendingInstallation undocumented
+ WindowsUpdateStatusVPendingInstallation WindowsUpdateStatus = 1
+ // WindowsUpdateStatusVPendingReboot undocumented
+ WindowsUpdateStatusVPendingReboot WindowsUpdateStatus = 2
+ // WindowsUpdateStatusVFailed undocumented
+ WindowsUpdateStatusVFailed WindowsUpdateStatus = 3
+)
+
+// WindowsUpdateStatusPUpToDate returns a pointer to WindowsUpdateStatusVUpToDate
+func WindowsUpdateStatusPUpToDate() *WindowsUpdateStatus {
+ v := WindowsUpdateStatusVUpToDate
+ return &v
+}
+
+// WindowsUpdateStatusPPendingInstallation returns a pointer to WindowsUpdateStatusVPendingInstallation
+func WindowsUpdateStatusPPendingInstallation() *WindowsUpdateStatus {
+ v := WindowsUpdateStatusVPendingInstallation
+ return &v
+}
+
+// WindowsUpdateStatusPPendingReboot returns a pointer to WindowsUpdateStatusVPendingReboot
+func WindowsUpdateStatusPPendingReboot() *WindowsUpdateStatus {
+ v := WindowsUpdateStatusVPendingReboot
+ return &v
+}
+
+// WindowsUpdateStatusPFailed returns a pointer to WindowsUpdateStatusVFailed
+func WindowsUpdateStatusPFailed() *WindowsUpdateStatus {
+ v := WindowsUpdateStatusVFailed
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateTypeEnum.go
new file mode 100644
index 00000000..88dc0ed3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsUpdateType undocumented
+type WindowsUpdateType int
+
+const (
+ // WindowsUpdateTypeVUserDefined undocumented
+ WindowsUpdateTypeVUserDefined WindowsUpdateType = 0
+ // WindowsUpdateTypeVAll undocumented
+ WindowsUpdateTypeVAll WindowsUpdateType = 1
+ // WindowsUpdateTypeVBusinessReadyOnly undocumented
+ WindowsUpdateTypeVBusinessReadyOnly WindowsUpdateType = 2
+ // WindowsUpdateTypeVWindowsInsiderBuildFast undocumented
+ WindowsUpdateTypeVWindowsInsiderBuildFast WindowsUpdateType = 3
+ // WindowsUpdateTypeVWindowsInsiderBuildSlow undocumented
+ WindowsUpdateTypeVWindowsInsiderBuildSlow WindowsUpdateType = 4
+ // WindowsUpdateTypeVWindowsInsiderBuildRelease undocumented
+ WindowsUpdateTypeVWindowsInsiderBuildRelease WindowsUpdateType = 5
+)
+
+// WindowsUpdateTypePUserDefined returns a pointer to WindowsUpdateTypeVUserDefined
+func WindowsUpdateTypePUserDefined() *WindowsUpdateType {
+ v := WindowsUpdateTypeVUserDefined
+ return &v
+}
+
+// WindowsUpdateTypePAll returns a pointer to WindowsUpdateTypeVAll
+func WindowsUpdateTypePAll() *WindowsUpdateType {
+ v := WindowsUpdateTypeVAll
+ return &v
+}
+
+// WindowsUpdateTypePBusinessReadyOnly returns a pointer to WindowsUpdateTypeVBusinessReadyOnly
+func WindowsUpdateTypePBusinessReadyOnly() *WindowsUpdateType {
+ v := WindowsUpdateTypeVBusinessReadyOnly
+ return &v
+}
+
+// WindowsUpdateTypePWindowsInsiderBuildFast returns a pointer to WindowsUpdateTypeVWindowsInsiderBuildFast
+func WindowsUpdateTypePWindowsInsiderBuildFast() *WindowsUpdateType {
+ v := WindowsUpdateTypeVWindowsInsiderBuildFast
+ return &v
+}
+
+// WindowsUpdateTypePWindowsInsiderBuildSlow returns a pointer to WindowsUpdateTypeVWindowsInsiderBuildSlow
+func WindowsUpdateTypePWindowsInsiderBuildSlow() *WindowsUpdateType {
+ v := WindowsUpdateTypeVWindowsInsiderBuildSlow
+ return &v
+}
+
+// WindowsUpdateTypePWindowsInsiderBuildRelease returns a pointer to WindowsUpdateTypeVWindowsInsiderBuildRelease
+func WindowsUpdateTypePWindowsInsiderBuildRelease() *WindowsUpdateType {
+ v := WindowsUpdateTypeVWindowsInsiderBuildRelease
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUserAccountControlSettingsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUserAccountControlSettingsEnum.go
new file mode 100644
index 00000000..b1cc51ed
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUserAccountControlSettingsEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsUserAccountControlSettings undocumented
+type WindowsUserAccountControlSettings int
+
+const (
+ // WindowsUserAccountControlSettingsVUserDefined undocumented
+ WindowsUserAccountControlSettingsVUserDefined WindowsUserAccountControlSettings = 0
+ // WindowsUserAccountControlSettingsVAlwaysNotify undocumented
+ WindowsUserAccountControlSettingsVAlwaysNotify WindowsUserAccountControlSettings = 1
+ // WindowsUserAccountControlSettingsVNotifyOnAppChanges undocumented
+ WindowsUserAccountControlSettingsVNotifyOnAppChanges WindowsUserAccountControlSettings = 2
+ // WindowsUserAccountControlSettingsVNotifyOnAppChangesWithoutDimming undocumented
+ WindowsUserAccountControlSettingsVNotifyOnAppChangesWithoutDimming WindowsUserAccountControlSettings = 3
+ // WindowsUserAccountControlSettingsVNeverNotify undocumented
+ WindowsUserAccountControlSettingsVNeverNotify WindowsUserAccountControlSettings = 4
+)
+
+// WindowsUserAccountControlSettingsPUserDefined returns a pointer to WindowsUserAccountControlSettingsVUserDefined
+func WindowsUserAccountControlSettingsPUserDefined() *WindowsUserAccountControlSettings {
+ v := WindowsUserAccountControlSettingsVUserDefined
+ return &v
+}
+
+// WindowsUserAccountControlSettingsPAlwaysNotify returns a pointer to WindowsUserAccountControlSettingsVAlwaysNotify
+func WindowsUserAccountControlSettingsPAlwaysNotify() *WindowsUserAccountControlSettings {
+ v := WindowsUserAccountControlSettingsVAlwaysNotify
+ return &v
+}
+
+// WindowsUserAccountControlSettingsPNotifyOnAppChanges returns a pointer to WindowsUserAccountControlSettingsVNotifyOnAppChanges
+func WindowsUserAccountControlSettingsPNotifyOnAppChanges() *WindowsUserAccountControlSettings {
+ v := WindowsUserAccountControlSettingsVNotifyOnAppChanges
+ return &v
+}
+
+// WindowsUserAccountControlSettingsPNotifyOnAppChangesWithoutDimming returns a pointer to WindowsUserAccountControlSettingsVNotifyOnAppChangesWithoutDimming
+func WindowsUserAccountControlSettingsPNotifyOnAppChangesWithoutDimming() *WindowsUserAccountControlSettings {
+ v := WindowsUserAccountControlSettingsVNotifyOnAppChangesWithoutDimming
+ return &v
+}
+
+// WindowsUserAccountControlSettingsPNeverNotify returns a pointer to WindowsUserAccountControlSettingsVNeverNotify
+func WindowsUserAccountControlSettingsPNeverNotify() *WindowsUserAccountControlSettings {
+ v := WindowsUserAccountControlSettingsVNeverNotify
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUserTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUserTypeEnum.go
new file mode 100644
index 00000000..95986f18
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUserTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsUserType undocumented
+type WindowsUserType int
+
+const (
+ // WindowsUserTypeVAdministrator undocumented
+ WindowsUserTypeVAdministrator WindowsUserType = 0
+ // WindowsUserTypeVStandard undocumented
+ WindowsUserTypeVStandard WindowsUserType = 1
+)
+
+// WindowsUserTypePAdministrator returns a pointer to WindowsUserTypeVAdministrator
+func WindowsUserTypePAdministrator() *WindowsUserType {
+ v := WindowsUserTypeVAdministrator
+ return &v
+}
+
+// WindowsUserTypePStandard returns a pointer to WindowsUserTypeVStandard
+func WindowsUserTypePStandard() *WindowsUserType {
+ v := WindowsUserTypeVStandard
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsVpnConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsVpnConfigurationModel.go
new file mode 100644
index 00000000..2a260ecb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsVpnConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsVpnConnectionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsVpnConnectionTypeEnum.go
new file mode 100644
index 00000000..6adc9c7b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsVpnConnectionTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsVpnConnectionType undocumented
+type WindowsVpnConnectionType int
+
+const (
+ // WindowsVpnConnectionTypeVPulseSecure undocumented
+ WindowsVpnConnectionTypeVPulseSecure WindowsVpnConnectionType = 0
+ // WindowsVpnConnectionTypeVF5EdgeClient undocumented
+ WindowsVpnConnectionTypeVF5EdgeClient WindowsVpnConnectionType = 1
+ // WindowsVpnConnectionTypeVDellSonicWallMobileConnect undocumented
+ WindowsVpnConnectionTypeVDellSonicWallMobileConnect WindowsVpnConnectionType = 2
+ // WindowsVpnConnectionTypeVCheckPointCapsuleVpn undocumented
+ WindowsVpnConnectionTypeVCheckPointCapsuleVpn WindowsVpnConnectionType = 3
+)
+
+// WindowsVpnConnectionTypePPulseSecure returns a pointer to WindowsVpnConnectionTypeVPulseSecure
+func WindowsVpnConnectionTypePPulseSecure() *WindowsVpnConnectionType {
+ v := WindowsVpnConnectionTypeVPulseSecure
+ return &v
+}
+
+// WindowsVpnConnectionTypePF5EdgeClient returns a pointer to WindowsVpnConnectionTypeVF5EdgeClient
+func WindowsVpnConnectionTypePF5EdgeClient() *WindowsVpnConnectionType {
+ v := WindowsVpnConnectionTypeVF5EdgeClient
+ return &v
+}
+
+// WindowsVpnConnectionTypePDellSonicWallMobileConnect returns a pointer to WindowsVpnConnectionTypeVDellSonicWallMobileConnect
+func WindowsVpnConnectionTypePDellSonicWallMobileConnect() *WindowsVpnConnectionType {
+ v := WindowsVpnConnectionTypeVDellSonicWallMobileConnect
+ return &v
+}
+
+// WindowsVpnConnectionTypePCheckPointCapsuleVpn returns a pointer to WindowsVpnConnectionTypeVCheckPointCapsuleVpn
+func WindowsVpnConnectionTypePCheckPointCapsuleVpn() *WindowsVpnConnectionType {
+ v := WindowsVpnConnectionTypeVCheckPointCapsuleVpn
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiConfigurationModel.go
new file mode 100644
index 00000000..a4d3f0cf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiConfigurationModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiEnterpriseEAPConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiEnterpriseEAPConfigurationModel.go
new file mode 100644
index 00000000..4ba2944c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiEnterpriseEAPConfigurationModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/WindowsWifiEnterpriseEAPConfigurationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiEnterpriseEAPConfigurationRequest.go
new file mode 100644
index 00000000..206ad285
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiEnterpriseEAPConfigurationRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Windows81TrustedRootCertificate collection
+func (r *WindowsWifiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest) Get(ctx context.Context) ([]Windows81TrustedRootCertificate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/WiredNetworkInterfaceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WiredNetworkInterfaceEnum.go
new file mode 100644
index 00000000..0aabd74c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WiredNetworkInterfaceEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WiredNetworkInterface undocumented
+type WiredNetworkInterface int
+
+const (
+ // WiredNetworkInterfaceVAnyEthernet undocumented
+ WiredNetworkInterfaceVAnyEthernet WiredNetworkInterface = 0
+ // WiredNetworkInterfaceVFirstActiveEthernet undocumented
+ WiredNetworkInterfaceVFirstActiveEthernet WiredNetworkInterface = 1
+ // WiredNetworkInterfaceVSecondActiveEthernet undocumented
+ WiredNetworkInterfaceVSecondActiveEthernet WiredNetworkInterface = 2
+ // WiredNetworkInterfaceVThirdActiveEthernet undocumented
+ WiredNetworkInterfaceVThirdActiveEthernet WiredNetworkInterface = 3
+ // WiredNetworkInterfaceVFirstEthernet undocumented
+ WiredNetworkInterfaceVFirstEthernet WiredNetworkInterface = 4
+ // WiredNetworkInterfaceVSecondEthernet undocumented
+ WiredNetworkInterfaceVSecondEthernet WiredNetworkInterface = 5
+ // WiredNetworkInterfaceVThirdEthernet undocumented
+ WiredNetworkInterfaceVThirdEthernet WiredNetworkInterface = 6
+)
+
+// WiredNetworkInterfacePAnyEthernet returns a pointer to WiredNetworkInterfaceVAnyEthernet
+func WiredNetworkInterfacePAnyEthernet() *WiredNetworkInterface {
+ v := WiredNetworkInterfaceVAnyEthernet
+ return &v
+}
+
+// WiredNetworkInterfacePFirstActiveEthernet returns a pointer to WiredNetworkInterfaceVFirstActiveEthernet
+func WiredNetworkInterfacePFirstActiveEthernet() *WiredNetworkInterface {
+ v := WiredNetworkInterfaceVFirstActiveEthernet
+ return &v
+}
+
+// WiredNetworkInterfacePSecondActiveEthernet returns a pointer to WiredNetworkInterfaceVSecondActiveEthernet
+func WiredNetworkInterfacePSecondActiveEthernet() *WiredNetworkInterface {
+ v := WiredNetworkInterfaceVSecondActiveEthernet
+ return &v
+}
+
+// WiredNetworkInterfacePThirdActiveEthernet returns a pointer to WiredNetworkInterfaceVThirdActiveEthernet
+func WiredNetworkInterfacePThirdActiveEthernet() *WiredNetworkInterface {
+ v := WiredNetworkInterfaceVThirdActiveEthernet
+ return &v
+}
+
+// WiredNetworkInterfacePFirstEthernet returns a pointer to WiredNetworkInterfaceVFirstEthernet
+func WiredNetworkInterfacePFirstEthernet() *WiredNetworkInterface {
+ v := WiredNetworkInterfaceVFirstEthernet
+ return &v
+}
+
+// WiredNetworkInterfacePSecondEthernet returns a pointer to WiredNetworkInterfaceVSecondEthernet
+func WiredNetworkInterfacePSecondEthernet() *WiredNetworkInterface {
+ v := WiredNetworkInterfaceVSecondEthernet
+ return &v
+}
+
+// WiredNetworkInterfacePThirdEthernet returns a pointer to WiredNetworkInterfaceVThirdEthernet
+func WiredNetworkInterfacePThirdEthernet() *WiredNetworkInterface {
+ v := WiredNetworkInterfaceVThirdEthernet
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkPositionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkPositionModel.go
new file mode 100644
index 00000000..767879ca
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkPositionModel.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/matterbridge/msgraph.go/beta/WorkPositionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkPositionRequest.go
new file mode 100644
index 00000000..19929506
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkPositionRequest.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/matterbridge/msgraph.go/beta/WorkbookAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookAction.go
new file mode 100644
index 00000000..28f431b5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookAction.go
@@ -0,0 +1,98 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WorkbookCreateSessionRequestParameter undocumented
+type WorkbookCreateSessionRequestParameter struct {
+ // PersistChanges undocumented
+ PersistChanges *bool `json:"persistChanges,omitempty"`
+}
+
+// WorkbookCloseSessionRequestParameter undocumented
+type WorkbookCloseSessionRequestParameter struct {
+}
+
+// WorkbookRefreshSessionRequestParameter undocumented
+type WorkbookRefreshSessionRequestParameter struct {
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationAction.go
new file mode 100644
index 00000000..a36c3e9a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WorkbookApplicationCalculateRequestParameter undocumented
+type WorkbookApplicationCalculateRequestParameter struct {
+ // CalculationType undocumented
+ CalculationType *string `json:"calculationType,omitempty"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationModel.go
new file mode 100644
index 00000000..1908de39
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkbookApplication undocumented
+type WorkbookApplication struct {
+ // Entity is the base model of WorkbookApplication
+ Entity
+ // CalculationMode undocumented
+ CalculationMode *string `json:"calculationMode,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationRequest.go
new file mode 100644
index 00000000..f9cfe23d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAction.go
new file mode 100644
index 00000000..f12ff1b2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAction.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "encoding/json"
+)
+
+// 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"`
+}
+
+// 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"`
+}
+
+//
+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 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAreaFormatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAreaFormatModel.go
new file mode 100644
index 00000000..c6a7657d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAreaFormatModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAreaFormatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAreaFormatRequest.go
new file mode 100644
index 00000000..da75cbb0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAreaFormatRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxesModel.go
new file mode 100644
index 00000000..9d655ad0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxesModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxesRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxesRequest.go
new file mode 100644
index 00000000..73779598
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxesRequest.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisFormatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisFormatModel.go
new file mode 100644
index 00000000..0614068d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisFormatModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisFormatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisFormatRequest.go
new file mode 100644
index 00000000..288a9113
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisFormatRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisModel.go
new file mode 100644
index 00000000..a71544c1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "encoding/json"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisRequest.go
new file mode 100644
index 00000000..68e377e6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisRequest.go
@@ -0,0 +1,66 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleFormatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleFormatModel.go
new file mode 100644
index 00000000..b39849c2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleFormatModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkbookChartAxisTitleFormat undocumented
+type WorkbookChartAxisTitleFormat struct {
+ // Entity is the base model of WorkbookChartAxisTitleFormat
+ Entity
+ // Font undocumented
+ Font *WorkbookChartFont `json:"font,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleFormatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleFormatRequest.go
new file mode 100644
index 00000000..73fa4557
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleFormatRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Font is navigation property
+func (b *WorkbookChartAxisTitleFormatRequestBuilder) Font() *WorkbookChartFontRequestBuilder {
+ bb := &WorkbookChartFontRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/font"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleModel.go
new file mode 100644
index 00000000..4b59a843
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleRequest.go
new file mode 100644
index 00000000..836918fd
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Format is navigation property
+func (b *WorkbookChartAxisTitleRequestBuilder) Format() *WorkbookChartAxisTitleFormatRequestBuilder {
+ bb := &WorkbookChartAxisTitleFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelFormatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelFormatModel.go
new file mode 100644
index 00000000..b621b845
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelFormatModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelFormatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelFormatRequest.go
new file mode 100644
index 00000000..b02afad8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelFormatRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelsModel.go
new file mode 100644
index 00000000..b2394b9e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelsRequest.go
new file mode 100644
index 00000000..66448ddb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelsRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Format is navigation property
+func (b *WorkbookChartDataLabelsRequestBuilder) Format() *WorkbookChartDataLabelFormatRequestBuilder {
+ bb := &WorkbookChartDataLabelFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillAction.go
new file mode 100644
index 00000000..5a6b480b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillAction.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WorkbookChartFillClearRequestParameter undocumented
+type WorkbookChartFillClearRequestParameter struct {
+}
+
+// WorkbookChartFillSetSolidColorRequestParameter undocumented
+type WorkbookChartFillSetSolidColorRequestParameter struct {
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillModel.go
new file mode 100644
index 00000000..3e9454a3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkbookChartFill undocumented
+type WorkbookChartFill struct {
+ // Entity is the base model of WorkbookChartFill
+ Entity
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillRequest.go
new file mode 100644
index 00000000..1a6552c2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFontModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFontModel.go
new file mode 100644
index 00000000..617a998c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFontModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFontRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFontRequest.go
new file mode 100644
index 00000000..d46b3ee4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFontRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesFormatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesFormatModel.go
new file mode 100644
index 00000000..30d49e12
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesFormatModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkbookChartGridlinesFormat undocumented
+type WorkbookChartGridlinesFormat struct {
+ // Entity is the base model of WorkbookChartGridlinesFormat
+ Entity
+ // Line undocumented
+ Line *WorkbookChartLineFormat `json:"line,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesFormatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesFormatRequest.go
new file mode 100644
index 00000000..d0b1fc41
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesFormatRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Line is navigation property
+func (b *WorkbookChartGridlinesFormatRequestBuilder) Line() *WorkbookChartLineFormatRequestBuilder {
+ bb := &WorkbookChartLineFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/line"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesModel.go
new file mode 100644
index 00000000..91caf135
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesRequest.go
new file mode 100644
index 00000000..1a44dea1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Format is navigation property
+func (b *WorkbookChartGridlinesRequestBuilder) Format() *WorkbookChartGridlinesFormatRequestBuilder {
+ bb := &WorkbookChartGridlinesFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendFormatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendFormatModel.go
new file mode 100644
index 00000000..e6688e5e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendFormatModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendFormatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendFormatRequest.go
new file mode 100644
index 00000000..558be0d9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendFormatRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendModel.go
new file mode 100644
index 00000000..ccf49a83
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendRequest.go
new file mode 100644
index 00000000..53a68809
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Format is navigation property
+func (b *WorkbookChartLegendRequestBuilder) Format() *WorkbookChartLegendFormatRequestBuilder {
+ bb := &WorkbookChartLegendFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatAction.go
new file mode 100644
index 00000000..5718b8b9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WorkbookChartLineFormatClearRequestParameter undocumented
+type WorkbookChartLineFormatClearRequestParameter struct {
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatModel.go
new file mode 100644
index 00000000..d6568e76
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkbookChartLineFormat undocumented
+type WorkbookChartLineFormat struct {
+ // Entity is the base model of WorkbookChartLineFormat
+ Entity
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatRequest.go
new file mode 100644
index 00000000..22449593
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartModel.go
new file mode 100644
index 00000000..d8ce317c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointFormatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointFormatModel.go
new file mode 100644
index 00000000..da0fa9c6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointFormatModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkbookChartPointFormat undocumented
+type WorkbookChartPointFormat struct {
+ // Entity is the base model of WorkbookChartPointFormat
+ Entity
+ // Fill undocumented
+ Fill *WorkbookChartFill `json:"fill,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointFormatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointFormatRequest.go
new file mode 100644
index 00000000..550b74ac
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointFormatRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Fill is navigation property
+func (b *WorkbookChartPointFormatRequestBuilder) Fill() *WorkbookChartFillRequestBuilder {
+ bb := &WorkbookChartFillRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/fill"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointModel.go
new file mode 100644
index 00000000..0d691a5c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "encoding/json"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointRequest.go
new file mode 100644
index 00000000..c1de3cfb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Format is navigation property
+func (b *WorkbookChartPointRequestBuilder) Format() *WorkbookChartPointFormatRequestBuilder {
+ bb := &WorkbookChartPointFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartRequest.go
new file mode 100644
index 00000000..b4db72e5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartRequest.go
@@ -0,0 +1,181 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkbookChartSeries collection
+func (r *WorkbookChartSeriesCollectionRequest) Get(ctx context.Context) ([]WorkbookChartSeries, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesFormatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesFormatModel.go
new file mode 100644
index 00000000..714eedfb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesFormatModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesFormatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesFormatRequest.go
new file mode 100644
index 00000000..8587379d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesFormatRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesModel.go
new file mode 100644
index 00000000..96bcd5d1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesRequest.go
new file mode 100644
index 00000000..30057e12
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkbookChartPoint collection
+func (r *WorkbookChartSeriesPointsCollectionRequest) Get(ctx context.Context) ([]WorkbookChartPoint, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleFormatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleFormatModel.go
new file mode 100644
index 00000000..6ec0cf99
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleFormatModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleFormatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleFormatRequest.go
new file mode 100644
index 00000000..a266a3c5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleFormatRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleModel.go
new file mode 100644
index 00000000..c713d570
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleRequest.go
new file mode 100644
index 00000000..217b00bc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Format is navigation property
+func (b *WorkbookChartTitleRequestBuilder) Format() *WorkbookChartTitleFormatRequestBuilder {
+ bb := &WorkbookChartTitleFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentModel.go
new file mode 100644
index 00000000..4e2dc9ff
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentReplyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentReplyModel.go
new file mode 100644
index 00000000..ac9a0027
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentReplyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentReplyRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentReplyRequest.go
new file mode 100644
index 00000000..51742262
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentReplyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentRequest.go
new file mode 100644
index 00000000..208e0816
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkbookCommentReply collection
+func (r *WorkbookCommentRepliesCollectionRequest) Get(ctx context.Context) ([]WorkbookCommentReply, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterAction.go
new file mode 100644
index 00000000..2076d80b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterAction.go
@@ -0,0 +1,394 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "encoding/json"
+)
+
+// 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 {
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterCriteriaModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterCriteriaModel.go
new file mode 100644
index 00000000..d2e9cd41
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterCriteriaModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "encoding/json"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterDatetimeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterDatetimeModel.go
new file mode 100644
index 00000000..47ba0eb0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterDatetimeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterModel.go
new file mode 100644
index 00000000..bb147bcb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkbookFilter undocumented
+type WorkbookFilter struct {
+ // Entity is the base model of WorkbookFilter
+ Entity
+ // Criteria undocumented
+ Criteria *WorkbookFilterCriteria `json:"criteria,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterRequest.go
new file mode 100644
index 00000000..2d2fc03e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFormatProtectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFormatProtectionModel.go
new file mode 100644
index 00000000..5dadd608
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFormatProtectionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFormatProtectionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFormatProtectionRequest.go
new file mode 100644
index 00000000..53c5baeb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFormatProtectionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionResultModel.go
new file mode 100644
index 00000000..3a0e82d7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionResultModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "encoding/json"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsAction.go
new file mode 100644
index 00000000..5860c3b7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsAction.go
@@ -0,0 +1,12984 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "encoding/json"
+)
+
+// 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"`
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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 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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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
+}
+
+//
+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/matterbridge/msgraph.go/beta/WorkbookFunctionsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsModel.go
new file mode 100644
index 00000000..85913f2b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkbookFunctions undocumented
+type WorkbookFunctions struct {
+ // Entity is the base model of WorkbookFunctions
+ Entity
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsRequest.go
new file mode 100644
index 00000000..21f472e3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsRequest.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/matterbridge/msgraph.go/beta/WorkbookIconModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookIconModel.go
new file mode 100644
index 00000000..0321e0ad
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookIconModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookModel.go
new file mode 100644
index 00000000..bb427ee6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemAction.go
new file mode 100644
index 00000000..21b74eb4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemAction.go
@@ -0,0 +1,98 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "encoding/json"
+)
+
+// 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"`
+}
+
+//
+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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemModel.go
new file mode 100644
index 00000000..fe0f2049
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "encoding/json"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemRequest.go
new file mode 100644
index 00000000..163bb35a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Worksheet is navigation property
+func (b *WorkbookNamedItemRequestBuilder) Worksheet() *WorkbookWorksheetRequestBuilder {
+ bb := &WorkbookWorksheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/worksheet"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableAction.go
new file mode 100644
index 00000000..110f3933
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableAction.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WorkbookPivotTableCollectionRefreshAllRequestParameter undocumented
+type WorkbookPivotTableCollectionRefreshAllRequestParameter struct {
+}
+
+// WorkbookPivotTableRefreshRequestParameter undocumented
+type WorkbookPivotTableRefreshRequestParameter struct {
+}
+
+//
+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 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableModel.go
new file mode 100644
index 00000000..f2df4cf7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableRequest.go
new file mode 100644
index 00000000..fb8a6fdf
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Worksheet is navigation property
+func (b *WorkbookPivotTableRequestBuilder) Worksheet() *WorkbookWorksheetRequestBuilder {
+ bb := &WorkbookWorksheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/worksheet"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeAction.go
new file mode 100644
index 00000000..9596beea
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeAction.go
@@ -0,0 +1,164 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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 {
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeBorderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeBorderModel.go
new file mode 100644
index 00000000..4ba5b027
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeBorderModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeBorderRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeBorderRequest.go
new file mode 100644
index 00000000..4bf1d49b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeBorderRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillAction.go
new file mode 100644
index 00000000..094646e9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WorkbookRangeFillClearRequestParameter undocumented
+type WorkbookRangeFillClearRequestParameter struct {
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillModel.go
new file mode 100644
index 00000000..078e37f6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkbookRangeFill undocumented
+type WorkbookRangeFill struct {
+ // Entity is the base model of WorkbookRangeFill
+ Entity
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillRequest.go
new file mode 100644
index 00000000..6abb94fb
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFontModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFontModel.go
new file mode 100644
index 00000000..fe2e3376
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFontModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFontRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFontRequest.go
new file mode 100644
index 00000000..61027fb1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFontRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatAction.go
new file mode 100644
index 00000000..e46ebbd3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatAction.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WorkbookRangeFormatAutofitColumnsRequestParameter undocumented
+type WorkbookRangeFormatAutofitColumnsRequestParameter struct {
+}
+
+// WorkbookRangeFormatAutofitRowsRequestParameter undocumented
+type WorkbookRangeFormatAutofitRowsRequestParameter struct {
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatModel.go
new file mode 100644
index 00000000..d358d62e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatRequest.go
new file mode 100644
index 00000000..482483a1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatRequest.go
@@ -0,0 +1,160 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkbookRangeBorder collection
+func (r *WorkbookRangeFormatBordersCollectionRequest) Get(ctx context.Context) ([]WorkbookRangeBorder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeModel.go
new file mode 100644
index 00000000..87063697
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeModel.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "encoding/json"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeReferenceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeReferenceModel.go
new file mode 100644
index 00000000..cebbed53
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeReferenceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkbookRangeReference undocumented
+type WorkbookRangeReference struct {
+ // Object is the base model of WorkbookRangeReference
+ Object
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeRequest.go
new file mode 100644
index 00000000..5e07b8ac
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeRequest.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortAction.go
new file mode 100644
index 00000000..f7f31af5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortAction.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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"`
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortModel.go
new file mode 100644
index 00000000..32ed69a1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkbookRangeSort undocumented
+type WorkbookRangeSort struct {
+ // Entity is the base model of WorkbookRangeSort
+ Entity
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortRequest.go
new file mode 100644
index 00000000..e19b462e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeViewModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeViewModel.go
new file mode 100644
index 00000000..1896ddfc
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeViewModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "encoding/json"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeViewRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeViewRequest.go
new file mode 100644
index 00000000..64ad3d45
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeViewRequest.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/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkbookRangeView collection
+func (r *WorkbookRangeViewRowsCollectionRequest) Get(ctx context.Context) ([]WorkbookRangeView, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRequest.go
new file mode 100644
index 00000000..10c1563e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRequest.go
@@ -0,0 +1,435 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkbookComment collection
+func (r *WorkbookCommentsCollectionRequest) Get(ctx context.Context) ([]WorkbookComment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkbookNamedItem collection
+func (r *WorkbookNamesCollectionRequest) Get(ctx context.Context) ([]WorkbookNamedItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkbookTable collection
+func (r *WorkbookTablesCollectionRequest) Get(ctx context.Context) ([]WorkbookTable, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkbookWorksheet collection
+func (r *WorkbookWorksheetsCollectionRequest) Get(ctx context.Context) ([]WorkbookWorksheet, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookSessionInfoModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookSessionInfoModel.go
new file mode 100644
index 00000000..003598b7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookSessionInfoModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookSortFieldModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookSortFieldModel.go
new file mode 100644
index 00000000..1f84f206
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookSortFieldModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableAction.go
new file mode 100644
index 00000000..8eee0f5b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableAction.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WorkbookTableCollectionAddRequestParameter undocumented
+type WorkbookTableCollectionAddRequestParameter struct {
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+ // HasHeaders undocumented
+ HasHeaders *bool `json:"hasHeaders,omitempty"`
+}
+
+// WorkbookTableClearFiltersRequestParameter undocumented
+type WorkbookTableClearFiltersRequestParameter struct {
+}
+
+// WorkbookTableConvertToRangeRequestParameter undocumented
+type WorkbookTableConvertToRangeRequestParameter struct {
+}
+
+// WorkbookTableReapplyFiltersRequestParameter undocumented
+type WorkbookTableReapplyFiltersRequestParameter struct {
+}
+
+//
+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 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnAction.go
new file mode 100644
index 00000000..cba8469e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnAction.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "encoding/json"
+)
+
+// 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"`
+}
+
+//
+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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnModel.go
new file mode 100644
index 00000000..c483f24d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "encoding/json"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnRequest.go
new file mode 100644
index 00000000..4b661448
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
+
+// Filter is navigation property
+func (b *WorkbookTableColumnRequestBuilder) Filter() *WorkbookFilterRequestBuilder {
+ bb := &WorkbookFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/filter"
+ return bb
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableModel.go
new file mode 100644
index 00000000..68469df6
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRequest.go
new file mode 100644
index 00000000..ddf04cd4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRequest.go
@@ -0,0 +1,247 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkbookTableColumn collection
+func (r *WorkbookTableColumnsCollectionRequest) Get(ctx context.Context) ([]WorkbookTableColumn, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkbookTableRow collection
+func (r *WorkbookTableRowsCollectionRequest) Get(ctx context.Context) ([]WorkbookTableRow, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowAction.go
new file mode 100644
index 00000000..0dd6a39a
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowAction.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "encoding/json"
+)
+
+// WorkbookTableRowCollectionAddRequestParameter undocumented
+type WorkbookTableRowCollectionAddRequestParameter struct {
+ // Index undocumented
+ Index *int `json:"index,omitempty"`
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+//
+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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowModel.go
new file mode 100644
index 00000000..b2cf1164
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "encoding/json"
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowRequest.go
new file mode 100644
index 00000000..055ee6f8
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortAction.go
new file mode 100644
index 00000000..f976da4f
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortAction.go
@@ -0,0 +1,101 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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 {
+}
+
+//
+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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortModel.go
new file mode 100644
index 00000000..f4a6b56b
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortRequest.go
new file mode 100644
index 00000000..54852de7
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetAction.go
new file mode 100644
index 00000000..44d09970
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetAction.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WorkbookWorksheetCollectionAddRequestParameter undocumented
+type WorkbookWorksheetCollectionAddRequestParameter struct {
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
+
+//
+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
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetModel.go
new file mode 100644
index 00000000..a064eaa4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionAction.go
new file mode 100644
index 00000000..16e8abb5
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionAction.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WorkbookWorksheetProtectionProtectRequestParameter undocumented
+type WorkbookWorksheetProtectionProtectRequestParameter struct {
+ // Options undocumented
+ Options *WorkbookWorksheetProtectionOptions `json:"options,omitempty"`
+}
+
+// WorkbookWorksheetProtectionUnprotectRequestParameter undocumented
+type WorkbookWorksheetProtectionUnprotectRequestParameter struct {
+}
+
+//
+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/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionModel.go
new file mode 100644
index 00000000..2e21e686
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionOptionsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionOptionsModel.go
new file mode 100644
index 00000000..527f0627
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionOptionsModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionRequest.go
new file mode 100644
index 00000000..1854e203
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// 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)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetRequest.go
new file mode 100644
index 00000000..4e7f848e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetRequest.go
@@ -0,0 +1,428 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+// 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)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkbookChart collection
+func (r *WorkbookWorksheetChartsCollectionRequest) Get(ctx context.Context) ([]WorkbookChart, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkbookNamedItem collection
+func (r *WorkbookWorksheetNamesCollectionRequest) Get(ctx context.Context) ([]WorkbookNamedItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkbookPivotTable collection
+func (r *WorkbookWorksheetPivotTablesCollectionRequest) Get(ctx context.Context) ([]WorkbookPivotTable, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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{}) ([]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 len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkbookTable collection
+func (r *WorkbookWorksheetTablesCollectionRequest) Get(ctx context.Context) ([]WorkbookTable, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// 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/matterbridge/msgraph.go/beta/WorkforceIntegrationEncryptionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationEncryptionModel.go
new file mode 100644
index 00000000..179b998c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationEncryptionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// 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/matterbridge/msgraph.go/beta/WorkforceIntegrationEncryptionProtocolEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationEncryptionProtocolEnum.go
new file mode 100644
index 00000000..0640739e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationEncryptionProtocolEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkforceIntegrationEncryptionProtocol undocumented
+type WorkforceIntegrationEncryptionProtocol int
+
+const (
+ // WorkforceIntegrationEncryptionProtocolVSharedSecret undocumented
+ WorkforceIntegrationEncryptionProtocolVSharedSecret WorkforceIntegrationEncryptionProtocol = 0
+ // WorkforceIntegrationEncryptionProtocolVUnknownFutureValue undocumented
+ WorkforceIntegrationEncryptionProtocolVUnknownFutureValue WorkforceIntegrationEncryptionProtocol = 1
+)
+
+// WorkforceIntegrationEncryptionProtocolPSharedSecret returns a pointer to WorkforceIntegrationEncryptionProtocolVSharedSecret
+func WorkforceIntegrationEncryptionProtocolPSharedSecret() *WorkforceIntegrationEncryptionProtocol {
+ v := WorkforceIntegrationEncryptionProtocolVSharedSecret
+ return &v
+}
+
+// WorkforceIntegrationEncryptionProtocolPUnknownFutureValue returns a pointer to WorkforceIntegrationEncryptionProtocolVUnknownFutureValue
+func WorkforceIntegrationEncryptionProtocolPUnknownFutureValue() *WorkforceIntegrationEncryptionProtocol {
+ v := WorkforceIntegrationEncryptionProtocolVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationModel.go
new file mode 100644
index 00000000..1b8f5c96
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationModel.go
@@ -0,0 +1,21 @@
+// 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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationRequest.go
new file mode 100644
index 00000000..30a69010
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationRequest.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/matterbridge/msgraph.go/beta/WorkforceIntegrationSupportedEntitiesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationSupportedEntitiesEnum.go
new file mode 100644
index 00000000..ddd851b2
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationSupportedEntitiesEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkforceIntegrationSupportedEntities undocumented
+type WorkforceIntegrationSupportedEntities int
+
+const (
+ // WorkforceIntegrationSupportedEntitiesVNone undocumented
+ WorkforceIntegrationSupportedEntitiesVNone WorkforceIntegrationSupportedEntities = 0
+ // WorkforceIntegrationSupportedEntitiesVShift undocumented
+ WorkforceIntegrationSupportedEntitiesVShift WorkforceIntegrationSupportedEntities = 1
+ // WorkforceIntegrationSupportedEntitiesVSwapRequest undocumented
+ WorkforceIntegrationSupportedEntitiesVSwapRequest WorkforceIntegrationSupportedEntities = 2
+ // WorkforceIntegrationSupportedEntitiesVUserShiftPreferences undocumented
+ WorkforceIntegrationSupportedEntitiesVUserShiftPreferences WorkforceIntegrationSupportedEntities = 8
+ // WorkforceIntegrationSupportedEntitiesVOpenShift undocumented
+ WorkforceIntegrationSupportedEntitiesVOpenShift WorkforceIntegrationSupportedEntities = 16
+ // WorkforceIntegrationSupportedEntitiesVOpenShiftRequest undocumented
+ WorkforceIntegrationSupportedEntitiesVOpenShiftRequest WorkforceIntegrationSupportedEntities = 32
+)
+
+// WorkforceIntegrationSupportedEntitiesPNone returns a pointer to WorkforceIntegrationSupportedEntitiesVNone
+func WorkforceIntegrationSupportedEntitiesPNone() *WorkforceIntegrationSupportedEntities {
+ v := WorkforceIntegrationSupportedEntitiesVNone
+ return &v
+}
+
+// WorkforceIntegrationSupportedEntitiesPShift returns a pointer to WorkforceIntegrationSupportedEntitiesVShift
+func WorkforceIntegrationSupportedEntitiesPShift() *WorkforceIntegrationSupportedEntities {
+ v := WorkforceIntegrationSupportedEntitiesVShift
+ return &v
+}
+
+// WorkforceIntegrationSupportedEntitiesPSwapRequest returns a pointer to WorkforceIntegrationSupportedEntitiesVSwapRequest
+func WorkforceIntegrationSupportedEntitiesPSwapRequest() *WorkforceIntegrationSupportedEntities {
+ v := WorkforceIntegrationSupportedEntitiesVSwapRequest
+ return &v
+}
+
+// WorkforceIntegrationSupportedEntitiesPUserShiftPreferences returns a pointer to WorkforceIntegrationSupportedEntitiesVUserShiftPreferences
+func WorkforceIntegrationSupportedEntitiesPUserShiftPreferences() *WorkforceIntegrationSupportedEntities {
+ v := WorkforceIntegrationSupportedEntitiesVUserShiftPreferences
+ return &v
+}
+
+// WorkforceIntegrationSupportedEntitiesPOpenShift returns a pointer to WorkforceIntegrationSupportedEntitiesVOpenShift
+func WorkforceIntegrationSupportedEntitiesPOpenShift() *WorkforceIntegrationSupportedEntities {
+ v := WorkforceIntegrationSupportedEntitiesVOpenShift
+ return &v
+}
+
+// WorkforceIntegrationSupportedEntitiesPOpenShiftRequest returns a pointer to WorkforceIntegrationSupportedEntitiesVOpenShiftRequest
+func WorkforceIntegrationSupportedEntitiesPOpenShiftRequest() *WorkforceIntegrationSupportedEntities {
+ v := WorkforceIntegrationSupportedEntitiesVOpenShiftRequest
+ return &v
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkingHoursModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkingHoursModel.go
new file mode 100644
index 00000000..33fea50c
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/WorkingHoursModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// WorkingHours undocumented
+type WorkingHours struct {
+ // Object is the base model of WorkingHours
+ Object
+ // DaysOfWeek undocumented
+ DaysOfWeek []DayOfWeek `json:"daysOfWeek,omitempty"`
+ // StartTime undocumented
+ StartTime *time.Time `json:"startTime,omitempty"`
+ // EndTime undocumented
+ EndTime *time.Time `json:"endTime,omitempty"`
+ // TimeZone undocumented
+ TimeZone *TimeZoneBase `json:"timeZone,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/YammerActivitySummaryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/YammerActivitySummaryModel.go
new file mode 100644
index 00000000..49720766
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/YammerActivitySummaryModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// YammerActivitySummary undocumented
+type YammerActivitySummary struct {
+ // Entity is the base model of YammerActivitySummary
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/YammerActivityUserDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/YammerActivityUserDetailModel.go
new file mode 100644
index 00000000..a5fa5e2e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/YammerActivityUserDetailModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// YammerActivityUserDetail undocumented
+type YammerActivityUserDetail struct {
+ // Entity is the base model of YammerActivityUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"stateChangeDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageDistributionUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageDistributionUserCountsModel.go
new file mode 100644
index 00000000..e58f2dc3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageDistributionUserCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// YammerDeviceUsageDistributionUserCounts undocumented
+type YammerDeviceUsageDistributionUserCounts struct {
+ // Entity is the base model of YammerDeviceUsageDistributionUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageUserCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageUserCountsModel.go
new file mode 100644
index 00000000..7d0c95d9
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageUserCountsModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// YammerDeviceUsageUserCounts undocumented
+type YammerDeviceUsageUserCounts struct {
+ // Entity is the base model of YammerDeviceUsageUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageUserDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageUserDetailModel.go
new file mode 100644
index 00000000..261ba3d4
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageUserDetailModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// YammerDeviceUsageUserDetail undocumented
+type YammerDeviceUsageUserDetail struct {
+ // Entity is the base model of YammerDeviceUsageUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"stateChangeDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityCountsModel.go
new file mode 100644
index 00000000..fcc9da27
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityCountsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// YammerGroupsActivityCounts undocumented
+type YammerGroupsActivityCounts struct {
+ // Entity is the base model of YammerGroupsActivityCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityDetailModel.go
new file mode 100644
index 00000000..c456bcf3
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityDetailModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// YammerGroupsActivityDetail undocumented
+type YammerGroupsActivityDetail struct {
+ // Entity is the base model of YammerGroupsActivityDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `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 *time.Time `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"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityGroupCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityGroupCountsModel.go
new file mode 100644
index 00000000..0a2ee237
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityGroupCountsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// YammerGroupsActivityGroupCounts undocumented
+type YammerGroupsActivityGroupCounts struct {
+ // Entity is the base model of YammerGroupsActivityGroupCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/YomiPersonNameModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/YomiPersonNameModel.go
new file mode 100644
index 00000000..73eaa030
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/YomiPersonNameModel.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/matterbridge/msgraph.go/beta/extensions.go b/vendor/github.com/matterbridge/msgraph.go/beta/extensions.go
new file mode 100644
index 00000000..23971438
--- /dev/null
+++ b/vendor/github.com/matterbridge/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/matterbridge/msgraph.go/beta/msgraph.go b/vendor/github.com/matterbridge/msgraph.go/beta/msgraph.go
new file mode 100644
index 00000000..a215f456
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/beta/msgraph.go
@@ -0,0 +1,261 @@
+// 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"
+
+ "github.com/matterbridge/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
+
+// 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
+}
+
+// BaseRequest is base request
+type BaseRequest struct {
+ baseURL string
+ client *http.Client
+ requestObject interface{}
+ 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
+}
+
+// Query returns queries for URL
+func (r *BaseRequest) 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) {
+ return http.NewRequest(method, r.baseURL+path, body)
+}
+
+// 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 := http.NewRequest(method, r.baseURL+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},
+ }
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/README.md b/vendor/github.com/matterbridge/msgraph.go/jsonx/README.md
new file mode 100644
index 00000000..949df339
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/jsonx/README.md
@@ -0,0 +1,55 @@
+# jsonx
+
+It's modified version of [encoding/json](https://golang.org/pkg/encoding/json/)
+which enables extra map field (with `jsonx:"true"` tag) to catch all other fields not declared in the struct.
+
+`jsonx` is a code name for internal use
+and not related to [JSONx](https://tools.ietf.org/html/draft-rsalz-jsonx-00).
+
+Example ([Run on playgroud](https://play.golang.org/p/TZi0JeHYG69))
+```go
+package main
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "github.com/matterbridge/msgraph.go/jsonx"
+)
+
+type Extra struct {
+ X string
+ Y int
+ Extra map[string]interface{} `json:"-" jsonx:"true"`
+}
+
+func main() {
+ var x1, x2 Extra
+ b := []byte(`{"X":"123","Y":123,"A":"123","B":123}`)
+ fmt.Printf("\nUnmarshal input: %s\n", string(b))
+ json.Unmarshal(b, &x1)
+ fmt.Printf(" json.Unmarshal: %#v\n", x1)
+ jsonx.Unmarshal(b, &x2)
+ fmt.Printf("jsonx.Unmarshal: %#v\n", x2)
+
+ x := Extra{X: "456", Y: 456, Extra: map[string]interface{}{"A": "456", "B": 456}}
+ fmt.Printf("\nMarshal input: %#v\n", x)
+ b1, _ := json.Marshal(x)
+ fmt.Printf(" json.Marshal: %s\n", string(b1))
+ b2, _ := jsonx.Marshal(x)
+ fmt.Printf("jsonx.Marshal: %s\n", string(b2))
+}
+```
+
+Result
+
+```text
+Unmarshal input: {"X":"123","Y":123,"A":"123","B":123}
+ json.Unmarshal: main.Extra{X:"123", Y:123, Extra:map[string]interface {}(nil)}
+jsonx.Unmarshal: main.Extra{X:"123", Y:123, Extra:map[string]interface {}{"A":"123", "B":123}}
+
+Marshal input: main.Extra{X:"456", Y:456, Extra:map[string]interface {}{"A":"456", "B":456}}
+ json.Marshal: {"X":"456","Y":456}
+jsonx.Marshal: {"X":"456","Y":456,"A":"456","B":456}
+```
+
diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/decode.go b/vendor/github.com/matterbridge/msgraph.go/jsonx/decode.go
new file mode 100644
index 00000000..081d7ad0
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/jsonx/decode.go
@@ -0,0 +1,1376 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Represents JSON data structure using native Go types: booleans, floats,
+// strings, arrays, and maps.
+
+package jsonx
+
+import (
+ "encoding"
+ "encoding/base64"
+ "fmt"
+ "reflect"
+ "strconv"
+ "strings"
+ "unicode"
+ "unicode/utf16"
+ "unicode/utf8"
+)
+
+// Unmarshal parses the JSON-encoded data and stores the result
+// in the value pointed to by v. If v is nil or not a pointer,
+// Unmarshal returns an InvalidUnmarshalError.
+//
+// Unmarshal uses the inverse of the encodings that
+// Marshal uses, allocating maps, slices, and pointers as necessary,
+// with the following additional rules:
+//
+// To unmarshal JSON into a pointer, Unmarshal first handles the case of
+// the JSON being the JSON literal null. In that case, Unmarshal sets
+// the pointer to nil. Otherwise, Unmarshal unmarshals the JSON into
+// the value pointed at by the pointer. If the pointer is nil, Unmarshal
+// allocates a new value for it to point to.
+//
+// To unmarshal JSON into a value implementing the Unmarshaler interface,
+// Unmarshal calls that value's UnmarshalJSON method, including
+// when the input is a JSON null.
+// Otherwise, if the value implements encoding.TextUnmarshaler
+// and the input is a JSON quoted string, Unmarshal calls that value's
+// UnmarshalText method with the unquoted form of the string.
+//
+// To unmarshal JSON into a struct, Unmarshal matches incoming object
+// keys to the keys used by Marshal (either the struct field name or its tag),
+// preferring an exact match but also accepting a case-insensitive match. By
+// default, object keys which don't have a corresponding struct field are
+// ignored (see Decoder.DisallowUnknownFields for an alternative).
+//
+// To unmarshal JSON into an interface value,
+// Unmarshal stores one of these in the interface value:
+//
+// bool, for JSON booleans
+// float64, for JSON numbers
+// string, for JSON strings
+// []interface{}, for JSON arrays
+// map[string]interface{}, for JSON objects
+// nil for JSON null
+//
+// To unmarshal a JSON array into a slice, Unmarshal resets the slice length
+// to zero and then appends each element to the slice.
+// As a special case, to unmarshal an empty JSON array into a slice,
+// Unmarshal replaces the slice with a new empty slice.
+//
+// To unmarshal a JSON array into a Go array, Unmarshal decodes
+// JSON array elements into corresponding Go array elements.
+// If the Go array is smaller than the JSON array,
+// the additional JSON array elements are discarded.
+// If the JSON array is smaller than the Go array,
+// the additional Go array elements are set to zero values.
+//
+// To unmarshal a JSON object into a map, Unmarshal first establishes a map to
+// use. If the map is nil, Unmarshal allocates a new map. Otherwise Unmarshal
+// reuses the existing map, keeping existing entries. Unmarshal then stores
+// key-value pairs from the JSON object into the map. The map's key type must
+// either be a string, an integer, or implement encoding.TextUnmarshaler.
+//
+// If a JSON value is not appropriate for a given target type,
+// or if a JSON number overflows the target type, Unmarshal
+// skips that field and completes the unmarshaling as best it can.
+// If no more serious errors are encountered, Unmarshal returns
+// an UnmarshalTypeError describing the earliest such error. In any
+// case, it's not guaranteed that all the remaining fields following
+// the problematic one will be unmarshaled into the target object.
+//
+// The JSON null value unmarshals into an interface, map, pointer, or slice
+// by setting that Go value to nil. Because null is often used in JSON to mean
+// ``not present,'' unmarshaling a JSON null into any other Go type has no effect
+// on the value and produces no error.
+//
+// When unmarshaling quoted strings, invalid UTF-8 or
+// invalid UTF-16 surrogate pairs are not treated as an error.
+// Instead, they are replaced by the Unicode replacement
+// character U+FFFD.
+//
+func Unmarshal(data []byte, v interface{}) error {
+ // Check for well-formedness.
+ // Avoids filling out half a data structure
+ // before discovering a JSON syntax error.
+ var d decodeState
+ err := checkValid(data, &d.scan)
+ if err != nil {
+ return err
+ }
+
+ d.init(data)
+ return d.unmarshal(v)
+}
+
+// Unmarshaler is the interface implemented by types
+// that can unmarshal a JSON description of themselves.
+// The input can be assumed to be a valid encoding of
+// a JSON value. UnmarshalJSON must copy the JSON data
+// if it wishes to retain the data after returning.
+//
+// By convention, to approximate the behavior of Unmarshal itself,
+// Unmarshalers implement UnmarshalJSON([]byte("null")) as a no-op.
+type Unmarshaler interface {
+ UnmarshalJSON([]byte) error
+}
+
+// An UnmarshalTypeError describes a JSON value that was
+// not appropriate for a value of a specific Go type.
+type UnmarshalTypeError struct {
+ Value string // description of JSON value - "bool", "array", "number -5"
+ Type reflect.Type // type of Go value it could not be assigned to
+ Offset int64 // error occurred after reading Offset bytes
+ Struct string // name of the struct type containing the field
+ Field string // the full path from root node to the field
+}
+
+func (e *UnmarshalTypeError) Error() string {
+ if e.Struct != "" || e.Field != "" {
+ return "json: cannot unmarshal " + e.Value + " into Go struct field " + e.Struct + "." + e.Field + " of type " + e.Type.String()
+ }
+ return "json: cannot unmarshal " + e.Value + " into Go value of type " + e.Type.String()
+}
+
+// An UnmarshalFieldError describes a JSON object key that
+// led to an unexported (and therefore unwritable) struct field.
+//
+// Deprecated: No longer used; kept for compatibility.
+type UnmarshalFieldError struct {
+ Key string
+ Type reflect.Type
+ Field reflect.StructField
+}
+
+func (e *UnmarshalFieldError) Error() string {
+ return "json: cannot unmarshal object key " + strconv.Quote(e.Key) + " into unexported field " + e.Field.Name + " of type " + e.Type.String()
+}
+
+// An InvalidUnmarshalError describes an invalid argument passed to Unmarshal.
+// (The argument to Unmarshal must be a non-nil pointer.)
+type InvalidUnmarshalError struct {
+ Type reflect.Type
+}
+
+func (e *InvalidUnmarshalError) Error() string {
+ if e.Type == nil {
+ return "json: Unmarshal(nil)"
+ }
+
+ if e.Type.Kind() != reflect.Ptr {
+ return "json: Unmarshal(non-pointer " + e.Type.String() + ")"
+ }
+ return "json: Unmarshal(nil " + e.Type.String() + ")"
+}
+
+func (d *decodeState) unmarshal(v interface{}) error {
+ rv := reflect.ValueOf(v)
+ if rv.Kind() != reflect.Ptr || rv.IsNil() {
+ return &InvalidUnmarshalError{reflect.TypeOf(v)}
+ }
+
+ d.scan.reset()
+ d.scanWhile(scanSkipSpace)
+ // We decode rv not rv.Elem because the Unmarshaler interface
+ // test must be applied at the top level of the value.
+ err := d.value(rv)
+ if err != nil {
+ return d.addErrorContext(err)
+ }
+ return d.savedError
+}
+
+// A Number represents a JSON number literal.
+type Number string
+
+// String returns the literal text of the number.
+func (n Number) String() string { return string(n) }
+
+// Float64 returns the number as a float64.
+func (n Number) Float64() (float64, error) {
+ return strconv.ParseFloat(string(n), 64)
+}
+
+// Int64 returns the number as an int64.
+func (n Number) Int64() (int64, error) {
+ return strconv.ParseInt(string(n), 10, 64)
+}
+
+// isValidNumber reports whether s is a valid JSON number literal.
+func isValidNumber(s string) bool {
+ // This function implements the JSON numbers grammar.
+ // See https://tools.ietf.org/html/rfc7159#section-6
+ // and https://json.org/number.gif
+
+ if s == "" {
+ return false
+ }
+
+ // Optional -
+ if s[0] == '-' {
+ s = s[1:]
+ if s == "" {
+ return false
+ }
+ }
+
+ // Digits
+ switch {
+ default:
+ return false
+
+ case s[0] == '0':
+ s = s[1:]
+
+ case '1' <= s[0] && s[0] <= '9':
+ s = s[1:]
+ for len(s) > 0 && '0' <= s[0] && s[0] <= '9' {
+ s = s[1:]
+ }
+ }
+
+ // . followed by 1 or more digits.
+ if len(s) >= 2 && s[0] == '.' && '0' <= s[1] && s[1] <= '9' {
+ s = s[2:]
+ for len(s) > 0 && '0' <= s[0] && s[0] <= '9' {
+ s = s[1:]
+ }
+ }
+
+ // e or E followed by an optional - or + and
+ // 1 or more digits.
+ if len(s) >= 2 && (s[0] == 'e' || s[0] == 'E') {
+ s = s[1:]
+ if s[0] == '+' || s[0] == '-' {
+ s = s[1:]
+ if s == "" {
+ return false
+ }
+ }
+ for len(s) > 0 && '0' <= s[0] && s[0] <= '9' {
+ s = s[1:]
+ }
+ }
+
+ // Make sure we are at the end.
+ return s == ""
+}
+
+// decodeState represents the state while decoding a JSON value.
+type decodeState struct {
+ data []byte
+ off int // next read offset in data
+ opcode int // last read result
+ scan scanner
+ errorContext struct { // provides context for type errors
+ Struct reflect.Type
+ FieldStack []string
+ }
+ savedError error
+ useNumber bool
+ disallowUnknownFields bool
+}
+
+// readIndex returns the position of the last byte read.
+func (d *decodeState) readIndex() int {
+ return d.off - 1
+}
+
+// phasePanicMsg is used as a panic message when we end up with something that
+// shouldn't happen. It can indicate a bug in the JSON decoder, or that
+// something is editing the data slice while the decoder executes.
+const phasePanicMsg = "JSON decoder out of sync - data changing underfoot?"
+
+func (d *decodeState) init(data []byte) *decodeState {
+ d.data = data
+ d.off = 0
+ d.savedError = nil
+ d.errorContext.Struct = nil
+
+ // Reuse the allocated space for the FieldStack slice.
+ d.errorContext.FieldStack = d.errorContext.FieldStack[:0]
+ return d
+}
+
+// saveError saves the first err it is called with,
+// for reporting at the end of the unmarshal.
+func (d *decodeState) saveError(err error) {
+ if d.savedError == nil {
+ d.savedError = d.addErrorContext(err)
+ }
+}
+
+// addErrorContext returns a new error enhanced with information from d.errorContext
+func (d *decodeState) addErrorContext(err error) error {
+ if d.errorContext.Struct != nil || len(d.errorContext.FieldStack) > 0 {
+ switch err := err.(type) {
+ case *UnmarshalTypeError:
+ err.Struct = d.errorContext.Struct.Name()
+ err.Field = strings.Join(d.errorContext.FieldStack, ".")
+ return err
+ }
+ }
+ return err
+}
+
+// skip scans to the end of what was started.
+func (d *decodeState) skip() {
+ s, data, i := &d.scan, d.data, d.off
+ depth := len(s.parseState)
+ for {
+ op := s.step(s, data[i])
+ i++
+ if len(s.parseState) < depth {
+ d.off = i
+ d.opcode = op
+ return
+ }
+ }
+}
+
+// scanNext processes the byte at d.data[d.off].
+func (d *decodeState) scanNext() {
+ if d.off < len(d.data) {
+ d.opcode = d.scan.step(&d.scan, d.data[d.off])
+ d.off++
+ } else {
+ d.opcode = d.scan.eof()
+ d.off = len(d.data) + 1 // mark processed EOF with len+1
+ }
+}
+
+// scanWhile processes bytes in d.data[d.off:] until it
+// receives a scan code not equal to op.
+func (d *decodeState) scanWhile(op int) {
+ s, data, i := &d.scan, d.data, d.off
+ for i < len(data) {
+ newOp := s.step(s, data[i])
+ i++
+ if newOp != op {
+ d.opcode = newOp
+ d.off = i
+ return
+ }
+ }
+
+ d.off = len(data) + 1 // mark processed EOF with len+1
+ d.opcode = d.scan.eof()
+}
+
+// rescanLiteral is similar to scanWhile(scanContinue), but it specialises the
+// common case where we're decoding a literal. The decoder scans the input
+// twice, once for syntax errors and to check the length of the value, and the
+// second to perform the decoding.
+//
+// Only in the second step do we use decodeState to tokenize literals, so we
+// know there aren't any syntax errors. We can take advantage of that knowledge,
+// and scan a literal's bytes much more quickly.
+func (d *decodeState) rescanLiteral() {
+ data, i := d.data, d.off
+Switch:
+ switch data[i-1] {
+ case '"': // string
+ for ; i < len(data); i++ {
+ switch data[i] {
+ case '\\':
+ i++ // escaped char
+ case '"':
+ i++ // tokenize the closing quote too
+ break Switch
+ }
+ }
+ case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-': // number
+ for ; i < len(data); i++ {
+ switch data[i] {
+ case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
+ '.', 'e', 'E', '+', '-':
+ default:
+ break Switch
+ }
+ }
+ case 't': // true
+ i += len("rue")
+ case 'f': // false
+ i += len("alse")
+ case 'n': // null
+ i += len("ull")
+ }
+ if i < len(data) {
+ d.opcode = stateEndValue(&d.scan, data[i])
+ } else {
+ d.opcode = scanEnd
+ }
+ d.off = i + 1
+}
+
+// value consumes a JSON value from d.data[d.off-1:], decoding into v, and
+// reads the following byte ahead. If v is invalid, the value is discarded.
+// The first byte of the value has been read already.
+func (d *decodeState) value(v reflect.Value) error {
+ switch d.opcode {
+ default:
+ panic(phasePanicMsg)
+
+ case scanBeginArray:
+ if v.IsValid() {
+ if err := d.array(v); err != nil {
+ return err
+ }
+ } else {
+ d.skip()
+ }
+ d.scanNext()
+
+ case scanBeginObject:
+ if v.IsValid() {
+ if err := d.object(v); err != nil {
+ return err
+ }
+ } else {
+ d.skip()
+ }
+ d.scanNext()
+
+ case scanBeginLiteral:
+ // All bytes inside literal return scanContinue op code.
+ start := d.readIndex()
+ d.rescanLiteral()
+
+ if v.IsValid() {
+ if err := d.literalStore(d.data[start:d.readIndex()], v, false); err != nil {
+ return err
+ }
+ }
+ }
+ return nil
+}
+
+type unquotedValue struct{}
+
+// valueQuoted is like value but decodes a
+// quoted string literal or literal null into an interface value.
+// If it finds anything other than a quoted string literal or null,
+// valueQuoted returns unquotedValue{}.
+func (d *decodeState) valueQuoted() interface{} {
+ switch d.opcode {
+ default:
+ panic(phasePanicMsg)
+
+ case scanBeginArray, scanBeginObject:
+ d.skip()
+ d.scanNext()
+
+ case scanBeginLiteral:
+ v := d.literalInterface()
+ switch v.(type) {
+ case nil, string:
+ return v
+ }
+ }
+ return unquotedValue{}
+}
+
+// indirect walks down v allocating pointers as needed,
+// until it gets to a non-pointer.
+// if it encounters an Unmarshaler, indirect stops and returns that.
+// if decodingNull is true, indirect stops at the last pointer so it can be set to nil.
+func indirect(v reflect.Value, decodingNull bool) (Unmarshaler, encoding.TextUnmarshaler, reflect.Value) {
+ // Issue #24153 indicates that it is generally not a guaranteed property
+ // that you may round-trip a reflect.Value by calling Value.Addr().Elem()
+ // and expect the value to still be settable for values derived from
+ // unexported embedded struct fields.
+ //
+ // The logic below effectively does this when it first addresses the value
+ // (to satisfy possible pointer methods) and continues to dereference
+ // subsequent pointers as necessary.
+ //
+ // After the first round-trip, we set v back to the original value to
+ // preserve the original RW flags contained in reflect.Value.
+ v0 := v
+ haveAddr := false
+
+ // If v is a named type and is addressable,
+ // start with its address, so that if the type has pointer methods,
+ // we find them.
+ if v.Kind() != reflect.Ptr && v.Type().Name() != "" && v.CanAddr() {
+ haveAddr = true
+ v = v.Addr()
+ }
+ for {
+ // Load value from interface, but only if the result will be
+ // usefully addressable.
+ if v.Kind() == reflect.Interface && !v.IsNil() {
+ e := v.Elem()
+ if e.Kind() == reflect.Ptr && !e.IsNil() && (!decodingNull || e.Elem().Kind() == reflect.Ptr) {
+ haveAddr = false
+ v = e
+ continue
+ }
+ }
+
+ if v.Kind() != reflect.Ptr {
+ break
+ }
+
+ if v.Elem().Kind() != reflect.Ptr && decodingNull && v.CanSet() {
+ break
+ }
+
+ // Prevent infinite loop if v is an interface pointing to its own address:
+ // var v interface{}
+ // v = &v
+ if v.Elem().Kind() == reflect.Interface && v.Elem().Elem() == v {
+ v = v.Elem()
+ break
+ }
+ if v.IsNil() {
+ v.Set(reflect.New(v.Type().Elem()))
+ }
+ if v.Type().NumMethod() > 0 && v.CanInterface() {
+ if u, ok := v.Interface().(Unmarshaler); ok {
+ return u, nil, reflect.Value{}
+ }
+ if !decodingNull {
+ if u, ok := v.Interface().(encoding.TextUnmarshaler); ok {
+ return nil, u, reflect.Value{}
+ }
+ }
+ }
+
+ if haveAddr {
+ v = v0 // restore original value after round-trip Value.Addr().Elem()
+ haveAddr = false
+ } else {
+ v = v.Elem()
+ }
+ }
+ return nil, nil, v
+}
+
+// array consumes an array from d.data[d.off-1:], decoding into v.
+// The first byte of the array ('[') has been read already.
+func (d *decodeState) array(v reflect.Value) error {
+ // Check for unmarshaler.
+ u, ut, pv := indirect(v, false)
+ if u != nil {
+ start := d.readIndex()
+ d.skip()
+ return u.UnmarshalJSON(d.data[start:d.off])
+ }
+ if ut != nil {
+ d.saveError(&UnmarshalTypeError{Value: "array", Type: v.Type(), Offset: int64(d.off)})
+ d.skip()
+ return nil
+ }
+ v = pv
+
+ // Check type of target.
+ switch v.Kind() {
+ case reflect.Interface:
+ if v.NumMethod() == 0 {
+ // Decoding into nil interface? Switch to non-reflect code.
+ ai := d.arrayInterface()
+ v.Set(reflect.ValueOf(ai))
+ return nil
+ }
+ // Otherwise it's invalid.
+ fallthrough
+ default:
+ d.saveError(&UnmarshalTypeError{Value: "array", Type: v.Type(), Offset: int64(d.off)})
+ d.skip()
+ return nil
+ case reflect.Array, reflect.Slice:
+ break
+ }
+
+ i := 0
+ for {
+ // Look ahead for ] - can only happen on first iteration.
+ d.scanWhile(scanSkipSpace)
+ if d.opcode == scanEndArray {
+ break
+ }
+
+ // Get element of array, growing if necessary.
+ if v.Kind() == reflect.Slice {
+ // Grow slice if necessary
+ if i >= v.Cap() {
+ newcap := v.Cap() + v.Cap()/2
+ if newcap < 4 {
+ newcap = 4
+ }
+ newv := reflect.MakeSlice(v.Type(), v.Len(), newcap)
+ reflect.Copy(newv, v)
+ v.Set(newv)
+ }
+ if i >= v.Len() {
+ v.SetLen(i + 1)
+ }
+ }
+
+ if i < v.Len() {
+ // Decode into element.
+ if err := d.value(v.Index(i)); err != nil {
+ return err
+ }
+ } else {
+ // Ran out of fixed array: skip.
+ if err := d.value(reflect.Value{}); err != nil {
+ return err
+ }
+ }
+ i++
+
+ // Next token must be , or ].
+ if d.opcode == scanSkipSpace {
+ d.scanWhile(scanSkipSpace)
+ }
+ if d.opcode == scanEndArray {
+ break
+ }
+ if d.opcode != scanArrayValue {
+ panic(phasePanicMsg)
+ }
+ }
+
+ if i < v.Len() {
+ if v.Kind() == reflect.Array {
+ // Array. Zero the rest.
+ z := reflect.Zero(v.Type().Elem())
+ for ; i < v.Len(); i++ {
+ v.Index(i).Set(z)
+ }
+ } else {
+ v.SetLen(i)
+ }
+ }
+ if i == 0 && v.Kind() == reflect.Slice {
+ v.Set(reflect.MakeSlice(v.Type(), 0, 0))
+ }
+ return nil
+}
+
+var nullLiteral = []byte("null")
+var textUnmarshalerType = reflect.TypeOf((*encoding.TextUnmarshaler)(nil)).Elem()
+
+// object consumes an object from d.data[d.off-1:], decoding into v.
+// The first byte ('{') of the object has been read already.
+func (d *decodeState) object(v reflect.Value) error {
+ // Check for unmarshaler.
+ u, ut, pv := indirect(v, false)
+ if u != nil {
+ start := d.readIndex()
+ d.skip()
+ return u.UnmarshalJSON(d.data[start:d.off])
+ }
+ if ut != nil {
+ d.saveError(&UnmarshalTypeError{Value: "object", Type: v.Type(), Offset: int64(d.off)})
+ d.skip()
+ return nil
+ }
+ v = pv
+ t := v.Type()
+
+ // Decoding into nil interface? Switch to non-reflect code.
+ if v.Kind() == reflect.Interface && v.NumMethod() == 0 {
+ oi := d.objectInterface()
+ v.Set(reflect.ValueOf(oi))
+ return nil
+ }
+
+ var fields structFields
+
+ // Check type of target:
+ // struct or
+ // map[T1]T2 where T1 is string, an integer type,
+ // or an encoding.TextUnmarshaler
+ switch v.Kind() {
+ case reflect.Map:
+ // Map key must either have string kind, have an integer kind,
+ // or be an encoding.TextUnmarshaler.
+ switch t.Key().Kind() {
+ case reflect.String,
+ reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64,
+ reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
+ default:
+ if !reflect.PtrTo(t.Key()).Implements(textUnmarshalerType) {
+ d.saveError(&UnmarshalTypeError{Value: "object", Type: t, Offset: int64(d.off)})
+ d.skip()
+ return nil
+ }
+ }
+ if v.IsNil() {
+ v.Set(reflect.MakeMap(t))
+ }
+ case reflect.Struct:
+ fields = cachedTypeFields(t)
+ // ok
+ default:
+ d.saveError(&UnmarshalTypeError{Value: "object", Type: t, Offset: int64(d.off)})
+ d.skip()
+ return nil
+ }
+
+ var mapElem, extraMapElem reflect.Value
+ origErrorContext := d.errorContext
+
+ for {
+ // Read opening " of string key or closing }.
+ d.scanWhile(scanSkipSpace)
+ if d.opcode == scanEndObject {
+ // closing } - can only happen on first iteration.
+ break
+ }
+ if d.opcode != scanBeginLiteral {
+ panic(phasePanicMsg)
+ }
+
+ // Read key.
+ start := d.readIndex()
+ d.rescanLiteral()
+ item := d.data[start:d.readIndex()]
+ key, ok := unquoteBytes(item)
+ if !ok {
+ panic(phasePanicMsg)
+ }
+
+ // Figure out field corresponding to key.
+ var subv, mapv reflect.Value
+ destring := false // whether the value is wrapped in a string to be decoded first
+
+ if v.Kind() == reflect.Map {
+ elemType := t.Elem()
+ if !mapElem.IsValid() {
+ mapElem = reflect.New(elemType).Elem()
+ } else {
+ mapElem.Set(reflect.Zero(elemType))
+ }
+ subv = mapElem
+ mapv = v
+ } else {
+ var f, extraf *field
+ if i, ok := fields.nameIndex[string(key)]; ok {
+ // Found an exact name match.
+ f = &fields.list[i]
+ } else {
+ // Fall back to the expensive case-insensitive
+ // linear search.
+ for i := range fields.list {
+ ff := &fields.list[i]
+ if ff.equalFold(ff.nameBytes, key) {
+ f = ff
+ break
+ }
+ if ff.extra && extraf == nil {
+ extraf = ff
+ }
+ }
+ }
+ if f == nil {
+ f = extraf
+ }
+ if f != nil {
+ subv = v
+ destring = f.quoted
+ for _, i := range f.index {
+ if subv.Kind() == reflect.Ptr {
+ if subv.IsNil() {
+ // If a struct embeds a pointer to an unexported type,
+ // it is not possible to set a newly allocated value
+ // since the field is unexported.
+ //
+ // See https://golang.org/issue/21357
+ if !subv.CanSet() {
+ d.saveError(fmt.Errorf("json: cannot set embedded pointer to unexported struct: %v", subv.Type().Elem()))
+ // Invalidate subv to ensure d.value(subv) skips over
+ // the JSON value without assigning it to subv.
+ subv = reflect.Value{}
+ destring = false
+ break
+ }
+ subv.Set(reflect.New(subv.Type().Elem()))
+ }
+ subv = subv.Elem()
+ }
+ subv = subv.Field(i)
+ }
+ if f == extraf {
+ // subv is extra map
+ mapv = subv
+ if mapv.IsNil() {
+ mapv.Set(reflect.MakeMap(mapv.Type()))
+ }
+ elemType := mapv.Type().Elem()
+ if !extraMapElem.IsValid() {
+ extraMapElem = reflect.New(elemType).Elem()
+ } else {
+ extraMapElem.Set(reflect.Zero(elemType))
+ }
+ subv = extraMapElem
+ }
+ d.errorContext.FieldStack = append(d.errorContext.FieldStack, f.name)
+ d.errorContext.Struct = t
+ } else if d.disallowUnknownFields {
+ d.saveError(fmt.Errorf("json: unknown field %q", key))
+ }
+ }
+
+ // Read : before value.
+ if d.opcode == scanSkipSpace {
+ d.scanWhile(scanSkipSpace)
+ }
+ if d.opcode != scanObjectKey {
+ panic(phasePanicMsg)
+ }
+ d.scanWhile(scanSkipSpace)
+
+ if destring {
+ switch qv := d.valueQuoted().(type) {
+ case nil:
+ if err := d.literalStore(nullLiteral, subv, false); err != nil {
+ return err
+ }
+ case string:
+ if err := d.literalStore([]byte(qv), subv, true); err != nil {
+ return err
+ }
+ default:
+ d.saveError(fmt.Errorf("json: invalid use of ,string struct tag, trying to unmarshal unquoted value into %v", subv.Type()))
+ }
+ } else {
+ if err := d.value(subv); err != nil {
+ return err
+ }
+ }
+
+ // Write value back to map;
+ // if using struct, subv points into struct already.
+ if mapv.IsValid() {
+ kt := mapv.Type().Key()
+ var kv reflect.Value
+ switch {
+ case kt.Kind() == reflect.String:
+ kv = reflect.ValueOf(key).Convert(kt)
+ case reflect.PtrTo(kt).Implements(textUnmarshalerType):
+ kv = reflect.New(kt)
+ if err := d.literalStore(item, kv, true); err != nil {
+ return err
+ }
+ kv = kv.Elem()
+ default:
+ switch kt.Kind() {
+ case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
+ s := string(key)
+ n, err := strconv.ParseInt(s, 10, 64)
+ if err != nil || reflect.Zero(kt).OverflowInt(n) {
+ d.saveError(&UnmarshalTypeError{Value: "number " + s, Type: kt, Offset: int64(start + 1)})
+ break
+ }
+ kv = reflect.ValueOf(n).Convert(kt)
+ case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
+ s := string(key)
+ n, err := strconv.ParseUint(s, 10, 64)
+ if err != nil || reflect.Zero(kt).OverflowUint(n) {
+ d.saveError(&UnmarshalTypeError{Value: "number " + s, Type: kt, Offset: int64(start + 1)})
+ break
+ }
+ kv = reflect.ValueOf(n).Convert(kt)
+ default:
+ panic("json: Unexpected key type") // should never occur
+ }
+ }
+ if kv.IsValid() {
+ mapv.SetMapIndex(kv, subv)
+ }
+ }
+
+ // Next token must be , or }.
+ if d.opcode == scanSkipSpace {
+ d.scanWhile(scanSkipSpace)
+ }
+ // Reset errorContext to its original state.
+ // Keep the same underlying array for FieldStack, to reuse the
+ // space and avoid unnecessary allocs.
+ d.errorContext.FieldStack = d.errorContext.FieldStack[:len(origErrorContext.FieldStack)]
+ d.errorContext.Struct = origErrorContext.Struct
+ if d.opcode == scanEndObject {
+ break
+ }
+ if d.opcode != scanObjectValue {
+ panic(phasePanicMsg)
+ }
+ }
+ return nil
+}
+
+// convertNumber converts the number literal s to a float64 or a Number
+// depending on the setting of d.useNumber.
+func (d *decodeState) convertNumber(s string) (interface{}, error) {
+ if d.useNumber {
+ return Number(s), nil
+ }
+ f, err := strconv.ParseFloat(s, 64)
+ if err != nil {
+ return nil, &UnmarshalTypeError{Value: "number " + s, Type: reflect.TypeOf(0.0), Offset: int64(d.off)}
+ }
+ return f, nil
+}
+
+var numberType = reflect.TypeOf(Number(""))
+
+// literalStore decodes a literal stored in item into v.
+//
+// fromQuoted indicates whether this literal came from unwrapping a
+// string from the ",string" struct tag option. this is used only to
+// produce more helpful error messages.
+func (d *decodeState) literalStore(item []byte, v reflect.Value, fromQuoted bool) error {
+ // Check for unmarshaler.
+ if len(item) == 0 {
+ //Empty string given
+ d.saveError(fmt.Errorf("json: invalid use of ,string struct tag, trying to unmarshal %q into %v", item, v.Type()))
+ return nil
+ }
+ isNull := item[0] == 'n' // null
+ u, ut, pv := indirect(v, isNull)
+ if u != nil {
+ return u.UnmarshalJSON(item)
+ }
+ if ut != nil {
+ if item[0] != '"' {
+ if fromQuoted {
+ d.saveError(fmt.Errorf("json: invalid use of ,string struct tag, trying to unmarshal %q into %v", item, v.Type()))
+ return nil
+ }
+ val := "number"
+ switch item[0] {
+ case 'n':
+ val = "null"
+ case 't', 'f':
+ val = "bool"
+ }
+ d.saveError(&UnmarshalTypeError{Value: val, Type: v.Type(), Offset: int64(d.readIndex())})
+ return nil
+ }
+ s, ok := unquoteBytes(item)
+ if !ok {
+ if fromQuoted {
+ return fmt.Errorf("json: invalid use of ,string struct tag, trying to unmarshal %q into %v", item, v.Type())
+ }
+ panic(phasePanicMsg)
+ }
+ return ut.UnmarshalText(s)
+ }
+
+ v = pv
+
+ switch c := item[0]; c {
+ case 'n': // null
+ // The main parser checks that only true and false can reach here,
+ // but if this was a quoted string input, it could be anything.
+ if fromQuoted && string(item) != "null" {
+ d.saveError(fmt.Errorf("json: invalid use of ,string struct tag, trying to unmarshal %q into %v", item, v.Type()))
+ break
+ }
+ switch v.Kind() {
+ case reflect.Interface, reflect.Ptr, reflect.Map, reflect.Slice:
+ v.Set(reflect.Zero(v.Type()))
+ // otherwise, ignore null for primitives/string
+ }
+ case 't', 'f': // true, false
+ value := item[0] == 't'
+ // The main parser checks that only true and false can reach here,
+ // but if this was a quoted string input, it could be anything.
+ if fromQuoted && string(item) != "true" && string(item) != "false" {
+ d.saveError(fmt.Errorf("json: invalid use of ,string struct tag, trying to unmarshal %q into %v", item, v.Type()))
+ break
+ }
+ switch v.Kind() {
+ default:
+ if fromQuoted {
+ d.saveError(fmt.Errorf("json: invalid use of ,string struct tag, trying to unmarshal %q into %v", item, v.Type()))
+ } else {
+ d.saveError(&UnmarshalTypeError{Value: "bool", Type: v.Type(), Offset: int64(d.readIndex())})
+ }
+ case reflect.Bool:
+ v.SetBool(value)
+ case reflect.Interface:
+ if v.NumMethod() == 0 {
+ v.Set(reflect.ValueOf(value))
+ } else {
+ d.saveError(&UnmarshalTypeError{Value: "bool", Type: v.Type(), Offset: int64(d.readIndex())})
+ }
+ }
+
+ case '"': // string
+ s, ok := unquoteBytes(item)
+ if !ok {
+ if fromQuoted {
+ return fmt.Errorf("json: invalid use of ,string struct tag, trying to unmarshal %q into %v", item, v.Type())
+ }
+ panic(phasePanicMsg)
+ }
+ switch v.Kind() {
+ default:
+ d.saveError(&UnmarshalTypeError{Value: "string", Type: v.Type(), Offset: int64(d.readIndex())})
+ case reflect.Slice:
+ if v.Type().Elem().Kind() != reflect.Uint8 {
+ d.saveError(&UnmarshalTypeError{Value: "string", Type: v.Type(), Offset: int64(d.readIndex())})
+ break
+ }
+ b := make([]byte, base64.StdEncoding.DecodedLen(len(s)))
+ n, err := base64.StdEncoding.Decode(b, s)
+ if err != nil {
+ d.saveError(err)
+ break
+ }
+ v.SetBytes(b[:n])
+ case reflect.String:
+ v.SetString(string(s))
+ case reflect.Interface:
+ if v.NumMethod() == 0 {
+ v.Set(reflect.ValueOf(string(s)))
+ } else {
+ d.saveError(&UnmarshalTypeError{Value: "string", Type: v.Type(), Offset: int64(d.readIndex())})
+ }
+ }
+
+ default: // number
+ if c != '-' && (c < '0' || c > '9') {
+ if fromQuoted {
+ return fmt.Errorf("json: invalid use of ,string struct tag, trying to unmarshal %q into %v", item, v.Type())
+ }
+ panic(phasePanicMsg)
+ }
+ s := string(item)
+ switch v.Kind() {
+ default:
+ if v.Kind() == reflect.String && v.Type() == numberType {
+ v.SetString(s)
+ if !isValidNumber(s) {
+ return fmt.Errorf("json: invalid number literal, trying to unmarshal %q into Number", item)
+ }
+ break
+ }
+ if fromQuoted {
+ return fmt.Errorf("json: invalid use of ,string struct tag, trying to unmarshal %q into %v", item, v.Type())
+ }
+ d.saveError(&UnmarshalTypeError{Value: "number", Type: v.Type(), Offset: int64(d.readIndex())})
+ case reflect.Interface:
+ n, err := d.convertNumber(s)
+ if err != nil {
+ d.saveError(err)
+ break
+ }
+ if v.NumMethod() != 0 {
+ d.saveError(&UnmarshalTypeError{Value: "number", Type: v.Type(), Offset: int64(d.readIndex())})
+ break
+ }
+ v.Set(reflect.ValueOf(n))
+
+ case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
+ n, err := strconv.ParseInt(s, 10, 64)
+ if err != nil || v.OverflowInt(n) {
+ d.saveError(&UnmarshalTypeError{Value: "number " + s, Type: v.Type(), Offset: int64(d.readIndex())})
+ break
+ }
+ v.SetInt(n)
+
+ case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
+ n, err := strconv.ParseUint(s, 10, 64)
+ if err != nil || v.OverflowUint(n) {
+ d.saveError(&UnmarshalTypeError{Value: "number " + s, Type: v.Type(), Offset: int64(d.readIndex())})
+ break
+ }
+ v.SetUint(n)
+
+ case reflect.Float32, reflect.Float64:
+ n, err := strconv.ParseFloat(s, v.Type().Bits())
+ if err != nil || v.OverflowFloat(n) {
+ d.saveError(&UnmarshalTypeError{Value: "number " + s, Type: v.Type(), Offset: int64(d.readIndex())})
+ break
+ }
+ v.SetFloat(n)
+ }
+ }
+ return nil
+}
+
+// The xxxInterface routines build up a value to be stored
+// in an empty interface. They are not strictly necessary,
+// but they avoid the weight of reflection in this common case.
+
+// valueInterface is like value but returns interface{}
+func (d *decodeState) valueInterface() (val interface{}) {
+ switch d.opcode {
+ default:
+ panic(phasePanicMsg)
+ case scanBeginArray:
+ val = d.arrayInterface()
+ d.scanNext()
+ case scanBeginObject:
+ val = d.objectInterface()
+ d.scanNext()
+ case scanBeginLiteral:
+ val = d.literalInterface()
+ }
+ return
+}
+
+// arrayInterface is like array but returns []interface{}.
+func (d *decodeState) arrayInterface() []interface{} {
+ var v = make([]interface{}, 0)
+ for {
+ // Look ahead for ] - can only happen on first iteration.
+ d.scanWhile(scanSkipSpace)
+ if d.opcode == scanEndArray {
+ break
+ }
+
+ v = append(v, d.valueInterface())
+
+ // Next token must be , or ].
+ if d.opcode == scanSkipSpace {
+ d.scanWhile(scanSkipSpace)
+ }
+ if d.opcode == scanEndArray {
+ break
+ }
+ if d.opcode != scanArrayValue {
+ panic(phasePanicMsg)
+ }
+ }
+ return v
+}
+
+// objectInterface is like object but returns map[string]interface{}.
+func (d *decodeState) objectInterface() map[string]interface{} {
+ m := make(map[string]interface{})
+ for {
+ // Read opening " of string key or closing }.
+ d.scanWhile(scanSkipSpace)
+ if d.opcode == scanEndObject {
+ // closing } - can only happen on first iteration.
+ break
+ }
+ if d.opcode != scanBeginLiteral {
+ panic(phasePanicMsg)
+ }
+
+ // Read string key.
+ start := d.readIndex()
+ d.rescanLiteral()
+ item := d.data[start:d.readIndex()]
+ key, ok := unquote(item)
+ if !ok {
+ panic(phasePanicMsg)
+ }
+
+ // Read : before value.
+ if d.opcode == scanSkipSpace {
+ d.scanWhile(scanSkipSpace)
+ }
+ if d.opcode != scanObjectKey {
+ panic(phasePanicMsg)
+ }
+ d.scanWhile(scanSkipSpace)
+
+ // Read value.
+ m[key] = d.valueInterface()
+
+ // Next token must be , or }.
+ if d.opcode == scanSkipSpace {
+ d.scanWhile(scanSkipSpace)
+ }
+ if d.opcode == scanEndObject {
+ break
+ }
+ if d.opcode != scanObjectValue {
+ panic(phasePanicMsg)
+ }
+ }
+ return m
+}
+
+// literalInterface consumes and returns a literal from d.data[d.off-1:] and
+// it reads the following byte ahead. The first byte of the literal has been
+// read already (that's how the caller knows it's a literal).
+func (d *decodeState) literalInterface() interface{} {
+ // All bytes inside literal return scanContinue op code.
+ start := d.readIndex()
+ d.rescanLiteral()
+
+ item := d.data[start:d.readIndex()]
+
+ switch c := item[0]; c {
+ case 'n': // null
+ return nil
+
+ case 't', 'f': // true, false
+ return c == 't'
+
+ case '"': // string
+ s, ok := unquote(item)
+ if !ok {
+ panic(phasePanicMsg)
+ }
+ return s
+
+ default: // number
+ if c != '-' && (c < '0' || c > '9') {
+ panic(phasePanicMsg)
+ }
+ n, err := d.convertNumber(string(item))
+ if err != nil {
+ d.saveError(err)
+ }
+ return n
+ }
+}
+
+// getu4 decodes \uXXXX from the beginning of s, returning the hex value,
+// or it returns -1.
+func getu4(s []byte) rune {
+ if len(s) < 6 || s[0] != '\\' || s[1] != 'u' {
+ return -1
+ }
+ var r rune
+ for _, c := range s[2:6] {
+ switch {
+ case '0' <= c && c <= '9':
+ c = c - '0'
+ case 'a' <= c && c <= 'f':
+ c = c - 'a' + 10
+ case 'A' <= c && c <= 'F':
+ c = c - 'A' + 10
+ default:
+ return -1
+ }
+ r = r*16 + rune(c)
+ }
+ return r
+}
+
+// unquote converts a quoted JSON string literal s into an actual string t.
+// The rules are different than for Go, so cannot use strconv.Unquote.
+func unquote(s []byte) (t string, ok bool) {
+ s, ok = unquoteBytes(s)
+ t = string(s)
+ return
+}
+
+func unquoteBytes(s []byte) (t []byte, ok bool) {
+ if len(s) < 2 || s[0] != '"' || s[len(s)-1] != '"' {
+ return
+ }
+ s = s[1 : len(s)-1]
+
+ // Check for unusual characters. If there are none,
+ // then no unquoting is needed, so return a slice of the
+ // original bytes.
+ r := 0
+ for r < len(s) {
+ c := s[r]
+ if c == '\\' || c == '"' || c < ' ' {
+ break
+ }
+ if c < utf8.RuneSelf {
+ r++
+ continue
+ }
+ rr, size := utf8.DecodeRune(s[r:])
+ if rr == utf8.RuneError && size == 1 {
+ break
+ }
+ r += size
+ }
+ if r == len(s) {
+ return s, true
+ }
+
+ b := make([]byte, len(s)+2*utf8.UTFMax)
+ w := copy(b, s[0:r])
+ for r < len(s) {
+ // Out of room? Can only happen if s is full of
+ // malformed UTF-8 and we're replacing each
+ // byte with RuneError.
+ if w >= len(b)-2*utf8.UTFMax {
+ nb := make([]byte, (len(b)+utf8.UTFMax)*2)
+ copy(nb, b[0:w])
+ b = nb
+ }
+ switch c := s[r]; {
+ case c == '\\':
+ r++
+ if r >= len(s) {
+ return
+ }
+ switch s[r] {
+ default:
+ return
+ case '"', '\\', '/', '\'':
+ b[w] = s[r]
+ r++
+ w++
+ case 'b':
+ b[w] = '\b'
+ r++
+ w++
+ case 'f':
+ b[w] = '\f'
+ r++
+ w++
+ case 'n':
+ b[w] = '\n'
+ r++
+ w++
+ case 'r':
+ b[w] = '\r'
+ r++
+ w++
+ case 't':
+ b[w] = '\t'
+ r++
+ w++
+ case 'u':
+ r--
+ rr := getu4(s[r:])
+ if rr < 0 {
+ return
+ }
+ r += 6
+ if utf16.IsSurrogate(rr) {
+ rr1 := getu4(s[r:])
+ if dec := utf16.DecodeRune(rr, rr1); dec != unicode.ReplacementChar {
+ // A valid pair; consume.
+ r += 6
+ w += utf8.EncodeRune(b[w:], dec)
+ break
+ }
+ // Invalid surrogate; fall back to replacement rune.
+ rr = unicode.ReplacementChar
+ }
+ w += utf8.EncodeRune(b[w:], rr)
+ }
+
+ // Quote, control characters are invalid.
+ case c == '"', c < ' ':
+ return
+
+ // ASCII
+ case c < utf8.RuneSelf:
+ b[w] = c
+ r++
+ w++
+
+ // Coerce to well-formed UTF-8.
+ default:
+ rr, size := utf8.DecodeRune(s[r:])
+ r += size
+ w += utf8.EncodeRune(b[w:], rr)
+ }
+ }
+ return b[0:w], true
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/encode.go b/vendor/github.com/matterbridge/msgraph.go/jsonx/encode.go
new file mode 100644
index 00000000..7c155502
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/jsonx/encode.go
@@ -0,0 +1,1317 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Package json implements encoding and decoding of JSON as defined in
+// RFC 7159. The mapping between JSON and Go values is described
+// in the documentation for the Marshal and Unmarshal functions.
+//
+// See "JSON and Go" for an introduction to this package:
+// https://golang.org/doc/articles/json_and_go.html
+package jsonx
+
+import (
+ "bytes"
+ "encoding"
+ "encoding/base64"
+ "fmt"
+ "math"
+ "reflect"
+ "sort"
+ "strconv"
+ "strings"
+ "sync"
+ "unicode"
+ "unicode/utf8"
+)
+
+// Marshal returns the JSON encoding of v.
+//
+// Marshal traverses the value v recursively.
+// If an encountered value implements the Marshaler interface
+// and is not a nil pointer, Marshal calls its MarshalJSON method
+// to produce JSON. If no MarshalJSON method is present but the
+// value implements encoding.TextMarshaler instead, Marshal calls
+// its MarshalText method and encodes the result as a JSON string.
+// The nil pointer exception is not strictly necessary
+// but mimics a similar, necessary exception in the behavior of
+// UnmarshalJSON.
+//
+// Otherwise, Marshal uses the following type-dependent default encodings:
+//
+// Boolean values encode as JSON booleans.
+//
+// Floating point, integer, and Number values encode as JSON numbers.
+//
+// String values encode as JSON strings coerced to valid UTF-8,
+// replacing invalid bytes with the Unicode replacement rune.
+// So that the JSON will be safe to embed inside HTML <script> tags,
+// the string is encoded using HTMLEscape,
+// which replaces "<", ">", "&", U+2028, and U+2029 are escaped
+// to "\u003c","\u003e", "\u0026", "\u2028", and "\u2029".
+// This replacement can be disabled when using an Encoder,
+// by calling SetEscapeHTML(false).
+//
+// Array and slice values encode as JSON arrays, except that
+// []byte encodes as a base64-encoded string, and a nil slice
+// encodes as the null JSON value.
+//
+// Struct values encode as JSON objects.
+// Each exported struct field becomes a member of the object, using the
+// field name as the object key, unless the field is omitted for one of the
+// reasons given below.
+//
+// The encoding of each struct field can be customized by the format string
+// stored under the "json" key in the struct field's tag.
+// The format string gives the name of the field, possibly followed by a
+// comma-separated list of options. The name may be empty in order to
+// specify options without overriding the default field name.
+//
+// The "omitempty" option specifies that the field should be omitted
+// from the encoding if the field has an empty value, defined as
+// false, 0, a nil pointer, a nil interface value, and any empty array,
+// slice, map, or string.
+//
+// As a special case, if the field tag is "-", the field is always omitted.
+// Note that a field with name "-" can still be generated using the tag "-,".
+//
+// Examples of struct field tags and their meanings:
+//
+// // Field appears in JSON as key "myName".
+// Field int `json:"myName"`
+//
+// // Field appears in JSON as key "myName" and
+// // the field is omitted from the object if its value is empty,
+// // as defined above.
+// Field int `json:"myName,omitempty"`
+//
+// // Field appears in JSON as key "Field" (the default), but
+// // the field is skipped if empty.
+// // Note the leading comma.
+// Field int `json:",omitempty"`
+//
+// // Field is ignored by this package.
+// Field int `json:"-"`
+//
+// // Field appears in JSON as key "-".
+// Field int `json:"-,"`
+//
+// The "string" option signals that a field is stored as JSON inside a
+// JSON-encoded string. It applies only to fields of string, floating point,
+// integer, or boolean types. This extra level of encoding is sometimes used
+// when communicating with JavaScript programs:
+//
+// Int64String int64 `json:",string"`
+//
+// The key name will be used if it's a non-empty string consisting of
+// only Unicode letters, digits, and ASCII punctuation except quotation
+// marks, backslash, and comma.
+//
+// Anonymous struct fields are usually marshaled as if their inner exported fields
+// were fields in the outer struct, subject to the usual Go visibility rules amended
+// as described in the next paragraph.
+// An anonymous struct field with a name given in its JSON tag is treated as
+// having that name, rather than being anonymous.
+// An anonymous struct field of interface type is treated the same as having
+// that type as its name, rather than being anonymous.
+//
+// The Go visibility rules for struct fields are amended for JSON when
+// deciding which field to marshal or unmarshal. If there are
+// multiple fields at the same level, and that level is the least
+// nested (and would therefore be the nesting level selected by the
+// usual Go rules), the following extra rules apply:
+//
+// 1) Of those fields, if any are JSON-tagged, only tagged fields are considered,
+// even if there are multiple untagged fields that would otherwise conflict.
+//
+// 2) If there is exactly one field (tagged or not according to the first rule), that is selected.
+//
+// 3) Otherwise there are multiple fields, and all are ignored; no error occurs.
+//
+// Handling of anonymous struct fields is new in Go 1.1.
+// Prior to Go 1.1, anonymous struct fields were ignored. To force ignoring of
+// an anonymous struct field in both current and earlier versions, give the field
+// a JSON tag of "-".
+//
+// Map values encode as JSON objects. The map's key type must either be a
+// string, an integer type, or implement encoding.TextMarshaler. The map keys
+// are sorted and used as JSON object keys by applying the following rules,
+// subject to the UTF-8 coercion described for string values above:
+// - keys of any string type are used directly
+// - encoding.TextMarshalers are marshaled
+// - integer keys are converted to strings
+//
+// Pointer values encode as the value pointed to.
+// A nil pointer encodes as the null JSON value.
+//
+// Interface values encode as the value contained in the interface.
+// A nil interface value encodes as the null JSON value.
+//
+// Channel, complex, and function values cannot be encoded in JSON.
+// Attempting to encode such a value causes Marshal to return
+// an UnsupportedTypeError.
+//
+// JSON cannot represent cyclic data structures and Marshal does not
+// handle them. Passing cyclic structures to Marshal will result in
+// an infinite recursion.
+//
+func Marshal(v interface{}) ([]byte, error) {
+ e := newEncodeState()
+
+ err := e.marshal(v, encOpts{escapeHTML: true})
+ if err != nil {
+ return nil, err
+ }
+ buf := append([]byte(nil), e.Bytes()...)
+
+ e.Reset()
+ encodeStatePool.Put(e)
+
+ return buf, nil
+}
+
+// MarshalIndent is like Marshal but applies Indent to format the output.
+// Each JSON element in the output will begin on a new line beginning with prefix
+// followed by one or more copies of indent according to the indentation nesting.
+func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) {
+ b, err := Marshal(v)
+ if err != nil {
+ return nil, err
+ }
+ var buf bytes.Buffer
+ err = Indent(&buf, b, prefix, indent)
+ if err != nil {
+ return nil, err
+ }
+ return buf.Bytes(), nil
+}
+
+// HTMLEscape appends to dst the JSON-encoded src with <, >, &, U+2028 and U+2029
+// characters inside string literals changed to \u003c, \u003e, \u0026, \u2028, \u2029
+// so that the JSON will be safe to embed inside HTML <script> tags.
+// For historical reasons, web browsers don't honor standard HTML
+// escaping within <script> tags, so an alternative JSON encoding must
+// be used.
+func HTMLEscape(dst *bytes.Buffer, src []byte) {
+ // The characters can only appear in string literals,
+ // so just scan the string one byte at a time.
+ start := 0
+ for i, c := range src {
+ if c == '<' || c == '>' || c == '&' {
+ if start < i {
+ dst.Write(src[start:i])
+ }
+ dst.WriteString(`\u00`)
+ dst.WriteByte(hex[c>>4])
+ dst.WriteByte(hex[c&0xF])
+ start = i + 1
+ }
+ // Convert U+2028 and U+2029 (E2 80 A8 and E2 80 A9).
+ if c == 0xE2 && i+2 < len(src) && src[i+1] == 0x80 && src[i+2]&^1 == 0xA8 {
+ if start < i {
+ dst.Write(src[start:i])
+ }
+ dst.WriteString(`\u202`)
+ dst.WriteByte(hex[src[i+2]&0xF])
+ start = i + 3
+ }
+ }
+ if start < len(src) {
+ dst.Write(src[start:])
+ }
+}
+
+// Marshaler is the interface implemented by types that
+// can marshal themselves into valid JSON.
+type Marshaler interface {
+ MarshalJSON() ([]byte, error)
+}
+
+// An UnsupportedTypeError is returned by Marshal when attempting
+// to encode an unsupported value type.
+type UnsupportedTypeError struct {
+ Type reflect.Type
+}
+
+func (e *UnsupportedTypeError) Error() string {
+ return "json: unsupported type: " + e.Type.String()
+}
+
+type UnsupportedValueError struct {
+ Value reflect.Value
+ Str string
+}
+
+func (e *UnsupportedValueError) Error() string {
+ return "json: unsupported value: " + e.Str
+}
+
+// Before Go 1.2, an InvalidUTF8Error was returned by Marshal when
+// attempting to encode a string value with invalid UTF-8 sequences.
+// As of Go 1.2, Marshal instead coerces the string to valid UTF-8 by
+// replacing invalid bytes with the Unicode replacement rune U+FFFD.
+//
+// Deprecated: No longer used; kept for compatibility.
+type InvalidUTF8Error struct {
+ S string // the whole string value that caused the error
+}
+
+func (e *InvalidUTF8Error) Error() string {
+ return "json: invalid UTF-8 in string: " + strconv.Quote(e.S)
+}
+
+// A MarshalerError represents an error from calling a MarshalJSON or MarshalText method.
+type MarshalerError struct {
+ Type reflect.Type
+ Err error
+}
+
+func (e *MarshalerError) Error() string {
+ return "json: error calling MarshalJSON for type " + e.Type.String() + ": " + e.Err.Error()
+}
+
+func (e *MarshalerError) Unwrap() error { return e.Err }
+
+var hex = "0123456789abcdef"
+
+// An encodeState encodes JSON into a bytes.Buffer.
+type encodeState struct {
+ bytes.Buffer // accumulated output
+ scratch [64]byte
+}
+
+var encodeStatePool sync.Pool
+
+func newEncodeState() *encodeState {
+ if v := encodeStatePool.Get(); v != nil {
+ e := v.(*encodeState)
+ e.Reset()
+ return e
+ }
+ return new(encodeState)
+}
+
+// jsonError is an error wrapper type for internal use only.
+// Panics with errors are wrapped in jsonError so that the top-level recover
+// can distinguish intentional panics from this package.
+type jsonError struct{ error }
+
+func (e *encodeState) marshal(v interface{}, opts encOpts) (err error) {
+ defer func() {
+ if r := recover(); r != nil {
+ if je, ok := r.(jsonError); ok {
+ err = je.error
+ } else {
+ panic(r)
+ }
+ }
+ }()
+ e.reflectValue(reflect.ValueOf(v), opts)
+ return nil
+}
+
+// error aborts the encoding by panicking with err wrapped in jsonError.
+func (e *encodeState) error(err error) {
+ panic(jsonError{err})
+}
+
+func isEmptyValue(v reflect.Value) bool {
+ switch v.Kind() {
+ case reflect.Array, reflect.Map, reflect.Slice, reflect.String:
+ return v.Len() == 0
+ case reflect.Bool:
+ return !v.Bool()
+ case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
+ return v.Int() == 0
+ case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
+ return v.Uint() == 0
+ case reflect.Float32, reflect.Float64:
+ return v.Float() == 0
+ case reflect.Interface, reflect.Ptr:
+ return v.IsNil()
+ }
+ return false
+}
+
+func (e *encodeState) reflectValue(v reflect.Value, opts encOpts) {
+ valueEncoder(v)(e, v, opts)
+}
+
+type encOpts struct {
+ // quoted causes primitive fields to be encoded inside JSON strings.
+ quoted bool
+ // escapeHTML causes '<', '>', and '&' to be escaped in JSON strings.
+ escapeHTML bool
+}
+
+type encoderFunc func(e *encodeState, v reflect.Value, opts encOpts)
+
+var encoderCache sync.Map // map[reflect.Type]encoderFunc
+
+func valueEncoder(v reflect.Value) encoderFunc {
+ if !v.IsValid() {
+ return invalidValueEncoder
+ }
+ return typeEncoder(v.Type())
+}
+
+func typeEncoder(t reflect.Type) encoderFunc {
+ if fi, ok := encoderCache.Load(t); ok {
+ return fi.(encoderFunc)
+ }
+
+ // To deal with recursive types, populate the map with an
+ // indirect func before we build it. This type waits on the
+ // real func (f) to be ready and then calls it. This indirect
+ // func is only used for recursive types.
+ var (
+ wg sync.WaitGroup
+ f encoderFunc
+ )
+ wg.Add(1)
+ fi, loaded := encoderCache.LoadOrStore(t, encoderFunc(func(e *encodeState, v reflect.Value, opts encOpts) {
+ wg.Wait()
+ f(e, v, opts)
+ }))
+ if loaded {
+ return fi.(encoderFunc)
+ }
+
+ // Compute the real encoder and replace the indirect func with it.
+ f = newTypeEncoder(t, true)
+ wg.Done()
+ encoderCache.Store(t, f)
+ return f
+}
+
+var (
+ marshalerType = reflect.TypeOf((*Marshaler)(nil)).Elem()
+ textMarshalerType = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem()
+)
+
+// newTypeEncoder constructs an encoderFunc for a type.
+// The returned encoder only checks CanAddr when allowAddr is true.
+func newTypeEncoder(t reflect.Type, allowAddr bool) encoderFunc {
+ if t.Implements(marshalerType) {
+ return marshalerEncoder
+ }
+ if t.Kind() != reflect.Ptr && allowAddr && reflect.PtrTo(t).Implements(marshalerType) {
+ return newCondAddrEncoder(addrMarshalerEncoder, newTypeEncoder(t, false))
+ }
+
+ if t.Implements(textMarshalerType) {
+ return textMarshalerEncoder
+ }
+ if t.Kind() != reflect.Ptr && allowAddr && reflect.PtrTo(t).Implements(textMarshalerType) {
+ return newCondAddrEncoder(addrTextMarshalerEncoder, newTypeEncoder(t, false))
+ }
+
+ switch t.Kind() {
+ case reflect.Bool:
+ return boolEncoder
+ case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
+ return intEncoder
+ case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
+ return uintEncoder
+ case reflect.Float32:
+ return float32Encoder
+ case reflect.Float64:
+ return float64Encoder
+ case reflect.String:
+ return stringEncoder
+ case reflect.Interface:
+ return interfaceEncoder
+ case reflect.Struct:
+ return newStructEncoder(t)
+ case reflect.Map:
+ return newMapEncoder(t)
+ case reflect.Slice:
+ return newSliceEncoder(t)
+ case reflect.Array:
+ return newArrayEncoder(t)
+ case reflect.Ptr:
+ return newPtrEncoder(t)
+ default:
+ return unsupportedTypeEncoder
+ }
+}
+
+func invalidValueEncoder(e *encodeState, v reflect.Value, _ encOpts) {
+ e.WriteString("null")
+}
+
+func marshalerEncoder(e *encodeState, v reflect.Value, opts encOpts) {
+ if v.Kind() == reflect.Ptr && v.IsNil() {
+ e.WriteString("null")
+ return
+ }
+ m, ok := v.Interface().(Marshaler)
+ if !ok {
+ e.WriteString("null")
+ return
+ }
+ b, err := m.MarshalJSON()
+ if err == nil {
+ // copy JSON into buffer, checking validity.
+ err = compact(&e.Buffer, b, opts.escapeHTML)
+ }
+ if err != nil {
+ e.error(&MarshalerError{v.Type(), err})
+ }
+}
+
+func addrMarshalerEncoder(e *encodeState, v reflect.Value, opts encOpts) {
+ va := v.Addr()
+ if va.IsNil() {
+ e.WriteString("null")
+ return
+ }
+ m := va.Interface().(Marshaler)
+ b, err := m.MarshalJSON()
+ if err == nil {
+ // copy JSON into buffer, checking validity.
+ err = compact(&e.Buffer, b, opts.escapeHTML)
+ }
+ if err != nil {
+ e.error(&MarshalerError{v.Type(), err})
+ }
+}
+
+func textMarshalerEncoder(e *encodeState, v reflect.Value, opts encOpts) {
+ if v.Kind() == reflect.Ptr && v.IsNil() {
+ e.WriteString("null")
+ return
+ }
+ m := v.Interface().(encoding.TextMarshaler)
+ b, err := m.MarshalText()
+ if err != nil {
+ e.error(&MarshalerError{v.Type(), err})
+ }
+ e.stringBytes(b, opts.escapeHTML)
+}
+
+func addrTextMarshalerEncoder(e *encodeState, v reflect.Value, opts encOpts) {
+ va := v.Addr()
+ if va.IsNil() {
+ e.WriteString("null")
+ return
+ }
+ m := va.Interface().(encoding.TextMarshaler)
+ b, err := m.MarshalText()
+ if err != nil {
+ e.error(&MarshalerError{v.Type(), err})
+ }
+ e.stringBytes(b, opts.escapeHTML)
+}
+
+func boolEncoder(e *encodeState, v reflect.Value, opts encOpts) {
+ if opts.quoted {
+ e.WriteByte('"')
+ }
+ if v.Bool() {
+ e.WriteString("true")
+ } else {
+ e.WriteString("false")
+ }
+ if opts.quoted {
+ e.WriteByte('"')
+ }
+}
+
+func intEncoder(e *encodeState, v reflect.Value, opts encOpts) {
+ b := strconv.AppendInt(e.scratch[:0], v.Int(), 10)
+ if opts.quoted {
+ e.WriteByte('"')
+ }
+ e.Write(b)
+ if opts.quoted {
+ e.WriteByte('"')
+ }
+}
+
+func uintEncoder(e *encodeState, v reflect.Value, opts encOpts) {
+ b := strconv.AppendUint(e.scratch[:0], v.Uint(), 10)
+ if opts.quoted {
+ e.WriteByte('"')
+ }
+ e.Write(b)
+ if opts.quoted {
+ e.WriteByte('"')
+ }
+}
+
+type floatEncoder int // number of bits
+
+func (bits floatEncoder) encode(e *encodeState, v reflect.Value, opts encOpts) {
+ f := v.Float()
+ if math.IsInf(f, 0) || math.IsNaN(f) {
+ e.error(&UnsupportedValueError{v, strconv.FormatFloat(f, 'g', -1, int(bits))})
+ }
+
+ // Convert as if by ES6 number to string conversion.
+ // This matches most other JSON generators.
+ // See golang.org/issue/6384 and golang.org/issue/14135.
+ // Like fmt %g, but the exponent cutoffs are different
+ // and exponents themselves are not padded to two digits.
+ b := e.scratch[:0]
+ abs := math.Abs(f)
+ fmt := byte('f')
+ // Note: Must use float32 comparisons for underlying float32 value to get precise cutoffs right.
+ if abs != 0 {
+ if bits == 64 && (abs < 1e-6 || abs >= 1e21) || bits == 32 && (float32(abs) < 1e-6 || float32(abs) >= 1e21) {
+ fmt = 'e'
+ }
+ }
+ b = strconv.AppendFloat(b, f, fmt, -1, int(bits))
+ if fmt == 'e' {
+ // clean up e-09 to e-9
+ n := len(b)
+ if n >= 4 && b[n-4] == 'e' && b[n-3] == '-' && b[n-2] == '0' {
+ b[n-2] = b[n-1]
+ b = b[:n-1]
+ }
+ }
+
+ if opts.quoted {
+ e.WriteByte('"')
+ }
+ e.Write(b)
+ if opts.quoted {
+ e.WriteByte('"')
+ }
+}
+
+var (
+ float32Encoder = (floatEncoder(32)).encode
+ float64Encoder = (floatEncoder(64)).encode
+)
+
+func stringEncoder(e *encodeState, v reflect.Value, opts encOpts) {
+ if v.Type() == numberType {
+ numStr := v.String()
+ // In Go1.5 the empty string encodes to "0", while this is not a valid number literal
+ // we keep compatibility so check validity after this.
+ if numStr == "" {
+ numStr = "0" // Number's zero-val
+ }
+ if !isValidNumber(numStr) {
+ e.error(fmt.Errorf("json: invalid number literal %q", numStr))
+ }
+ e.WriteString(numStr)
+ return
+ }
+ if opts.quoted {
+ sb, err := Marshal(v.String())
+ if err != nil {
+ e.error(err)
+ }
+ e.string(string(sb), opts.escapeHTML)
+ } else {
+ e.string(v.String(), opts.escapeHTML)
+ }
+}
+
+func interfaceEncoder(e *encodeState, v reflect.Value, opts encOpts) {
+ if v.IsNil() {
+ e.WriteString("null")
+ return
+ }
+ e.reflectValue(v.Elem(), opts)
+}
+
+func unsupportedTypeEncoder(e *encodeState, v reflect.Value, _ encOpts) {
+ e.error(&UnsupportedTypeError{v.Type()})
+}
+
+type structEncoder struct {
+ fields structFields
+}
+
+type structFields struct {
+ list []field
+ nameIndex map[string]int
+}
+
+func (se structEncoder) encode(e *encodeState, v reflect.Value, opts encOpts) {
+ next := byte('{')
+FieldLoop:
+ for i := range se.fields.list {
+ f := &se.fields.list[i]
+
+ // Find the nested struct field by following f.index.
+ fv := v
+ for _, i := range f.index {
+ if fv.Kind() == reflect.Ptr {
+ if fv.IsNil() {
+ continue FieldLoop
+ }
+ fv = fv.Elem()
+ }
+ fv = fv.Field(i)
+ }
+
+ if f.omitEmpty && isEmptyValue(fv) {
+ continue
+ }
+ if f.extra {
+ keys := fv.MapKeys()
+ sv := make([]reflectWithString, len(keys))
+ for i, v := range keys {
+ sv[i].v = v
+ if err := sv[i].resolve(); err != nil {
+ e.error(&MarshalerError{v.Type(), err})
+ }
+ }
+ sort.Slice(sv, func(i, j int) bool { return sv[i].s < sv[j].s })
+ elemEnc := typeEncoder(fv.Type().Elem())
+ for _, kv := range sv {
+ e.WriteByte(next)
+ next = ','
+ e.string(kv.s, opts.escapeHTML)
+ e.WriteByte(':')
+ elemEnc(e, fv.MapIndex(kv.v), opts)
+ }
+ continue
+ }
+ e.WriteByte(next)
+ next = ','
+ if opts.escapeHTML {
+ e.WriteString(f.nameEscHTML)
+ } else {
+ e.WriteString(f.nameNonEsc)
+ }
+ opts.quoted = f.quoted
+ f.encoder(e, fv, opts)
+ }
+ if next == '{' {
+ e.WriteString("{}")
+ } else {
+ e.WriteByte('}')
+ }
+}
+
+func newStructEncoder(t reflect.Type) encoderFunc {
+ se := structEncoder{fields: cachedTypeFields(t)}
+ return se.encode
+}
+
+type mapEncoder struct {
+ elemEnc encoderFunc
+}
+
+func (me mapEncoder) encode(e *encodeState, v reflect.Value, opts encOpts) {
+ if v.IsNil() {
+ e.WriteString("null")
+ return
+ }
+ e.WriteByte('{')
+
+ // Extract and sort the keys.
+ keys := v.MapKeys()
+ sv := make([]reflectWithString, len(keys))
+ for i, v := range keys {
+ sv[i].v = v
+ if err := sv[i].resolve(); err != nil {
+ e.error(&MarshalerError{v.Type(), err})
+ }
+ }
+ sort.Slice(sv, func(i, j int) bool { return sv[i].s < sv[j].s })
+
+ for i, kv := range sv {
+ if i > 0 {
+ e.WriteByte(',')
+ }
+ e.string(kv.s, opts.escapeHTML)
+ e.WriteByte(':')
+ me.elemEnc(e, v.MapIndex(kv.v), opts)
+ }
+ e.WriteByte('}')
+}
+
+func newMapEncoder(t reflect.Type) encoderFunc {
+ switch t.Key().Kind() {
+ case reflect.String,
+ reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64,
+ reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
+ default:
+ if !t.Key().Implements(textMarshalerType) {
+ return unsupportedTypeEncoder
+ }
+ }
+ me := mapEncoder{typeEncoder(t.Elem())}
+ return me.encode
+}
+
+func encodeByteSlice(e *encodeState, v reflect.Value, _ encOpts) {
+ if v.IsNil() {
+ e.WriteString("null")
+ return
+ }
+ s := v.Bytes()
+ e.WriteByte('"')
+ encodedLen := base64.StdEncoding.EncodedLen(len(s))
+ if encodedLen <= len(e.scratch) {
+ // If the encoded bytes fit in e.scratch, avoid an extra
+ // allocation and use the cheaper Encoding.Encode.
+ dst := e.scratch[:encodedLen]
+ base64.StdEncoding.Encode(dst, s)
+ e.Write(dst)
+ } else if encodedLen <= 1024 {
+ // The encoded bytes are short enough to allocate for, and
+ // Encoding.Encode is still cheaper.
+ dst := make([]byte, encodedLen)
+ base64.StdEncoding.Encode(dst, s)
+ e.Write(dst)
+ } else {
+ // The encoded bytes are too long to cheaply allocate, and
+ // Encoding.Encode is no longer noticeably cheaper.
+ enc := base64.NewEncoder(base64.StdEncoding, e)
+ enc.Write(s)
+ enc.Close()
+ }
+ e.WriteByte('"')
+}
+
+// sliceEncoder just wraps an arrayEncoder, checking to make sure the value isn't nil.
+type sliceEncoder struct {
+ arrayEnc encoderFunc
+}
+
+func (se sliceEncoder) encode(e *encodeState, v reflect.Value, opts encOpts) {
+ if v.IsNil() {
+ e.WriteString("null")
+ return
+ }
+ se.arrayEnc(e, v, opts)
+}
+
+func newSliceEncoder(t reflect.Type) encoderFunc {
+ // Byte slices get special treatment; arrays don't.
+ if t.Elem().Kind() == reflect.Uint8 {
+ p := reflect.PtrTo(t.Elem())
+ if !p.Implements(marshalerType) && !p.Implements(textMarshalerType) {
+ return encodeByteSlice
+ }
+ }
+ enc := sliceEncoder{newArrayEncoder(t)}
+ return enc.encode
+}
+
+type arrayEncoder struct {
+ elemEnc encoderFunc
+}
+
+func (ae arrayEncoder) encode(e *encodeState, v reflect.Value, opts encOpts) {
+ e.WriteByte('[')
+ n := v.Len()
+ for i := 0; i < n; i++ {
+ if i > 0 {
+ e.WriteByte(',')
+ }
+ ae.elemEnc(e, v.Index(i), opts)
+ }
+ e.WriteByte(']')
+}
+
+func newArrayEncoder(t reflect.Type) encoderFunc {
+ enc := arrayEncoder{typeEncoder(t.Elem())}
+ return enc.encode
+}
+
+type ptrEncoder struct {
+ elemEnc encoderFunc
+}
+
+func (pe ptrEncoder) encode(e *encodeState, v reflect.Value, opts encOpts) {
+ if v.IsNil() {
+ e.WriteString("null")
+ return
+ }
+ pe.elemEnc(e, v.Elem(), opts)
+}
+
+func newPtrEncoder(t reflect.Type) encoderFunc {
+ enc := ptrEncoder{typeEncoder(t.Elem())}
+ return enc.encode
+}
+
+type condAddrEncoder struct {
+ canAddrEnc, elseEnc encoderFunc
+}
+
+func (ce condAddrEncoder) encode(e *encodeState, v reflect.Value, opts encOpts) {
+ if v.CanAddr() {
+ ce.canAddrEnc(e, v, opts)
+ } else {
+ ce.elseEnc(e, v, opts)
+ }
+}
+
+// newCondAddrEncoder returns an encoder that checks whether its value
+// CanAddr and delegates to canAddrEnc if so, else to elseEnc.
+func newCondAddrEncoder(canAddrEnc, elseEnc encoderFunc) encoderFunc {
+ enc := condAddrEncoder{canAddrEnc: canAddrEnc, elseEnc: elseEnc}
+ return enc.encode
+}
+
+func isValidTag(s string) bool {
+ if s == "" {
+ return false
+ }
+ for _, c := range s {
+ switch {
+ case strings.ContainsRune("!#$%&()*+-./:<=>?@[]^_{|}~ ", c):
+ // Backslash and quote chars are reserved, but
+ // otherwise any punctuation chars are allowed
+ // in a tag name.
+ case !unicode.IsLetter(c) && !unicode.IsDigit(c):
+ return false
+ }
+ }
+ return true
+}
+
+func typeByIndex(t reflect.Type, index []int) reflect.Type {
+ for _, i := range index {
+ if t.Kind() == reflect.Ptr {
+ t = t.Elem()
+ }
+ t = t.Field(i).Type
+ }
+ return t
+}
+
+type reflectWithString struct {
+ v reflect.Value
+ s string
+}
+
+func (w *reflectWithString) resolve() error {
+ if w.v.Kind() == reflect.String {
+ w.s = w.v.String()
+ return nil
+ }
+ if tm, ok := w.v.Interface().(encoding.TextMarshaler); ok {
+ buf, err := tm.MarshalText()
+ w.s = string(buf)
+ return err
+ }
+ switch w.v.Kind() {
+ case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
+ w.s = strconv.FormatInt(w.v.Int(), 10)
+ return nil
+ case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
+ w.s = strconv.FormatUint(w.v.Uint(), 10)
+ return nil
+ }
+ panic("unexpected map key type")
+}
+
+// NOTE: keep in sync with stringBytes below.
+func (e *encodeState) string(s string, escapeHTML bool) {
+ e.WriteByte('"')
+ start := 0
+ for i := 0; i < len(s); {
+ if b := s[i]; b < utf8.RuneSelf {
+ if htmlSafeSet[b] || (!escapeHTML && safeSet[b]) {
+ i++
+ continue
+ }
+ if start < i {
+ e.WriteString(s[start:i])
+ }
+ e.WriteByte('\\')
+ switch b {
+ case '\\', '"':
+ e.WriteByte(b)
+ case '\n':
+ e.WriteByte('n')
+ case '\r':
+ e.WriteByte('r')
+ case '\t':
+ e.WriteByte('t')
+ default:
+ // This encodes bytes < 0x20 except for \t, \n and \r.
+ // If escapeHTML is set, it also escapes <, >, and &
+ // because they can lead to security holes when
+ // user-controlled strings are rendered into JSON
+ // and served to some browsers.
+ e.WriteString(`u00`)
+ e.WriteByte(hex[b>>4])
+ e.WriteByte(hex[b&0xF])
+ }
+ i++
+ start = i
+ continue
+ }
+ c, size := utf8.DecodeRuneInString(s[i:])
+ if c == utf8.RuneError && size == 1 {
+ if start < i {
+ e.WriteString(s[start:i])
+ }
+ e.WriteString(`\ufffd`)
+ i += size
+ start = i
+ continue
+ }
+ // U+2028 is LINE SEPARATOR.
+ // U+2029 is PARAGRAPH SEPARATOR.
+ // They are both technically valid characters in JSON strings,
+ // but don't work in JSONP, which has to be evaluated as JavaScript,
+ // and can lead to security holes there. It is valid JSON to
+ // escape them, so we do so unconditionally.
+ // See http://timelessrepo.com/json-isnt-a-javascript-subset for discussion.
+ if c == '\u2028' || c == '\u2029' {
+ if start < i {
+ e.WriteString(s[start:i])
+ }
+ e.WriteString(`\u202`)
+ e.WriteByte(hex[c&0xF])
+ i += size
+ start = i
+ continue
+ }
+ i += size
+ }
+ if start < len(s) {
+ e.WriteString(s[start:])
+ }
+ e.WriteByte('"')
+}
+
+// NOTE: keep in sync with string above.
+func (e *encodeState) stringBytes(s []byte, escapeHTML bool) {
+ e.WriteByte('"')
+ start := 0
+ for i := 0; i < len(s); {
+ if b := s[i]; b < utf8.RuneSelf {
+ if htmlSafeSet[b] || (!escapeHTML && safeSet[b]) {
+ i++
+ continue
+ }
+ if start < i {
+ e.Write(s[start:i])
+ }
+ e.WriteByte('\\')
+ switch b {
+ case '\\', '"':
+ e.WriteByte(b)
+ case '\n':
+ e.WriteByte('n')
+ case '\r':
+ e.WriteByte('r')
+ case '\t':
+ e.WriteByte('t')
+ default:
+ // This encodes bytes < 0x20 except for \t, \n and \r.
+ // If escapeHTML is set, it also escapes <, >, and &
+ // because they can lead to security holes when
+ // user-controlled strings are rendered into JSON
+ // and served to some browsers.
+ e.WriteString(`u00`)
+ e.WriteByte(hex[b>>4])
+ e.WriteByte(hex[b&0xF])
+ }
+ i++
+ start = i
+ continue
+ }
+ c, size := utf8.DecodeRune(s[i:])
+ if c == utf8.RuneError && size == 1 {
+ if start < i {
+ e.Write(s[start:i])
+ }
+ e.WriteString(`\ufffd`)
+ i += size
+ start = i
+ continue
+ }
+ // U+2028 is LINE SEPARATOR.
+ // U+2029 is PARAGRAPH SEPARATOR.
+ // They are both technically valid characters in JSON strings,
+ // but don't work in JSONP, which has to be evaluated as JavaScript,
+ // and can lead to security holes there. It is valid JSON to
+ // escape them, so we do so unconditionally.
+ // See http://timelessrepo.com/json-isnt-a-javascript-subset for discussion.
+ if c == '\u2028' || c == '\u2029' {
+ if start < i {
+ e.Write(s[start:i])
+ }
+ e.WriteString(`\u202`)
+ e.WriteByte(hex[c&0xF])
+ i += size
+ start = i
+ continue
+ }
+ i += size
+ }
+ if start < len(s) {
+ e.Write(s[start:])
+ }
+ e.WriteByte('"')
+}
+
+// A field represents a single field found in a struct.
+type field struct {
+ name string
+ nameBytes []byte // []byte(name)
+ equalFold func(s, t []byte) bool // bytes.EqualFold or equivalent
+
+ nameNonEsc string // `"` + name + `":`
+ nameEscHTML string // `"` + HTMLEscape(name) + `":`
+
+ tag bool
+ index []int
+ typ reflect.Type
+ omitEmpty bool
+ extra bool
+ quoted bool
+
+ encoder encoderFunc
+}
+
+// byIndex sorts field by index sequence.
+type byIndex []field
+
+func (x byIndex) Len() int { return len(x) }
+
+func (x byIndex) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
+
+func (x byIndex) Less(i, j int) bool {
+ for k, xik := range x[i].index {
+ if k >= len(x[j].index) {
+ return false
+ }
+ if xik != x[j].index[k] {
+ return xik < x[j].index[k]
+ }
+ }
+ return len(x[i].index) < len(x[j].index)
+}
+
+// typeFields returns a list of fields that JSON should recognize for the given type.
+// The algorithm is breadth-first search over the set of structs to include - the top struct
+// and then any reachable anonymous structs.
+func typeFields(t reflect.Type) structFields {
+ // Anonymous fields to explore at the current level and the next.
+ current := []field{}
+ next := []field{{typ: t}}
+
+ // Count of queued names for current level and the next.
+ var count, nextCount map[reflect.Type]int
+
+ // Types already visited at an earlier level.
+ visited := map[reflect.Type]bool{}
+
+ // Fields found.
+ var fields []field
+
+ // Buffer to run HTMLEscape on field names.
+ var nameEscBuf bytes.Buffer
+
+ for len(next) > 0 {
+ current, next = next, current[:0]
+ count, nextCount = nextCount, map[reflect.Type]int{}
+
+ for _, f := range current {
+ if visited[f.typ] {
+ continue
+ }
+ visited[f.typ] = true
+
+ // Scan f.typ for fields to include.
+ for i := 0; i < f.typ.NumField(); i++ {
+ sf := f.typ.Field(i)
+ isUnexported := sf.PkgPath != ""
+ if sf.Anonymous {
+ t := sf.Type
+ if t.Kind() == reflect.Ptr {
+ t = t.Elem()
+ }
+ if isUnexported && t.Kind() != reflect.Struct {
+ // Ignore embedded fields of unexported non-struct types.
+ continue
+ }
+ // Do not ignore embedded fields of unexported struct types
+ // since they may have exported fields.
+ } else if isUnexported {
+ // Ignore unexported non-embedded fields.
+ continue
+ }
+ tag := sf.Tag.Get("json")
+ tagx := sf.Tag.Get("jsonx")
+ if tag == "-" && tagx == "" {
+ continue
+ }
+ if tagx != "" {
+ tag = ""
+ }
+ name, opts := parseTag(tag)
+ if !isValidTag(name) {
+ name = ""
+ }
+ index := make([]int, len(f.index)+1)
+ copy(index, f.index)
+ index[len(f.index)] = i
+
+ ft := sf.Type
+ if ft.Name() == "" && ft.Kind() == reflect.Ptr {
+ // Follow pointer.
+ ft = ft.Elem()
+ }
+
+ // Only maps can be extra.
+ extra := false
+ if tagx != "" {
+ switch ft.Kind() {
+ case reflect.Map:
+ extra = true
+ default:
+ continue
+ }
+ }
+
+ // Only strings, floats, integers, and booleans can be quoted.
+ quoted := false
+ if opts.Contains("string") {
+ switch ft.Kind() {
+ case reflect.Bool,
+ reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64,
+ reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr,
+ reflect.Float32, reflect.Float64,
+ reflect.String:
+ quoted = true
+ }
+ }
+
+ // Record found field and index sequence.
+ if name != "" || !sf.Anonymous || ft.Kind() != reflect.Struct {
+ tagged := name != ""
+ if name == "" {
+ name = sf.Name
+ }
+ field := field{
+ name: name,
+ tag: tagged,
+ index: index,
+ typ: ft,
+ omitEmpty: opts.Contains("omitempty"),
+ extra: extra,
+ quoted: quoted,
+ }
+ field.nameBytes = []byte(field.name)
+ field.equalFold = foldFunc(field.nameBytes)
+
+ // Build nameEscHTML and nameNonEsc ahead of time.
+ nameEscBuf.Reset()
+ nameEscBuf.WriteString(`"`)
+ HTMLEscape(&nameEscBuf, field.nameBytes)
+ nameEscBuf.WriteString(`":`)
+ field.nameEscHTML = nameEscBuf.String()
+ field.nameNonEsc = `"` + field.name + `":`
+
+ fields = append(fields, field)
+ if count[f.typ] > 1 {
+ // If there were multiple instances, add a second,
+ // so that the annihilation code will see a duplicate.
+ // It only cares about the distinction between 1 or 2,
+ // so don't bother generating any more copies.
+ fields = append(fields, fields[len(fields)-1])
+ }
+ continue
+ }
+
+ // Record new anonymous struct to explore in next round.
+ nextCount[ft]++
+ if nextCount[ft] == 1 {
+ next = append(next, field{name: ft.Name(), index: index, typ: ft})
+ }
+ }
+ }
+ }
+
+ sort.Slice(fields, func(i, j int) bool {
+ x := fields
+ // sort field by name, breaking ties with depth, then
+ // breaking ties with "name came from json tag", then
+ // breaking ties with index sequence.
+ if x[i].name != x[j].name {
+ return x[i].name < x[j].name
+ }
+ if len(x[i].index) != len(x[j].index) {
+ return len(x[i].index) < len(x[j].index)
+ }
+ if x[i].tag != x[j].tag {
+ return x[i].tag
+ }
+ return byIndex(x).Less(i, j)
+ })
+
+ // Delete all fields that are hidden by the Go rules for embedded fields,
+ // except that fields with JSON tags are promoted.
+
+ // The fields are sorted in primary order of name, secondary order
+ // of field index length. Loop over names; for each name, delete
+ // hidden fields by choosing the one dominant field that survives.
+ out := fields[:0]
+ for advance, i := 0, 0; i < len(fields); i += advance {
+ // One iteration per name.
+ // Find the sequence of fields with the name of this first field.
+ fi := fields[i]
+ name := fi.name
+ for advance = 1; i+advance < len(fields); advance++ {
+ fj := fields[i+advance]
+ if fj.name != name {
+ break
+ }
+ }
+ if advance == 1 { // Only one field with this name
+ out = append(out, fi)
+ continue
+ }
+ dominant, ok := dominantField(fields[i : i+advance])
+ if ok {
+ out = append(out, dominant)
+ }
+ }
+
+ fields = out
+ sort.Sort(byIndex(fields))
+
+ for i := range fields {
+ f := &fields[i]
+ f.encoder = typeEncoder(typeByIndex(t, f.index))
+ }
+ nameIndex := make(map[string]int, len(fields))
+ for i, field := range fields {
+ nameIndex[field.name] = i
+ }
+ return structFields{fields, nameIndex}
+}
+
+// dominantField looks through the fields, all of which are known to
+// have the same name, to find the single field that dominates the
+// others using Go's embedding rules, modified by the presence of
+// JSON tags. If there are multiple top-level fields, the boolean
+// will be false: This condition is an error in Go and we skip all
+// the fields.
+func dominantField(fields []field) (field, bool) {
+ // The fields are sorted in increasing index-length order, then by presence of tag.
+ // That means that the first field is the dominant one. We need only check
+ // for error cases: two fields at top level, either both tagged or neither tagged.
+ if len(fields) > 1 && len(fields[0].index) == len(fields[1].index) && fields[0].tag == fields[1].tag {
+ return field{}, false
+ }
+ return fields[0], true
+}
+
+var fieldCache sync.Map // map[reflect.Type]structFields
+
+// cachedTypeFields is like typeFields but uses a cache to avoid repeated work.
+func cachedTypeFields(t reflect.Type) structFields {
+ if f, ok := fieldCache.Load(t); ok {
+ return f.(structFields)
+ }
+ f, _ := fieldCache.LoadOrStore(t, typeFields(t))
+ return f.(structFields)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/fold.go b/vendor/github.com/matterbridge/msgraph.go/jsonx/fold.go
new file mode 100644
index 00000000..316ea018
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/jsonx/fold.go
@@ -0,0 +1,143 @@
+// Copyright 2013 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package jsonx
+
+import (
+ "bytes"
+ "unicode/utf8"
+)
+
+const (
+ caseMask = ^byte(0x20) // Mask to ignore case in ASCII.
+ kelvin = '\u212a'
+ smallLongEss = '\u017f'
+)
+
+// foldFunc returns one of four different case folding equivalence
+// functions, from most general (and slow) to fastest:
+//
+// 1) bytes.EqualFold, if the key s contains any non-ASCII UTF-8
+// 2) equalFoldRight, if s contains special folding ASCII ('k', 'K', 's', 'S')
+// 3) asciiEqualFold, no special, but includes non-letters (including _)
+// 4) simpleLetterEqualFold, no specials, no non-letters.
+//
+// The letters S and K are special because they map to 3 runes, not just 2:
+// * S maps to s and to U+017F 'ſ' Latin small letter long s
+// * k maps to K and to U+212A 'K' Kelvin sign
+// See https://play.golang.org/p/tTxjOc0OGo
+//
+// The returned function is specialized for matching against s and
+// should only be given s. It's not curried for performance reasons.
+func foldFunc(s []byte) func(s, t []byte) bool {
+ nonLetter := false
+ special := false // special letter
+ for _, b := range s {
+ if b >= utf8.RuneSelf {
+ return bytes.EqualFold
+ }
+ upper := b & caseMask
+ if upper < 'A' || upper > 'Z' {
+ nonLetter = true
+ } else if upper == 'K' || upper == 'S' {
+ // See above for why these letters are special.
+ special = true
+ }
+ }
+ if special {
+ return equalFoldRight
+ }
+ if nonLetter {
+ return asciiEqualFold
+ }
+ return simpleLetterEqualFold
+}
+
+// equalFoldRight is a specialization of bytes.EqualFold when s is
+// known to be all ASCII (including punctuation), but contains an 's',
+// 'S', 'k', or 'K', requiring a Unicode fold on the bytes in t.
+// See comments on foldFunc.
+func equalFoldRight(s, t []byte) bool {
+ for _, sb := range s {
+ if len(t) == 0 {
+ return false
+ }
+ tb := t[0]
+ if tb < utf8.RuneSelf {
+ if sb != tb {
+ sbUpper := sb & caseMask
+ if 'A' <= sbUpper && sbUpper <= 'Z' {
+ if sbUpper != tb&caseMask {
+ return false
+ }
+ } else {
+ return false
+ }
+ }
+ t = t[1:]
+ continue
+ }
+ // sb is ASCII and t is not. t must be either kelvin
+ // sign or long s; sb must be s, S, k, or K.
+ tr, size := utf8.DecodeRune(t)
+ switch sb {
+ case 's', 'S':
+ if tr != smallLongEss {
+ return false
+ }
+ case 'k', 'K':
+ if tr != kelvin {
+ return false
+ }
+ default:
+ return false
+ }
+ t = t[size:]
+
+ }
+ if len(t) > 0 {
+ return false
+ }
+ return true
+}
+
+// asciiEqualFold is a specialization of bytes.EqualFold for use when
+// s is all ASCII (but may contain non-letters) and contains no
+// special-folding letters.
+// See comments on foldFunc.
+func asciiEqualFold(s, t []byte) bool {
+ if len(s) != len(t) {
+ return false
+ }
+ for i, sb := range s {
+ tb := t[i]
+ if sb == tb {
+ continue
+ }
+ if ('a' <= sb && sb <= 'z') || ('A' <= sb && sb <= 'Z') {
+ if sb&caseMask != tb&caseMask {
+ return false
+ }
+ } else {
+ return false
+ }
+ }
+ return true
+}
+
+// simpleLetterEqualFold is a specialization of bytes.EqualFold for
+// use when s is all ASCII letters (no underscores, etc) and also
+// doesn't contain 'k', 'K', 's', or 'S'.
+// See comments on foldFunc.
+func simpleLetterEqualFold(s, t []byte) bool {
+ if len(s) != len(t) {
+ return false
+ }
+ for i, b := range s {
+ if b&caseMask != t[i]&caseMask {
+ return false
+ }
+ }
+ return true
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/indent.go b/vendor/github.com/matterbridge/msgraph.go/jsonx/indent.go
new file mode 100644
index 00000000..15d95cd1
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/jsonx/indent.go
@@ -0,0 +1,141 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package jsonx
+
+import "bytes"
+
+// Compact appends to dst the JSON-encoded src with
+// insignificant space characters elided.
+func Compact(dst *bytes.Buffer, src []byte) error {
+ return compact(dst, src, false)
+}
+
+func compact(dst *bytes.Buffer, src []byte, escape bool) error {
+ origLen := dst.Len()
+ var scan scanner
+ scan.reset()
+ start := 0
+ for i, c := range src {
+ if escape && (c == '<' || c == '>' || c == '&') {
+ if start < i {
+ dst.Write(src[start:i])
+ }
+ dst.WriteString(`\u00`)
+ dst.WriteByte(hex[c>>4])
+ dst.WriteByte(hex[c&0xF])
+ start = i + 1
+ }
+ // Convert U+2028 and U+2029 (E2 80 A8 and E2 80 A9).
+ if c == 0xE2 && i+2 < len(src) && src[i+1] == 0x80 && src[i+2]&^1 == 0xA8 {
+ if start < i {
+ dst.Write(src[start:i])
+ }
+ dst.WriteString(`\u202`)
+ dst.WriteByte(hex[src[i+2]&0xF])
+ start = i + 3
+ }
+ v := scan.step(&scan, c)
+ if v >= scanSkipSpace {
+ if v == scanError {
+ break
+ }
+ if start < i {
+ dst.Write(src[start:i])
+ }
+ start = i + 1
+ }
+ }
+ if scan.eof() == scanError {
+ dst.Truncate(origLen)
+ return scan.err
+ }
+ if start < len(src) {
+ dst.Write(src[start:])
+ }
+ return nil
+}
+
+func newline(dst *bytes.Buffer, prefix, indent string, depth int) {
+ dst.WriteByte('\n')
+ dst.WriteString(prefix)
+ for i := 0; i < depth; i++ {
+ dst.WriteString(indent)
+ }
+}
+
+// Indent appends to dst an indented form of the JSON-encoded src.
+// Each element in a JSON object or array begins on a new,
+// indented line beginning with prefix followed by one or more
+// copies of indent according to the indentation nesting.
+// The data appended to dst does not begin with the prefix nor
+// any indentation, to make it easier to embed inside other formatted JSON data.
+// Although leading space characters (space, tab, carriage return, newline)
+// at the beginning of src are dropped, trailing space characters
+// at the end of src are preserved and copied to dst.
+// For example, if src has no trailing spaces, neither will dst;
+// if src ends in a trailing newline, so will dst.
+func Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error {
+ origLen := dst.Len()
+ var scan scanner
+ scan.reset()
+ needIndent := false
+ depth := 0
+ for _, c := range src {
+ scan.bytes++
+ v := scan.step(&scan, c)
+ if v == scanSkipSpace {
+ continue
+ }
+ if v == scanError {
+ break
+ }
+ if needIndent && v != scanEndObject && v != scanEndArray {
+ needIndent = false
+ depth++
+ newline(dst, prefix, indent, depth)
+ }
+
+ // Emit semantically uninteresting bytes
+ // (in particular, punctuation in strings) unmodified.
+ if v == scanContinue {
+ dst.WriteByte(c)
+ continue
+ }
+
+ // Add spacing around real punctuation.
+ switch c {
+ case '{', '[':
+ // delay indent so that empty object and array are formatted as {} and [].
+ needIndent = true
+ dst.WriteByte(c)
+
+ case ',':
+ dst.WriteByte(c)
+ newline(dst, prefix, indent, depth)
+
+ case ':':
+ dst.WriteByte(c)
+ dst.WriteByte(' ')
+
+ case '}', ']':
+ if needIndent {
+ // suppress indent in empty object/array
+ needIndent = false
+ } else {
+ depth--
+ newline(dst, prefix, indent, depth)
+ }
+ dst.WriteByte(c)
+
+ default:
+ dst.WriteByte(c)
+ }
+ }
+ if scan.eof() == scanError {
+ dst.Truncate(origLen)
+ return scan.err
+ }
+ return nil
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/scanner.go b/vendor/github.com/matterbridge/msgraph.go/jsonx/scanner.go
new file mode 100644
index 00000000..780c5e45
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/jsonx/scanner.go
@@ -0,0 +1,573 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package jsonx
+
+// JSON value parser state machine.
+// Just about at the limit of what is reasonable to write by hand.
+// Some parts are a bit tedious, but overall it nicely factors out the
+// otherwise common code from the multiple scanning functions
+// in this package (Compact, Indent, checkValid, etc).
+//
+// This file starts with two simple examples using the scanner
+// before diving into the scanner itself.
+
+import "strconv"
+
+// Valid reports whether data is a valid JSON encoding.
+func Valid(data []byte) bool {
+ return checkValid(data, &scanner{}) == nil
+}
+
+// checkValid verifies that data is valid JSON-encoded data.
+// scan is passed in for use by checkValid to avoid an allocation.
+func checkValid(data []byte, scan *scanner) error {
+ scan.reset()
+ for _, c := range data {
+ scan.bytes++
+ if scan.step(scan, c) == scanError {
+ return scan.err
+ }
+ }
+ if scan.eof() == scanError {
+ return scan.err
+ }
+ return nil
+}
+
+// A SyntaxError is a description of a JSON syntax error.
+type SyntaxError struct {
+ msg string // description of error
+ Offset int64 // error occurred after reading Offset bytes
+}
+
+func (e *SyntaxError) Error() string { return e.msg }
+
+// A scanner is a JSON scanning state machine.
+// Callers call scan.reset() and then pass bytes in one at a time
+// by calling scan.step(&scan, c) for each byte.
+// The return value, referred to as an opcode, tells the
+// caller about significant parsing events like beginning
+// and ending literals, objects, and arrays, so that the
+// caller can follow along if it wishes.
+// The return value scanEnd indicates that a single top-level
+// JSON value has been completed, *before* the byte that
+// just got passed in. (The indication must be delayed in order
+// to recognize the end of numbers: is 123 a whole value or
+// the beginning of 12345e+6?).
+type scanner struct {
+ // The step is a func to be called to execute the next transition.
+ // Also tried using an integer constant and a single func
+ // with a switch, but using the func directly was 10% faster
+ // on a 64-bit Mac Mini, and it's nicer to read.
+ step func(*scanner, byte) int
+
+ // Reached end of top-level value.
+ endTop bool
+
+ // Stack of what we're in the middle of - array values, object keys, object values.
+ parseState []int
+
+ // Error that happened, if any.
+ err error
+
+ // total bytes consumed, updated by decoder.Decode
+ bytes int64
+}
+
+// These values are returned by the state transition functions
+// assigned to scanner.state and the method scanner.eof.
+// They give details about the current state of the scan that
+// callers might be interested to know about.
+// It is okay to ignore the return value of any particular
+// call to scanner.state: if one call returns scanError,
+// every subsequent call will return scanError too.
+const (
+ // Continue.
+ scanContinue = iota // uninteresting byte
+ scanBeginLiteral // end implied by next result != scanContinue
+ scanBeginObject // begin object
+ scanObjectKey // just finished object key (string)
+ scanObjectValue // just finished non-last object value
+ scanEndObject // end object (implies scanObjectValue if possible)
+ scanBeginArray // begin array
+ scanArrayValue // just finished array value
+ scanEndArray // end array (implies scanArrayValue if possible)
+ scanSkipSpace // space byte; can skip; known to be last "continue" result
+
+ // Stop.
+ scanEnd // top-level value ended *before* this byte; known to be first "stop" result
+ scanError // hit an error, scanner.err.
+)
+
+// These values are stored in the parseState stack.
+// They give the current state of a composite value
+// being scanned. If the parser is inside a nested value
+// the parseState describes the nested state, outermost at entry 0.
+const (
+ parseObjectKey = iota // parsing object key (before colon)
+ parseObjectValue // parsing object value (after colon)
+ parseArrayValue // parsing array value
+)
+
+// reset prepares the scanner for use.
+// It must be called before calling s.step.
+func (s *scanner) reset() {
+ s.step = stateBeginValue
+ s.parseState = s.parseState[0:0]
+ s.err = nil
+ s.endTop = false
+}
+
+// eof tells the scanner that the end of input has been reached.
+// It returns a scan status just as s.step does.
+func (s *scanner) eof() int {
+ if s.err != nil {
+ return scanError
+ }
+ if s.endTop {
+ return scanEnd
+ }
+ s.step(s, ' ')
+ if s.endTop {
+ return scanEnd
+ }
+ if s.err == nil {
+ s.err = &SyntaxError{"unexpected end of JSON input", s.bytes}
+ }
+ return scanError
+}
+
+// pushParseState pushes a new parse state p onto the parse stack.
+func (s *scanner) pushParseState(p int) {
+ s.parseState = append(s.parseState, p)
+}
+
+// popParseState pops a parse state (already obtained) off the stack
+// and updates s.step accordingly.
+func (s *scanner) popParseState() {
+ n := len(s.parseState) - 1
+ s.parseState = s.parseState[0:n]
+ if n == 0 {
+ s.step = stateEndTop
+ s.endTop = true
+ } else {
+ s.step = stateEndValue
+ }
+}
+
+func isSpace(c byte) bool {
+ return c == ' ' || c == '\t' || c == '\r' || c == '\n'
+}
+
+// stateBeginValueOrEmpty is the state after reading `[`.
+func stateBeginValueOrEmpty(s *scanner, c byte) int {
+ if c <= ' ' && isSpace(c) {
+ return scanSkipSpace
+ }
+ if c == ']' {
+ return stateEndValue(s, c)
+ }
+ return stateBeginValue(s, c)
+}
+
+// stateBeginValue is the state at the beginning of the input.
+func stateBeginValue(s *scanner, c byte) int {
+ if c <= ' ' && isSpace(c) {
+ return scanSkipSpace
+ }
+ switch c {
+ case '{':
+ s.step = stateBeginStringOrEmpty
+ s.pushParseState(parseObjectKey)
+ return scanBeginObject
+ case '[':
+ s.step = stateBeginValueOrEmpty
+ s.pushParseState(parseArrayValue)
+ return scanBeginArray
+ case '"':
+ s.step = stateInString
+ return scanBeginLiteral
+ case '-':
+ s.step = stateNeg
+ return scanBeginLiteral
+ case '0': // beginning of 0.123
+ s.step = state0
+ return scanBeginLiteral
+ case 't': // beginning of true
+ s.step = stateT
+ return scanBeginLiteral
+ case 'f': // beginning of false
+ s.step = stateF
+ return scanBeginLiteral
+ case 'n': // beginning of null
+ s.step = stateN
+ return scanBeginLiteral
+ }
+ if '1' <= c && c <= '9' { // beginning of 1234.5
+ s.step = state1
+ return scanBeginLiteral
+ }
+ return s.error(c, "looking for beginning of value")
+}
+
+// stateBeginStringOrEmpty is the state after reading `{`.
+func stateBeginStringOrEmpty(s *scanner, c byte) int {
+ if c <= ' ' && isSpace(c) {
+ return scanSkipSpace
+ }
+ if c == '}' {
+ n := len(s.parseState)
+ s.parseState[n-1] = parseObjectValue
+ return stateEndValue(s, c)
+ }
+ return stateBeginString(s, c)
+}
+
+// stateBeginString is the state after reading `{"key": value,`.
+func stateBeginString(s *scanner, c byte) int {
+ if c <= ' ' && isSpace(c) {
+ return scanSkipSpace
+ }
+ if c == '"' {
+ s.step = stateInString
+ return scanBeginLiteral
+ }
+ return s.error(c, "looking for beginning of object key string")
+}
+
+// stateEndValue is the state after completing a value,
+// such as after reading `{}` or `true` or `["x"`.
+func stateEndValue(s *scanner, c byte) int {
+ n := len(s.parseState)
+ if n == 0 {
+ // Completed top-level before the current byte.
+ s.step = stateEndTop
+ s.endTop = true
+ return stateEndTop(s, c)
+ }
+ if c <= ' ' && isSpace(c) {
+ s.step = stateEndValue
+ return scanSkipSpace
+ }
+ ps := s.parseState[n-1]
+ switch ps {
+ case parseObjectKey:
+ if c == ':' {
+ s.parseState[n-1] = parseObjectValue
+ s.step = stateBeginValue
+ return scanObjectKey
+ }
+ return s.error(c, "after object key")
+ case parseObjectValue:
+ if c == ',' {
+ s.parseState[n-1] = parseObjectKey
+ s.step = stateBeginString
+ return scanObjectValue
+ }
+ if c == '}' {
+ s.popParseState()
+ return scanEndObject
+ }
+ return s.error(c, "after object key:value pair")
+ case parseArrayValue:
+ if c == ',' {
+ s.step = stateBeginValue
+ return scanArrayValue
+ }
+ if c == ']' {
+ s.popParseState()
+ return scanEndArray
+ }
+ return s.error(c, "after array element")
+ }
+ return s.error(c, "")
+}
+
+// stateEndTop is the state after finishing the top-level value,
+// such as after reading `{}` or `[1,2,3]`.
+// Only space characters should be seen now.
+func stateEndTop(s *scanner, c byte) int {
+ if !isSpace(c) {
+ // Complain about non-space byte on next call.
+ s.error(c, "after top-level value")
+ }
+ return scanEnd
+}
+
+// stateInString is the state after reading `"`.
+func stateInString(s *scanner, c byte) int {
+ if c == '"' {
+ s.step = stateEndValue
+ return scanContinue
+ }
+ if c == '\\' {
+ s.step = stateInStringEsc
+ return scanContinue
+ }
+ if c < 0x20 {
+ return s.error(c, "in string literal")
+ }
+ return scanContinue
+}
+
+// stateInStringEsc is the state after reading `"\` during a quoted string.
+func stateInStringEsc(s *scanner, c byte) int {
+ switch c {
+ case 'b', 'f', 'n', 'r', 't', '\\', '/', '"':
+ s.step = stateInString
+ return scanContinue
+ case 'u':
+ s.step = stateInStringEscU
+ return scanContinue
+ }
+ return s.error(c, "in string escape code")
+}
+
+// stateInStringEscU is the state after reading `"\u` during a quoted string.
+func stateInStringEscU(s *scanner, c byte) int {
+ if '0' <= c && c <= '9' || 'a' <= c && c <= 'f' || 'A' <= c && c <= 'F' {
+ s.step = stateInStringEscU1
+ return scanContinue
+ }
+ // numbers
+ return s.error(c, "in \\u hexadecimal character escape")
+}
+
+// stateInStringEscU1 is the state after reading `"\u1` during a quoted string.
+func stateInStringEscU1(s *scanner, c byte) int {
+ if '0' <= c && c <= '9' || 'a' <= c && c <= 'f' || 'A' <= c && c <= 'F' {
+ s.step = stateInStringEscU12
+ return scanContinue
+ }
+ // numbers
+ return s.error(c, "in \\u hexadecimal character escape")
+}
+
+// stateInStringEscU12 is the state after reading `"\u12` during a quoted string.
+func stateInStringEscU12(s *scanner, c byte) int {
+ if '0' <= c && c <= '9' || 'a' <= c && c <= 'f' || 'A' <= c && c <= 'F' {
+ s.step = stateInStringEscU123
+ return scanContinue
+ }
+ // numbers
+ return s.error(c, "in \\u hexadecimal character escape")
+}
+
+// stateInStringEscU123 is the state after reading `"\u123` during a quoted string.
+func stateInStringEscU123(s *scanner, c byte) int {
+ if '0' <= c && c <= '9' || 'a' <= c && c <= 'f' || 'A' <= c && c <= 'F' {
+ s.step = stateInString
+ return scanContinue
+ }
+ // numbers
+ return s.error(c, "in \\u hexadecimal character escape")
+}
+
+// stateNeg is the state after reading `-` during a number.
+func stateNeg(s *scanner, c byte) int {
+ if c == '0' {
+ s.step = state0
+ return scanContinue
+ }
+ if '1' <= c && c <= '9' {
+ s.step = state1
+ return scanContinue
+ }
+ return s.error(c, "in numeric literal")
+}
+
+// state1 is the state after reading a non-zero integer during a number,
+// such as after reading `1` or `100` but not `0`.
+func state1(s *scanner, c byte) int {
+ if '0' <= c && c <= '9' {
+ s.step = state1
+ return scanContinue
+ }
+ return state0(s, c)
+}
+
+// state0 is the state after reading `0` during a number.
+func state0(s *scanner, c byte) int {
+ if c == '.' {
+ s.step = stateDot
+ return scanContinue
+ }
+ if c == 'e' || c == 'E' {
+ s.step = stateE
+ return scanContinue
+ }
+ return stateEndValue(s, c)
+}
+
+// stateDot is the state after reading the integer and decimal point in a number,
+// such as after reading `1.`.
+func stateDot(s *scanner, c byte) int {
+ if '0' <= c && c <= '9' {
+ s.step = stateDot0
+ return scanContinue
+ }
+ return s.error(c, "after decimal point in numeric literal")
+}
+
+// stateDot0 is the state after reading the integer, decimal point, and subsequent
+// digits of a number, such as after reading `3.14`.
+func stateDot0(s *scanner, c byte) int {
+ if '0' <= c && c <= '9' {
+ return scanContinue
+ }
+ if c == 'e' || c == 'E' {
+ s.step = stateE
+ return scanContinue
+ }
+ return stateEndValue(s, c)
+}
+
+// stateE is the state after reading the mantissa and e in a number,
+// such as after reading `314e` or `0.314e`.
+func stateE(s *scanner, c byte) int {
+ if c == '+' || c == '-' {
+ s.step = stateESign
+ return scanContinue
+ }
+ return stateESign(s, c)
+}
+
+// stateESign is the state after reading the mantissa, e, and sign in a number,
+// such as after reading `314e-` or `0.314e+`.
+func stateESign(s *scanner, c byte) int {
+ if '0' <= c && c <= '9' {
+ s.step = stateE0
+ return scanContinue
+ }
+ return s.error(c, "in exponent of numeric literal")
+}
+
+// stateE0 is the state after reading the mantissa, e, optional sign,
+// and at least one digit of the exponent in a number,
+// such as after reading `314e-2` or `0.314e+1` or `3.14e0`.
+func stateE0(s *scanner, c byte) int {
+ if '0' <= c && c <= '9' {
+ return scanContinue
+ }
+ return stateEndValue(s, c)
+}
+
+// stateT is the state after reading `t`.
+func stateT(s *scanner, c byte) int {
+ if c == 'r' {
+ s.step = stateTr
+ return scanContinue
+ }
+ return s.error(c, "in literal true (expecting 'r')")
+}
+
+// stateTr is the state after reading `tr`.
+func stateTr(s *scanner, c byte) int {
+ if c == 'u' {
+ s.step = stateTru
+ return scanContinue
+ }
+ return s.error(c, "in literal true (expecting 'u')")
+}
+
+// stateTru is the state after reading `tru`.
+func stateTru(s *scanner, c byte) int {
+ if c == 'e' {
+ s.step = stateEndValue
+ return scanContinue
+ }
+ return s.error(c, "in literal true (expecting 'e')")
+}
+
+// stateF is the state after reading `f`.
+func stateF(s *scanner, c byte) int {
+ if c == 'a' {
+ s.step = stateFa
+ return scanContinue
+ }
+ return s.error(c, "in literal false (expecting 'a')")
+}
+
+// stateFa is the state after reading `fa`.
+func stateFa(s *scanner, c byte) int {
+ if c == 'l' {
+ s.step = stateFal
+ return scanContinue
+ }
+ return s.error(c, "in literal false (expecting 'l')")
+}
+
+// stateFal is the state after reading `fal`.
+func stateFal(s *scanner, c byte) int {
+ if c == 's' {
+ s.step = stateFals
+ return scanContinue
+ }
+ return s.error(c, "in literal false (expecting 's')")
+}
+
+// stateFals is the state after reading `fals`.
+func stateFals(s *scanner, c byte) int {
+ if c == 'e' {
+ s.step = stateEndValue
+ return scanContinue
+ }
+ return s.error(c, "in literal false (expecting 'e')")
+}
+
+// stateN is the state after reading `n`.
+func stateN(s *scanner, c byte) int {
+ if c == 'u' {
+ s.step = stateNu
+ return scanContinue
+ }
+ return s.error(c, "in literal null (expecting 'u')")
+}
+
+// stateNu is the state after reading `nu`.
+func stateNu(s *scanner, c byte) int {
+ if c == 'l' {
+ s.step = stateNul
+ return scanContinue
+ }
+ return s.error(c, "in literal null (expecting 'l')")
+}
+
+// stateNul is the state after reading `nul`.
+func stateNul(s *scanner, c byte) int {
+ if c == 'l' {
+ s.step = stateEndValue
+ return scanContinue
+ }
+ return s.error(c, "in literal null (expecting 'l')")
+}
+
+// stateError is the state after reaching a syntax error,
+// such as after reading `[1}` or `5.1.2`.
+func stateError(s *scanner, c byte) int {
+ return scanError
+}
+
+// error records an error and switches to the error state.
+func (s *scanner) error(c byte, context string) int {
+ s.step = stateError
+ s.err = &SyntaxError{"invalid character " + quoteChar(c) + " " + context, s.bytes}
+ return scanError
+}
+
+// quoteChar formats c as a quoted character literal
+func quoteChar(c byte) string {
+ // special cases - different from quoted strings
+ if c == '\'' {
+ return `'\''`
+ }
+ if c == '"' {
+ return `'"'`
+ }
+
+ // use quoted string with different quotation marks
+ s := strconv.Quote(string(c))
+ return "'" + s[1:len(s)-1] + "'"
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/stream.go b/vendor/github.com/matterbridge/msgraph.go/jsonx/stream.go
new file mode 100644
index 00000000..0f00c037
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/jsonx/stream.go
@@ -0,0 +1,507 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package jsonx
+
+import (
+ "bytes"
+ "errors"
+ "io"
+)
+
+// A Decoder reads and decodes JSON values from an input stream.
+type Decoder struct {
+ r io.Reader
+ buf []byte
+ d decodeState
+ scanp int // start of unread data in buf
+ scanned int64 // amount of data already scanned
+ scan scanner
+ err error
+
+ tokenState int
+ tokenStack []int
+}
+
+// NewDecoder returns a new decoder that reads from r.
+//
+// The decoder introduces its own buffering and may
+// read data from r beyond the JSON values requested.
+func NewDecoder(r io.Reader) *Decoder {
+ return &Decoder{r: r}
+}
+
+// UseNumber causes the Decoder to unmarshal a number into an interface{} as a
+// Number instead of as a float64.
+func (dec *Decoder) UseNumber() { dec.d.useNumber = true }
+
+// DisallowUnknownFields causes the Decoder to return an error when the destination
+// is a struct and the input contains object keys which do not match any
+// non-ignored, exported fields in the destination.
+func (dec *Decoder) DisallowUnknownFields() { dec.d.disallowUnknownFields = true }
+
+// Decode reads the next JSON-encoded value from its
+// input and stores it in the value pointed to by v.
+//
+// See the documentation for Unmarshal for details about
+// the conversion of JSON into a Go value.
+func (dec *Decoder) Decode(v interface{}) error {
+ if dec.err != nil {
+ return dec.err
+ }
+
+ if err := dec.tokenPrepareForDecode(); err != nil {
+ return err
+ }
+
+ if !dec.tokenValueAllowed() {
+ return &SyntaxError{msg: "not at beginning of value", Offset: dec.offset()}
+ }
+
+ // Read whole value into buffer.
+ n, err := dec.readValue()
+ if err != nil {
+ return err
+ }
+ dec.d.init(dec.buf[dec.scanp : dec.scanp+n])
+ dec.scanp += n
+
+ // Don't save err from unmarshal into dec.err:
+ // the connection is still usable since we read a complete JSON
+ // object from it before the error happened.
+ err = dec.d.unmarshal(v)
+
+ // fixup token streaming state
+ dec.tokenValueEnd()
+
+ return err
+}
+
+// Buffered returns a reader of the data remaining in the Decoder's
+// buffer. The reader is valid until the next call to Decode.
+func (dec *Decoder) Buffered() io.Reader {
+ return bytes.NewReader(dec.buf[dec.scanp:])
+}
+
+// readValue reads a JSON value into dec.buf.
+// It returns the length of the encoding.
+func (dec *Decoder) readValue() (int, error) {
+ dec.scan.reset()
+
+ scanp := dec.scanp
+ var err error
+Input:
+ // help the compiler see that scanp is never negative, so it can remove
+ // some bounds checks below.
+ for scanp >= 0 {
+
+ // Look in the buffer for a new value.
+ for ; scanp < len(dec.buf); scanp++ {
+ c := dec.buf[scanp]
+ dec.scan.bytes++
+ switch dec.scan.step(&dec.scan, c) {
+ case scanEnd:
+ break Input
+ case scanEndObject, scanEndArray:
+ // scanEnd is delayed one byte.
+ // We might block trying to get that byte from src,
+ // so instead invent a space byte.
+ if stateEndValue(&dec.scan, ' ') == scanEnd {
+ scanp++
+ break Input
+ }
+ case scanError:
+ dec.err = dec.scan.err
+ return 0, dec.scan.err
+ }
+ }
+
+ // Did the last read have an error?
+ // Delayed until now to allow buffer scan.
+ if err != nil {
+ if err == io.EOF {
+ if dec.scan.step(&dec.scan, ' ') == scanEnd {
+ break Input
+ }
+ if nonSpace(dec.buf) {
+ err = io.ErrUnexpectedEOF
+ }
+ }
+ dec.err = err
+ return 0, err
+ }
+
+ n := scanp - dec.scanp
+ err = dec.refill()
+ scanp = dec.scanp + n
+ }
+ return scanp - dec.scanp, nil
+}
+
+func (dec *Decoder) refill() error {
+ // Make room to read more into the buffer.
+ // First slide down data already consumed.
+ if dec.scanp > 0 {
+ dec.scanned += int64(dec.scanp)
+ n := copy(dec.buf, dec.buf[dec.scanp:])
+ dec.buf = dec.buf[:n]
+ dec.scanp = 0
+ }
+
+ // Grow buffer if not large enough.
+ const minRead = 512
+ if cap(dec.buf)-len(dec.buf) < minRead {
+ newBuf := make([]byte, len(dec.buf), 2*cap(dec.buf)+minRead)
+ copy(newBuf, dec.buf)
+ dec.buf = newBuf
+ }
+
+ // Read. Delay error for next iteration (after scan).
+ n, err := dec.r.Read(dec.buf[len(dec.buf):cap(dec.buf)])
+ dec.buf = dec.buf[0 : len(dec.buf)+n]
+
+ return err
+}
+
+func nonSpace(b []byte) bool {
+ for _, c := range b {
+ if !isSpace(c) {
+ return true
+ }
+ }
+ return false
+}
+
+// An Encoder writes JSON values to an output stream.
+type Encoder struct {
+ w io.Writer
+ err error
+ escapeHTML bool
+
+ indentBuf *bytes.Buffer
+ indentPrefix string
+ indentValue string
+}
+
+// NewEncoder returns a new encoder that writes to w.
+func NewEncoder(w io.Writer) *Encoder {
+ return &Encoder{w: w, escapeHTML: true}
+}
+
+// Encode writes the JSON encoding of v to the stream,
+// followed by a newline character.
+//
+// See the documentation for Marshal for details about the
+// conversion of Go values to JSON.
+func (enc *Encoder) Encode(v interface{}) error {
+ if enc.err != nil {
+ return enc.err
+ }
+ e := newEncodeState()
+ err := e.marshal(v, encOpts{escapeHTML: enc.escapeHTML})
+ if err != nil {
+ return err
+ }
+
+ // Terminate each value with a newline.
+ // This makes the output look a little nicer
+ // when debugging, and some kind of space
+ // is required if the encoded value was a number,
+ // so that the reader knows there aren't more
+ // digits coming.
+ e.WriteByte('\n')
+
+ b := e.Bytes()
+ if enc.indentPrefix != "" || enc.indentValue != "" {
+ if enc.indentBuf == nil {
+ enc.indentBuf = new(bytes.Buffer)
+ }
+ enc.indentBuf.Reset()
+ err = Indent(enc.indentBuf, b, enc.indentPrefix, enc.indentValue)
+ if err != nil {
+ return err
+ }
+ b = enc.indentBuf.Bytes()
+ }
+ if _, err = enc.w.Write(b); err != nil {
+ enc.err = err
+ }
+ encodeStatePool.Put(e)
+ return err
+}
+
+// SetIndent instructs the encoder to format each subsequent encoded
+// value as if indented by the package-level function Indent(dst, src, prefix, indent).
+// Calling SetIndent("", "") disables indentation.
+func (enc *Encoder) SetIndent(prefix, indent string) {
+ enc.indentPrefix = prefix
+ enc.indentValue = indent
+}
+
+// SetEscapeHTML specifies whether problematic HTML characters
+// should be escaped inside JSON quoted strings.
+// The default behavior is to escape &, <, and > to \u0026, \u003c, and \u003e
+// to avoid certain safety problems that can arise when embedding JSON in HTML.
+//
+// In non-HTML settings where the escaping interferes with the readability
+// of the output, SetEscapeHTML(false) disables this behavior.
+func (enc *Encoder) SetEscapeHTML(on bool) {
+ enc.escapeHTML = on
+}
+
+// RawMessage is a raw encoded JSON value.
+// It implements Marshaler and Unmarshaler and can
+// be used to delay JSON decoding or precompute a JSON encoding.
+type RawMessage []byte
+
+// MarshalJSON returns m as the JSON encoding of m.
+func (m RawMessage) MarshalJSON() ([]byte, error) {
+ if m == nil {
+ return []byte("null"), nil
+ }
+ return m, nil
+}
+
+// UnmarshalJSON sets *m to a copy of data.
+func (m *RawMessage) UnmarshalJSON(data []byte) error {
+ if m == nil {
+ return errors.New("json.RawMessage: UnmarshalJSON on nil pointer")
+ }
+ *m = append((*m)[0:0], data...)
+ return nil
+}
+
+var _ Marshaler = (*RawMessage)(nil)
+var _ Unmarshaler = (*RawMessage)(nil)
+
+// A Token holds a value of one of these types:
+//
+// Delim, for the four JSON delimiters [ ] { }
+// bool, for JSON booleans
+// float64, for JSON numbers
+// Number, for JSON numbers
+// string, for JSON string literals
+// nil, for JSON null
+//
+type Token interface{}
+
+const (
+ tokenTopValue = iota
+ tokenArrayStart
+ tokenArrayValue
+ tokenArrayComma
+ tokenObjectStart
+ tokenObjectKey
+ tokenObjectColon
+ tokenObjectValue
+ tokenObjectComma
+)
+
+// advance tokenstate from a separator state to a value state
+func (dec *Decoder) tokenPrepareForDecode() error {
+ // Note: Not calling peek before switch, to avoid
+ // putting peek into the standard Decode path.
+ // peek is only called when using the Token API.
+ switch dec.tokenState {
+ case tokenArrayComma:
+ c, err := dec.peek()
+ if err != nil {
+ return err
+ }
+ if c != ',' {
+ return &SyntaxError{"expected comma after array element", dec.offset()}
+ }
+ dec.scanp++
+ dec.tokenState = tokenArrayValue
+ case tokenObjectColon:
+ c, err := dec.peek()
+ if err != nil {
+ return err
+ }
+ if c != ':' {
+ return &SyntaxError{"expected colon after object key", dec.offset()}
+ }
+ dec.scanp++
+ dec.tokenState = tokenObjectValue
+ }
+ return nil
+}
+
+func (dec *Decoder) tokenValueAllowed() bool {
+ switch dec.tokenState {
+ case tokenTopValue, tokenArrayStart, tokenArrayValue, tokenObjectValue:
+ return true
+ }
+ return false
+}
+
+func (dec *Decoder) tokenValueEnd() {
+ switch dec.tokenState {
+ case tokenArrayStart, tokenArrayValue:
+ dec.tokenState = tokenArrayComma
+ case tokenObjectValue:
+ dec.tokenState = tokenObjectComma
+ }
+}
+
+// A Delim is a JSON array or object delimiter, one of [ ] { or }.
+type Delim rune
+
+func (d Delim) String() string {
+ return string(d)
+}
+
+// Token returns the next JSON token in the input stream.
+// At the end of the input stream, Token returns nil, io.EOF.
+//
+// Token guarantees that the delimiters [ ] { } it returns are
+// properly nested and matched: if Token encounters an unexpected
+// delimiter in the input, it will return an error.
+//
+// The input stream consists of basic JSON values—bool, string,
+// number, and null—along with delimiters [ ] { } of type Delim
+// to mark the start and end of arrays and objects.
+// Commas and colons are elided.
+func (dec *Decoder) Token() (Token, error) {
+ for {
+ c, err := dec.peek()
+ if err != nil {
+ return nil, err
+ }
+ switch c {
+ case '[':
+ if !dec.tokenValueAllowed() {
+ return dec.tokenError(c)
+ }
+ dec.scanp++
+ dec.tokenStack = append(dec.tokenStack, dec.tokenState)
+ dec.tokenState = tokenArrayStart
+ return Delim('['), nil
+
+ case ']':
+ if dec.tokenState != tokenArrayStart && dec.tokenState != tokenArrayComma {
+ return dec.tokenError(c)
+ }
+ dec.scanp++
+ dec.tokenState = dec.tokenStack[len(dec.tokenStack)-1]
+ dec.tokenStack = dec.tokenStack[:len(dec.tokenStack)-1]
+ dec.tokenValueEnd()
+ return Delim(']'), nil
+
+ case '{':
+ if !dec.tokenValueAllowed() {
+ return dec.tokenError(c)
+ }
+ dec.scanp++
+ dec.tokenStack = append(dec.tokenStack, dec.tokenState)
+ dec.tokenState = tokenObjectStart
+ return Delim('{'), nil
+
+ case '}':
+ if dec.tokenState != tokenObjectStart && dec.tokenState != tokenObjectComma {
+ return dec.tokenError(c)
+ }
+ dec.scanp++
+ dec.tokenState = dec.tokenStack[len(dec.tokenStack)-1]
+ dec.tokenStack = dec.tokenStack[:len(dec.tokenStack)-1]
+ dec.tokenValueEnd()
+ return Delim('}'), nil
+
+ case ':':
+ if dec.tokenState != tokenObjectColon {
+ return dec.tokenError(c)
+ }
+ dec.scanp++
+ dec.tokenState = tokenObjectValue
+ continue
+
+ case ',':
+ if dec.tokenState == tokenArrayComma {
+ dec.scanp++
+ dec.tokenState = tokenArrayValue
+ continue
+ }
+ if dec.tokenState == tokenObjectComma {
+ dec.scanp++
+ dec.tokenState = tokenObjectKey
+ continue
+ }
+ return dec.tokenError(c)
+
+ case '"':
+ if dec.tokenState == tokenObjectStart || dec.tokenState == tokenObjectKey {
+ var x string
+ old := dec.tokenState
+ dec.tokenState = tokenTopValue
+ err := dec.Decode(&x)
+ dec.tokenState = old
+ if err != nil {
+ return nil, err
+ }
+ dec.tokenState = tokenObjectColon
+ return x, nil
+ }
+ fallthrough
+
+ default:
+ if !dec.tokenValueAllowed() {
+ return dec.tokenError(c)
+ }
+ var x interface{}
+ if err := dec.Decode(&x); err != nil {
+ return nil, err
+ }
+ return x, nil
+ }
+ }
+}
+
+func (dec *Decoder) tokenError(c byte) (Token, error) {
+ var context string
+ switch dec.tokenState {
+ case tokenTopValue:
+ context = " looking for beginning of value"
+ case tokenArrayStart, tokenArrayValue, tokenObjectValue:
+ context = " looking for beginning of value"
+ case tokenArrayComma:
+ context = " after array element"
+ case tokenObjectKey:
+ context = " looking for beginning of object key string"
+ case tokenObjectColon:
+ context = " after object key"
+ case tokenObjectComma:
+ context = " after object key:value pair"
+ }
+ return nil, &SyntaxError{"invalid character " + quoteChar(c) + context, dec.offset()}
+}
+
+// More reports whether there is another element in the
+// current array or object being parsed.
+func (dec *Decoder) More() bool {
+ c, err := dec.peek()
+ return err == nil && c != ']' && c != '}'
+}
+
+func (dec *Decoder) peek() (byte, error) {
+ var err error
+ for {
+ for i := dec.scanp; i < len(dec.buf); i++ {
+ c := dec.buf[i]
+ if isSpace(c) {
+ continue
+ }
+ dec.scanp = i
+ return c, nil
+ }
+ // buffer has been scanned, now report any error
+ if err != nil {
+ return 0, err
+ }
+ err = dec.refill()
+ }
+}
+
+func (dec *Decoder) offset() int64 {
+ return dec.scanned + int64(dec.scanp)
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/tables.go b/vendor/github.com/matterbridge/msgraph.go/jsonx/tables.go
new file mode 100644
index 00000000..cb994a3e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/jsonx/tables.go
@@ -0,0 +1,218 @@
+// Copyright 2016 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package jsonx
+
+import "unicode/utf8"
+
+// safeSet holds the value true if the ASCII character with the given array
+// position can be represented inside a JSON string without any further
+// escaping.
+//
+// All values are true except for the ASCII control characters (0-31), the
+// double quote ("), and the backslash character ("\").
+var safeSet = [utf8.RuneSelf]bool{
+ ' ': true,
+ '!': true,
+ '"': false,
+ '#': true,
+ '$': true,
+ '%': true,
+ '&': true,
+ '\'': true,
+ '(': true,
+ ')': true,
+ '*': true,
+ '+': true,
+ ',': true,
+ '-': true,
+ '.': true,
+ '/': true,
+ '0': true,
+ '1': true,
+ '2': true,
+ '3': true,
+ '4': true,
+ '5': true,
+ '6': true,
+ '7': true,
+ '8': true,
+ '9': true,
+ ':': true,
+ ';': true,
+ '<': true,
+ '=': true,
+ '>': true,
+ '?': true,
+ '@': true,
+ 'A': true,
+ 'B': true,
+ 'C': true,
+ 'D': true,
+ 'E': true,
+ 'F': true,
+ 'G': true,
+ 'H': true,
+ 'I': true,
+ 'J': true,
+ 'K': true,
+ 'L': true,
+ 'M': true,
+ 'N': true,
+ 'O': true,
+ 'P': true,
+ 'Q': true,
+ 'R': true,
+ 'S': true,
+ 'T': true,
+ 'U': true,
+ 'V': true,
+ 'W': true,
+ 'X': true,
+ 'Y': true,
+ 'Z': true,
+ '[': true,
+ '\\': false,
+ ']': true,
+ '^': true,
+ '_': true,
+ '`': true,
+ 'a': true,
+ 'b': true,
+ 'c': true,
+ 'd': true,
+ 'e': true,
+ 'f': true,
+ 'g': true,
+ 'h': true,
+ 'i': true,
+ 'j': true,
+ 'k': true,
+ 'l': true,
+ 'm': true,
+ 'n': true,
+ 'o': true,
+ 'p': true,
+ 'q': true,
+ 'r': true,
+ 's': true,
+ 't': true,
+ 'u': true,
+ 'v': true,
+ 'w': true,
+ 'x': true,
+ 'y': true,
+ 'z': true,
+ '{': true,
+ '|': true,
+ '}': true,
+ '~': true,
+ '\u007f': true,
+}
+
+// htmlSafeSet holds the value true if the ASCII character with the given
+// array position can be safely represented inside a JSON string, embedded
+// inside of HTML <script> tags, without any additional escaping.
+//
+// All values are true except for the ASCII control characters (0-31), the
+// double quote ("), the backslash character ("\"), HTML opening and closing
+// tags ("<" and ">"), and the ampersand ("&").
+var htmlSafeSet = [utf8.RuneSelf]bool{
+ ' ': true,
+ '!': true,
+ '"': false,
+ '#': true,
+ '$': true,
+ '%': true,
+ '&': false,
+ '\'': true,
+ '(': true,
+ ')': true,
+ '*': true,
+ '+': true,
+ ',': true,
+ '-': true,
+ '.': true,
+ '/': true,
+ '0': true,
+ '1': true,
+ '2': true,
+ '3': true,
+ '4': true,
+ '5': true,
+ '6': true,
+ '7': true,
+ '8': true,
+ '9': true,
+ ':': true,
+ ';': true,
+ '<': false,
+ '=': true,
+ '>': false,
+ '?': true,
+ '@': true,
+ 'A': true,
+ 'B': true,
+ 'C': true,
+ 'D': true,
+ 'E': true,
+ 'F': true,
+ 'G': true,
+ 'H': true,
+ 'I': true,
+ 'J': true,
+ 'K': true,
+ 'L': true,
+ 'M': true,
+ 'N': true,
+ 'O': true,
+ 'P': true,
+ 'Q': true,
+ 'R': true,
+ 'S': true,
+ 'T': true,
+ 'U': true,
+ 'V': true,
+ 'W': true,
+ 'X': true,
+ 'Y': true,
+ 'Z': true,
+ '[': true,
+ '\\': false,
+ ']': true,
+ '^': true,
+ '_': true,
+ '`': true,
+ 'a': true,
+ 'b': true,
+ 'c': true,
+ 'd': true,
+ 'e': true,
+ 'f': true,
+ 'g': true,
+ 'h': true,
+ 'i': true,
+ 'j': true,
+ 'k': true,
+ 'l': true,
+ 'm': true,
+ 'n': true,
+ 'o': true,
+ 'p': true,
+ 'q': true,
+ 'r': true,
+ 's': true,
+ 't': true,
+ 'u': true,
+ 'v': true,
+ 'w': true,
+ 'x': true,
+ 'y': true,
+ 'z': true,
+ '{': true,
+ '|': true,
+ '}': true,
+ '~': true,
+ '\u007f': true,
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/tags.go b/vendor/github.com/matterbridge/msgraph.go/jsonx/tags.go
new file mode 100644
index 00000000..e524e12e
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/jsonx/tags.go
@@ -0,0 +1,44 @@
+// Copyright 2011 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package jsonx
+
+import (
+ "strings"
+)
+
+// tagOptions is the string following a comma in a struct field's "json"
+// tag, or the empty string. It does not include the leading comma.
+type tagOptions string
+
+// parseTag splits a struct field's json tag into its name and
+// comma-separated options.
+func parseTag(tag string) (string, tagOptions) {
+ if idx := strings.Index(tag, ","); idx != -1 {
+ return tag[:idx], tagOptions(tag[idx+1:])
+ }
+ return tag, tagOptions("")
+}
+
+// Contains reports whether a comma-separated list of options
+// contains a particular substr flag. substr must be surrounded by a
+// string boundary or commas.
+func (o tagOptions) Contains(optionName string) bool {
+ if len(o) == 0 {
+ return false
+ }
+ s := string(o)
+ for s != "" {
+ var next string
+ i := strings.Index(s, ",")
+ if i >= 0 {
+ s, next = s[:i], s[i+1:]
+ }
+ if s == optionName {
+ return true
+ }
+ s = next
+ }
+ return false
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/msauth/README.md b/vendor/github.com/matterbridge/msgraph.go/msauth/README.md
new file mode 100644
index 00000000..43aead20
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/msauth/README.md
@@ -0,0 +1,70 @@
+# msauth
+
+## Introduction
+
+Very simple package to authorize applications against [Microsoft identity platform].
+
+It utilizes [v2.0 endpoint] so that it can authorize users using both personal (Microsoft) and organizational (Azure AD) account.
+
+## Usage
+
+### Device authorization grant
+
+- [OAuth 2.0 device authorization grant flow]
+
+```go
+const (
+ tenantID = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
+ clientID = "YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY"
+ tokenCachePath = "token_cache.json"
+)
+
+var scopes = []string{"openid", "profile", "offline_access", "User.Read", "Files.Read"}
+
+ ctx := context.Background()
+ m := msauth.NewManager()
+ m.LoadFile(tokenCachePath)
+ ts, err := m.DeviceAuthorizationGrant(ctx, tenantID, clientID, scopes, nil)
+ if err != nil {
+ log.Fatal(err)
+ }
+ m.SaveFile(tokenCachePath)
+
+ httpClient := oauth2.NewClient(ctx, ts)
+ ...
+```
+
+### Client credentials grant
+
+- [OAuth 2.0 client credentials grant flow]
+
+```go
+const (
+ tenantID = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
+ clientID = "YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY"
+ clientSecret = "ZZZZZZZZZZZZZZZZZZZZZZZZ"
+)
+
+var scopes = []string{msauth.DefaultMSGraphScope}
+
+ ctx := context.Background()
+ m := msauth.NewManager()
+ ts, err := m.ClientCredentialsGrant(ctx, tenantID, clientID, clientSecret, scopes)
+ if err != nil {
+ log.Fatal(err)
+ }
+
+ httpClient := oauth2.NewClient(ctx, ts)
+ ...
+```
+
+### Authorization code grant
+
+- [OAuth 2.0 authorization code grant flow]
+- Not yet implemented.
+
+[Microsoft identity platform]: https://docs.microsoft.com/en-us/azure/active-directory/develop/
+[v2.0 endpoint]: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-overview
+[OAuth 2.0 device authorization grant flow]: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-device-code
+[OAuth 2.0 client credentials grant flow]: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow
+[OAuth 2.0 authorization code grant flow]: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow \ No newline at end of file
diff --git a/vendor/github.com/matterbridge/msgraph.go/msauth/client_credentials_grant.go b/vendor/github.com/matterbridge/msgraph.go/msauth/client_credentials_grant.go
new file mode 100644
index 00000000..bc50883d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/msauth/client_credentials_grant.go
@@ -0,0 +1,27 @@
+package msauth
+
+import (
+ "context"
+
+ "golang.org/x/oauth2"
+ "golang.org/x/oauth2/clientcredentials"
+ "golang.org/x/oauth2/microsoft"
+)
+
+// ClientCredentialsGrant performs OAuth 2.0 client credentials grant and returns auto-refreshing TokenSource
+func (m *Manager) ClientCredentialsGrant(ctx context.Context, tenantID, clientID, clientSecret string, scopes []string) (oauth2.TokenSource, error) {
+ config := &clientcredentials.Config{
+ ClientID: clientID,
+ ClientSecret: clientSecret,
+ TokenURL: microsoft.AzureADEndpoint(tenantID).TokenURL,
+ Scopes: scopes,
+ AuthStyle: oauth2.AuthStyleInParams,
+ }
+ var err error
+ ts := config.TokenSource(ctx)
+ _, err = ts.Token()
+ if err != nil {
+ return nil, err
+ }
+ return ts, nil
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/msauth/device_authorization_grant.go b/vendor/github.com/matterbridge/msgraph.go/msauth/device_authorization_grant.go
new file mode 100644
index 00000000..4baafd8d
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/msauth/device_authorization_grant.go
@@ -0,0 +1,96 @@
+package msauth
+
+import (
+ "context"
+ "encoding/json"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+ "net/url"
+ "os"
+ "strings"
+ "time"
+
+ "golang.org/x/oauth2"
+ "golang.org/x/oauth2/microsoft"
+)
+
+const (
+ deviceCodeGrantType = "urn:ietf:params:oauth:grant-type:device_code"
+ authorizationPendingError = "authorization_pending"
+)
+
+// DeviceCode is returned on device auth initiation
+type DeviceCode struct {
+ DeviceCode string `json:"device_code"`
+ UserCode string `json:"user_code"`
+ VerificationURL string `json:"verification_url"`
+ ExpiresIn int `json:"expires_in"`
+ Interval int `json:"interval"`
+ Message string `json:"message"`
+}
+
+// DeviceAuthorizationGrant performs OAuth 2.0 device authorization grant and returns auto-refreshing TokenSource
+func (m *Manager) DeviceAuthorizationGrant(ctx context.Context, tenantID, clientID string, scopes []string, callback func(*DeviceCode) error) (oauth2.TokenSource, error) {
+ endpoint := microsoft.AzureADEndpoint(tenantID)
+ endpoint.AuthStyle = oauth2.AuthStyleInParams
+ config := &oauth2.Config{
+ ClientID: clientID,
+ Endpoint: endpoint,
+ Scopes: scopes,
+ }
+ if t, ok := m.TokenCache[generateKey(tenantID, clientID)]; ok {
+ tt, err := config.TokenSource(ctx, t).Token()
+ if err == nil {
+ return config.TokenSource(ctx, tt), nil
+ }
+ if _, ok := err.(*oauth2.RetrieveError); !ok {
+ return nil, err
+ }
+ }
+ scope := strings.Join(scopes, " ")
+ res, err := http.PostForm(deviceCodeURL(tenantID), url.Values{"client_id": {clientID}, "scope": {scope}})
+ if err != nil {
+ return nil, err
+ }
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ dc := &DeviceCode{}
+ dec := json.NewDecoder(res.Body)
+ err = dec.Decode(&dc)
+ if err != nil {
+ return nil, err
+ }
+ if callback != nil {
+ err = callback(dc)
+ if err != nil {
+ return nil, err
+ }
+ } else {
+ fmt.Fprintln(os.Stderr, dc.Message)
+ }
+ values := url.Values{
+ "client_id": {clientID},
+ "grant_type": {deviceCodeGrantType},
+ "device_code": {dc.DeviceCode},
+ }
+ interval := dc.Interval
+ if interval == 0 {
+ interval = 5
+ }
+ for {
+ time.Sleep(time.Second * time.Duration(interval))
+ token, err := m.requestToken(ctx, tenantID, clientID, values)
+ if err == nil {
+ m.Cache(tenantID, clientID, token)
+ return config.TokenSource(ctx, token), nil
+ }
+ tokenError, ok := err.(*TokenError)
+ if !ok || tokenError.ErrorObject != authorizationPendingError {
+ return nil, err
+ }
+ }
+}
diff --git a/vendor/github.com/matterbridge/msgraph.go/msauth/msauth.go b/vendor/github.com/matterbridge/msgraph.go/msauth/msauth.go
new file mode 100644
index 00000000..c2a86985
--- /dev/null
+++ b/vendor/github.com/matterbridge/msgraph.go/msauth/msauth.go
@@ -0,0 +1,148 @@
+// Package msauth implements a library to authorize against Microsoft identity platform:
+// https://docs.microsoft.com/en-us/azure/active-directory/develop/
+//
+// It utilizes v2.0 endpoint
+// so it can authorize users with both personal (Microsoft) and organizational (Azure AD) account.
+package msauth
+
+import (
+ "context"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+ "net/url"
+ "sync"
+ "time"
+
+ "golang.org/x/oauth2"
+)
+
+const (
+ // DefaultMSGraphScope is the default scope for MS Graph API
+ DefaultMSGraphScope = "https://graph.microsoft.com/.default"
+ endpointURLFormat = "https://login.microsoftonline.com/%s/oauth2/v2.0/%s"
+)
+
+// TokenError is returned on failed authentication
+type TokenError struct {
+ ErrorObject string `json:"error"`
+ ErrorDescription string `json:"error_description"`
+}
+
+// Error implements error interface
+func (t *TokenError) Error() string {
+ return fmt.Sprintf("%s: %s", t.ErrorObject, t.ErrorDescription)
+}
+
+func generateKey(tenantID, clientID string) string {
+ return fmt.Sprintf("%s:%s", tenantID, clientID)
+}
+
+func deviceCodeURL(tenantID string) string {
+ return fmt.Sprintf(endpointURLFormat, tenantID, "devicecode")
+}
+
+func tokenURL(tenantID string) string {
+ return fmt.Sprintf(endpointURLFormat, tenantID, "token")
+}
+
+type tokenJSON struct {
+ AccessToken string `json:"access_token"`
+ TokenType string `json:"token_type"`
+ RefreshToken string `json:"refresh_token"`
+ ExpiresIn int `json:"expires_in"`
+}
+
+func (e *tokenJSON) expiry() (t time.Time) {
+ if v := e.ExpiresIn; v != 0 {
+ return time.Now().Add(time.Duration(v) * time.Second)
+ }
+ return
+}
+
+// Manager is oauth2 token cache manager
+type Manager struct {
+ mu sync.Mutex
+ TokenCache map[string]*oauth2.Token
+}
+
+// NewManager returns a new Manager instance
+func NewManager() *Manager {
+ return &Manager{TokenCache: map[string]*oauth2.Token{}}
+}
+
+// LoadBytes loads token cache from opaque bytes (it's actually JSON)
+func (m *Manager) LoadBytes(b []byte) error {
+ m.mu.Lock()
+ defer m.mu.Unlock()
+ return json.Unmarshal(b, &m.TokenCache)
+}
+
+// SaveBytes saves token cache to opaque bytes (it's actually JSON)
+func (m *Manager) SaveBytes() ([]byte, error) {
+ m.mu.Lock()
+ defer m.mu.Unlock()
+ return json.Marshal(m.TokenCache)
+}
+
+// LoadFile loads token cache from file
+func (m *Manager) LoadFile(path string) error {
+ b, err := ioutil.ReadFile(path)
+ if err != nil {
+ return err
+ }
+ return m.LoadBytes(b)
+}
+
+// SaveFile saves token cache to file
+func (m *Manager) SaveFile(path string) error {
+ b, err := m.SaveBytes()
+ if err != nil {
+ return err
+ }
+ return ioutil.WriteFile(path, b, 0644)
+}
+
+// Cache stores a token into token cache
+func (m *Manager) Cache(tenantID, clientID string, token *oauth2.Token) {
+ m.TokenCache[generateKey(tenantID, clientID)] = token
+}
+
+// requestToken requests a token from the token endpoint
+// TODO(ctx): use http client from ctx
+func (m *Manager) requestToken(ctx context.Context, tenantID, clientID string, values url.Values) (*oauth2.Token, error) {
+ res, err := http.PostForm(tokenURL(tenantID), values)
+ if err != nil {
+ return nil, err
+ }
+ defer res.Body.Close()
+ b, err := ioutil.ReadAll(res.Body)
+ if err != nil {
+ return nil, err
+ }
+ if res.StatusCode != http.StatusOK {
+ var terr *TokenError
+ err = json.Unmarshal(b, &terr)
+ if err != nil {
+ return nil, err
+ }
+ return nil, terr
+ }
+ var tj *tokenJSON
+ err = json.Unmarshal(b, &tj)
+ if err != nil {
+ return nil, err
+ }
+ token := &oauth2.Token{
+ AccessToken: tj.AccessToken,
+ TokenType: tj.TokenType,
+ RefreshToken: tj.RefreshToken,
+ Expiry: tj.expiry(),
+ }
+ if token.AccessToken == "" {
+ return nil, errors.New("msauth: server response missing access_token")
+ }
+ return token, nil
+}